Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 429 for tc (0.09 sec)

  1. 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)
    		}
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 31 09:57:57 UTC 2022
    - 7K bytes
    - Viewed (0)
  2. src/net/dnsname_test.go

    	ch <- dnsNameTest{longDomain[len(longDomain)-254:], false}
    }
    
    func TestDNSName(t *testing.T) {
    	ch := make(chan dnsNameTest)
    	go emitDNSNameTest(ch)
    	for tc := range ch {
    		if isDomainName(tc.name) != tc.result {
    			t.Errorf("isDomainName(%q) = %v; want %v", tc.name, !tc.result, tc.result)
    		}
    	}
    }
    
    func BenchmarkDNSName(b *testing.B) {
    	testHookUninstaller.Do(uninstallTestHooks)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 2K bytes
    - Viewed (0)
  3. src/cmd/go/internal/web/url_test.go

    					t.Fatalf("urlToFilePath(%v): %v; want %s", u, err, tc.wantErr)
    				}
    			}
    
    			if path != tc.filePath || tc.wantErr != "" {
    				t.Fatalf("urlToFilePath(%v) = %q, <nil>; want %q, %s", u, path, tc.filePath, tc.wantErr)
    			}
    		})
    	}
    }
    
    func TestURLFromFilePath(t *testing.T) {
    	for _, tc := range urlTests {
    		if tc.filePath == "" {
    			continue
    		}
    		tc := tc
    
    		t.Run(tc.filePath, func(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:43:51 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  4. 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
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 3.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/NtlmPasswordAuthentication.java

         * 
         * @param tc
         * @param userInfo
         */
        public NtlmPasswordAuthentication ( CIFSContext tc, String userInfo ) {
            super(
                userInfo,
                tc.getConfig().getDefaultDomain(),
                tc.getConfig().getDefaultUsername() != null ? tc.getConfig().getDefaultUsername() : "GUEST",
                tc.getConfig().getDefaultPassword() != null ? tc.getConfig().getDefaultPassword() : "");
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Tue Jul 07 10:50:16 UTC 2020
    - 8.5K bytes
    - Viewed (0)
  6. pkg/kubelet/container/ref_test.go

    			},
    			success: true,
    		},
    	}
    
    	for _, tc := range cases {
    		actual, err := GenerateContainerRef(tc.pod, tc.container)
    		if err != nil {
    			if tc.success {
    				t.Errorf("%v: unexpected error: %v", tc.name, err)
    			}
    
    			continue
    		}
    
    		if !tc.success {
    			t.Errorf("%v: unexpected success", tc.name)
    			continue
    		}
    
    		if e, a := tc.expected.Kind, actual.Kind; e != a {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 14 09:38:23 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/core/v1/taint_test.go

    				Value:  "bar",
    				Effect: TaintEffectPreferNoSchedule,
    			},
    			expectMatch: false,
    		},
    	}
    
    	for _, tc := range testCases {
    		if tc.expectMatch != tc.taint.MatchTaint(&tc.taintToMatch) {
    			t.Errorf("[%s] expect taint %s match taint %s", tc.description, tc.taint.ToString(), tc.taintToMatch.ToString())
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 16 13:06:01 UTC 2019
    - 2.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/cacher/util_test.go

    		{"a/", "a/"},
    		{"a/../", "a/../"},
    
    		// Path prefix matches
    		{"a/b", "a"},
    		{"a/b", "a/"},
    		{"中文/", "中文"},
    	}
    	for i, tc := range validTestcases {
    		if !hasPathPrefix(tc.s, tc.prefix) {
    			t.Errorf(`%d: Expected hasPathPrefix("%s","%s") to be true`, i, tc.s, tc.prefix)
    		}
    	}
    
    	invalidTestcases := []struct {
    		s      string
    		prefix string
    	}{
    		// Mismatch
    		{"a", "b"},
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 28 02:01:09 UTC 2018
    - 1.5K bytes
    - Viewed (0)
  9. pkg/apis/policy/v1/conversion_test.go

    		t.Fatal(err)
    	}
    
    	for _, tc := range testcases {
    		t.Run(tc.Name, func(t *testing.T) {
    			err := scheme.Convert(tc.In, tc.Out, nil)
    			if err != nil {
    				if len(tc.ExpectErr) == 0 {
    					t.Fatalf("unexpected error %v", err)
    				}
    				if !strings.Contains(err.Error(), tc.ExpectErr) {
    					t.Fatalf("expected error %s, got %v", tc.ExpectErr, err)
    				}
    				return
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 09 15:29:11 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  10. pkg/util/labels/labels_test.go

    			},
    		},
    	}
    
    	for _, tc := range cases {
    		got := CloneAndAddLabel(tc.labels, tc.labelKey, tc.labelValue)
    		if !reflect.DeepEqual(got, tc.want) {
    			t.Errorf("[Add] got %v, want %v", got, tc.want)
    		}
    		// now test the inverse.
    		got_rm := CloneAndRemoveLabel(got, tc.labelKey)
    		if !reflect.DeepEqual(got_rm, tc.labels) {
    			t.Errorf("[RM] got %v, want %v", got_rm, tc.labels)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 11 17:34:12 UTC 2017
    - 4.1K bytes
    - Viewed (0)
Back to top