t.Errorf("Test %d: %s: Expected to fail with error \"%s\", but instead failed with error \"%s\" instead",i+1,instanceType,testCase.err.Error(),err.Error())
t.Fatalf("Test %d: %s: Expected number of object in the result to be '%d', but found '%d' objects instead",i+1,instanceType,len(testCase.result.Objects),len(result.Objects))
iferr==nil&&!testCase.shouldPass{
t.Errorf("Test %d: %s: Expected to fail with <ERROR> \"%s\", but passed instead",i+1,instanceType,testCase.err.Error())
t.Errorf("Test %d: %s: Expected object name to be \"%s\", but found \"%s\" instead",i+1,instanceType,testCase.result.Objects[j].Name,result.Objects[j].Name)
// Failed as expected, but does it fail for the expected reason.
t.Errorf("Test %d: %s: Expected to fail with error \"%s\", but instead failed with error \"%s\" instead",i+1,instanceType,testCase.err.Error(),err.Error())
t.Fatalf("Test %d: %s: Expected number of object in the result to be '%d', but found '%d' objects instead",i+1,instanceType,len(testCase.result.Objects),len(result.Objects))
t.Errorf("Test %d: %s: Expected object name to be \"%s\", but found \"%s\" instead",i+1,instanceType,testCase.result.Objects[j].Name,result.Objects[j].Name)
t.Errorf("Test %d: %s: Expected IsTruncated flag to be %v, but instead found it to be %v",i+1,instanceType,testCase.result.IsTruncated,result.IsTruncated)
t.Errorf("Test %d: %s: Expected IsTruncated flag to be %v, but instead found it to be %v",i+1,instanceType,testCase.result.IsTruncated,result.IsTruncated)
t.Errorf("Test %d: %s: Expected NextContinuationToken to contain a string since listing is truncated, but instead found it to be empty",i+1,instanceType)
t.Errorf("Test %d: %s: Expected NextContinuationToken to contain a string since listing is truncated, but instead found it to be empty",i+1,instanceType)
t.Errorf("Test %d: %s: Expected NextContinuationToken to be empty since listing is not truncated, but instead found `%v`",i+1,instanceType,result.NextMarker)
t.Errorf("Test %d: %s: Expected NextContinuationToken to be empty since listing is not truncated, but instead found `%v`",i+1,instanceType,result.NextMarker)
}
}
// Take ListObject treeWalk go-routine to completion, if available in the treewalk pool.