• Home
  • Raw
  • Download

Lines Matching refs:t

61 func TestFirstUniqueStrings(t *testing.T) {
65 t.Errorf("incorrect output:")
66 t.Errorf(" input: %#v", testCase.in)
67 t.Errorf(" expected: %#v", testCase.out)
68 t.Errorf(" got: %#v", out)
111 func TestLastUniqueStrings(t *testing.T) {
115 t.Errorf("incorrect output:")
116 t.Errorf(" input: %#v", testCase.in)
117 t.Errorf(" expected: %#v", testCase.out)
118 t.Errorf(" got: %#v", out)
123 func TestJoinWithPrefix(t *testing.T) {
149 t.Run(testCase.name, func(t *testing.T) {
152 t.Errorf("incorrect output:")
153 t.Errorf(" input: %#v", testCase.input)
154 t.Errorf(" prefix: %#v", prefix)
155 t.Errorf(" expected: %#v", testCase.expected)
156 t.Errorf(" got: %#v", out)
162 func TestIndexList(t *testing.T) {
188 t.Run(testCase.key, func(t *testing.T) {
191 t.Errorf("incorrect output:")
192 t.Errorf(" key: %#v", testCase.key)
193 t.Errorf(" input: %#v", input)
194 t.Errorf(" expected: %#v", testCase.expected)
195 t.Errorf(" got: %#v", out)
201 func TestInList(t *testing.T) {
219 t.Run(testCase.key, func(t *testing.T) {
222 t.Errorf("incorrect output:")
223 t.Errorf(" key: %#v", testCase.key)
224 t.Errorf(" input: %#v", input)
225 t.Errorf(" expected: %#v", testCase.expected)
226 t.Errorf(" got: %#v", out)
232 func TestPrefixInList(t *testing.T) {
254 t.Run(testCase.str, func(t *testing.T) {
257 t.Errorf("incorrect output:")
258 t.Errorf(" str: %#v", testCase.str)
259 t.Errorf(" prefixes: %#v", prefixes)
260 t.Errorf(" expected: %#v", testCase.expected)
261 t.Errorf(" got: %#v", out)
267 func TestFilterList(t *testing.T) {
274 t.Errorf("incorrect remainder output:")
275 t.Errorf(" input: %#v", input)
276 t.Errorf(" filter: %#v", filter)
277 t.Errorf(" expected: %#v", expected)
278 t.Errorf(" got: %#v", remainder)
283 t.Errorf("incorrect filtered output:")
284 t.Errorf(" input: %#v", input)
285 t.Errorf(" filter: %#v", filter)
286 t.Errorf(" expected: %#v", expected)
287 t.Errorf(" got: %#v", filtered)
291 func TestRemoveListFromList(t *testing.T) {
297 t.Errorf("incorrect output:")
298 t.Errorf(" input: %#v", input)
299 t.Errorf(" filter: %#v", filter)
300 t.Errorf(" expected: %#v", expected)
301 t.Errorf(" got: %#v", out)
305 func TestRemoveFromList(t *testing.T) {
344 t.Run(testCase.name, func(t *testing.T) {
347 t.Errorf("incorrect output:")
348 t.Errorf(" key: %#v", testCase.key)
349 t.Errorf(" input: %#v", testCase.input)
350 t.Errorf(" expected: %#v", testCase.expectedFound)
351 t.Errorf(" got: %#v", found)
354 t.Errorf("incorrect output:")
355 t.Errorf(" key: %#v", testCase.key)
356 t.Errorf(" input: %#v", testCase.input)
357 t.Errorf(" expected: %#v", testCase.expectedOut)
358 t.Errorf(" got: %#v", out)
408 func TestSplitFileExt(t *testing.T) {
409 t.Run("soname with version", func(t *testing.T) {
413 t.Errorf("root should be %q but got %q", expected, root)
417 t.Errorf("suffix should be %q but got %q", expected, suffix)
421 t.Errorf("ext should be %q but got %q", expected, ext)
425 t.Run("soname with svn version", func(t *testing.T) {
429 t.Errorf("root should be %q but got %q", expected, root)
433 t.Errorf("suffix should be %q but got %q", expected, suffix)
437 t.Errorf("ext should be %q but got %q", expected, ext)
441 t.Run("version numbers in the middle should be ignored", func(t *testing.T) {
445 t.Errorf("root should be %q but got %q", expected, root)
449 t.Errorf("suffix should be %q but got %q", expected, suffix)
453 t.Errorf("ext should be %q but got %q", expected, ext)
457 t.Run("no known file extension", func(t *testing.T) {
461 t.Errorf("root should be %q but got %q", expected, root)
465 t.Errorf("suffix should be %q but got %q", expected, suffix)
468 t.Errorf("ext should be %q but got %q", expected, ext)
473 func Test_Shard(t *testing.T) {
533 t.Run(tt.name, func(t *testing.T) {
534 t.Run("strings", func(t *testing.T) {
536 t.Errorf("ShardStrings(%v, %v) = %v, want %v",
541 t.Run("paths", func(t *testing.T) {
564 t.Errorf("ShardPaths(%v, %v) = %v, want %v",