Lines Matching refs:test
410 for _, test := range testCases {
411 t.Run(test.name, func(t *testing.T) {
412 if test.args.Error() != nil {
413 t.Fatal(test.args.Error())
417 args.FileArgs = test.args.FileArgs()
418 args.CompressionLevel = test.compressionLevel
419 args.EmulateJar = test.emulateJar
420 args.AddDirectoryEntriesToZip = test.dirEntries
421 args.NonDeflatedFiles = test.nonDeflatedFiles
422 args.ManifestSourcePath = test.manifest
423 args.StoreSymlinks = test.storeSymlinks
424 args.IgnoreMissingFiles = test.ignoreMissingFiles
431 if (err != nil) != (test.err != nil) {
432 t.Fatalf("want error %v, got %v", test.err, err)
433 } else if test.err != nil {
434 if os.IsNotExist(test.err) {
435 if !os.IsNotExist(test.err) {
436 t.Fatalf("want error %v, got %v", test.err, err)
438 } else if _, wantRelativeRootErr := test.err.(IncorrectRelativeRootError); wantRelativeRootErr {
440 t.Fatalf("want error %v, got %v", test.err, err)
443 t.Fatalf("want error %v, got %v", test.err, err)
479 if len(files) != len(test.files) {
480 t.Fatalf("want %d files, got %d", len(test.files), len(files))
484 want := test.files[i]
527 name: "single quoting test case 2",
532 name: "single quoting test case 3",
537 name: "single quoting test case 4",
542 name: "none quoting test case 1",
547 name: "none quoting test case 2",
552 name: "none quoting test case 3",