Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for TC (0.18 sec)

  1. istioctl/pkg/tag/generate_test.go

    				}
    			}
    			if tc.whURL != "" {
    				if injectionWhConf.URL == nil {
    					t.Fatalf("expected injection URL %s, got nil", tc.whURL)
    				}
    				if *injectionWhConf.URL != tc.whURL {
    					t.Fatalf("expected injection URL %s, got %s", tc.whURL, *injectionWhConf.URL)
    				}
    			}
    			if tc.whCA != "" {
    				if string(injectionWhConf.CABundle) != tc.whCA {
    					t.Fatalf("expected CA bundle %q, got %q", tc.whCA, injectionWhConf.CABundle)
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 12.1K bytes
    - Viewed (0)
  2. istioctl/pkg/tag/tag_test.go

    			skipConfirmation: false,
    			error:            "",
    		},
    	}
    
    	for _, tc := range tcs {
    		t.Run(tc.name, func(t *testing.T) {
    			var out bytes.Buffer
    			client := fake.NewSimpleClientset(tc.webhooksBefore.DeepCopyObject(), tc.namespaces.DeepCopyObject())
    			err := removeTag(context.Background(), client, tc.tag, tc.skipConfirmation, &out)
    			if tc.error == "" && err != nil {
    				t.Fatalf("expected no error, got %v", err)
    			}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Nov 17 22:41:06 GMT 2023
    - 8.7K bytes
    - Viewed (0)
  3. cmd/bucket-lifecycle_test.go

    			expectedErr:    errRestoreHDRMalformed,
    		},
    	}
    	for i, tc := range testCases {
    		actual, err := parseRestoreObjStatus(tc.restoreHdr)
    		if err != tc.expectedErr {
    			t.Fatalf("Test %d: got %v expected %v", i+1, err, tc.expectedErr)
    		}
    		if actual != tc.expectedStatus {
    			t.Fatalf("Test %d: got %v expected %v", i+1, actual, tc.expectedStatus)
    		}
    	}
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue May 31 09:57:57 GMT 2022
    - 7K bytes
    - Viewed (0)
  4. internal/s3select/sql/parser_test.go

    		"a2",
    		`"abc"`,
    		`"abc\a""ac"`,
    	}
    	for i, tc := range validCases {
    		err := p.ParseString(tc, &id)
    		if err != nil {
    			t.Fatalf("%d: %v", i, err)
    		}
    		// repr.Println(id, repr.Indent("  "), repr.OmitEmpty(true))
    	}
    
    	invalidCases := []string{
    		"+a",
    		"-a",
    		"1a",
    		`"ab`,
    		`abc"`,
    		`aa""a`,
    		`"a"a"`,
    	}
    	for i, tc := range invalidCases {
    		err := p.ParseString(tc, &id)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  5. internal/s3select/sql/stringfuncs_test.go

    		{"abcd", "ab", false, "cd", true},
    		{"abcd", "ab", true, "cd", true},
    		{"abcd", "bc", false, "", false},
    		{"abcd", "bc", true, "d", true},
    	}
    
    	for i, tc := range matcherCases {
    		res, ok := matcher(tc.iText, tc.iPat, tc.iHasLeadingPercent)
    		if res != tc.resultExpected || ok != tc.matchExpected {
    			t.Errorf("Matcher Case %d failed", i)
    		}
    	}
    
    	evalCases := []struct {
    		iText, iPat   string
    		iEsc          rune
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 3.1K bytes
    - Viewed (0)
  6. cni/test/install_k8s_test.go

    		},
    	}
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			t.Logf("%s: Test preconf %s, expected %s", tc.name, tc.preConfFile, tc.expectedOutputFile)
    			install.RunInstallCNITest(t, tc.chainedCNIPlugin, tc.preConfFile, tc.resultFileName, tc.delayedConfFile, tc.expectedOutputFile,
    				tc.expectedPostCleanFile, tc.cniConfDirOrderedFiles)
    		})
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Jul 27 18:01:48 GMT 2022
    - 8K bytes
    - Viewed (0)
  7. internal/bucket/lifecycle/expiration_test.go

    			expectedErr: errLifecycleDateNotMidnight,
    		},
    	}
    
    	for i, tc := range testCases {
    		t.Run(fmt.Sprintf("Test %d", i+1), func(t *testing.T) {
    			var expiration Expiration
    			err := xml.Unmarshal([]byte(tc.inputXML), &expiration)
    			if err != tc.expectedErr {
    				t.Fatalf("%d: Expected %v but got %v", i+1, tc.expectedErr, err)
    			}
    		})
    	}
    
    	validationTestCases := []struct {
    		inputXML    string
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Feb 21 20:28:34 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  8. internal/bucket/lifecycle/transition_test.go

    			input: `<Transition>
    			<Days>1</Days>
    		  </Transition>`,
    			err: errXMLNotWellFormed,
    		},
    	}
    
    	for i, tc := range trTests {
    		var tr Transition
    		err := xml.Unmarshal([]byte(tc.input), &tr)
    		if err != nil {
    			t.Fatalf("%d: xml unmarshal failed with %v", i+1, err)
    		}
    		if err = tr.Validate(); err != tc.err {
    			t.Fatalf("%d: Invalid transition %v: err %v", i+1, tr, err)
    		}
    	}
    
    	ntrTests := []struct {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Oct 01 18:58:17 GMT 2021
    - 2.3K bytes
    - Viewed (0)
  9. internal/s3select/sql/jsonpath_test.go

    		{"s.publicationHistory[0].pages", []interface{}{256.0, 336.0, Missing{}}},
    	}
    	for i, tc := range cases {
    		t.Run(tc.str, func(t *testing.T) {
    			jp := JSONPath{}
    			err := p.ParseString(tc.str, &jp)
    			// fmt.Println(jp)
    			if err != nil {
    				t.Fatalf("parse failed!: %d %v %s", i, err, tc)
    			}
    
    			// Read only the first json object from the file
    			recs, err := getJSONStructs(b)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 2.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/netbios/NameServiceClientImpl.java

    
        /**
         * 
         * @param tc
         */
        public NameServiceClientImpl ( CIFSContext tc ) {
            this(tc.getConfig().getNetbiosLocalPort(), tc.getConfig().getNetbiosLocalAddress(), tc);
        }
    
    
        NameServiceClientImpl ( int lport, InetAddress laddr, CIFSContext tc ) {
            this.lport = lport;
            this.laddr = laddr;
            this.transportContext = tc;
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Aug 14 14:26:22 GMT 2022
    - 38.2K bytes
    - Viewed (0)
Back to top