- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 465 for testCases (0.24 sec)
-
pilot/pkg/xds/bench_test.go
testBenchmark(t, v3.RouteType, testCases) } func BenchmarkClusterGeneration(b *testing.B) { runBenchmark(b, v3.ClusterType, testCases) } func TestClusterGeneration(t *testing.T) { testBenchmark(t, v3.ClusterType, testCases) } func BenchmarkListenerGeneration(b *testing.B) { runBenchmark(b, v3.ListenerType, testCases) } func TestListenerGeneration(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 22 18:13:40 UTC 2024 - 19.7K bytes - Viewed (0) -
pkg/volume/csi/csi_client_test.go
capabilityMethodToTest func(*csiDriverClient) (bool, error), nodeClientGenerator func(bool) *fake.NodeClient) { testCases := []struct { name string capable bool }{ {name: "positive", capable: true}, {name: "negative", capable: false}, } for _, tc := range testCases { t.Logf("Running test case: %s", tc.name) fakeCloser := fake.NewCloser(t) client := &csiDriverClient{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 33.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/labels/selector_test.go
} for _, testcase := range testcases { p := &Parser{l: &Lexer{s: testcase.token, pos: 0}, position: 0} p.scan() _, err := p.parseOperator() if ok := reflect.DeepEqual(testcase.expectedError, err); !ok { t.Errorf("\nexpect err [%v], \nactual err [%v]", testcase.expectedError, err) } } } func TestRequirementConstructor(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 14 16:39:04 UTC 2022 - 29.9K bytes - Viewed (0) -
cmd/signature-v4-utils_test.go
if testCase.inputHeaderKey != "" { q.Add(testCase.inputHeaderKey, testCase.inputHeaderValue) } inputReq.URL.RawQuery = q.Encode() } else if testCase.inputHeaderKey != "" { inputReq.Header.Set(testCase.inputHeaderKey, testCase.inputHeaderValue) } inputReq.ParseForm() actualResult := skipContentSha256Cksum(inputReq) if testCase.expectedResult != actualResult {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 05 21:26:41 UTC 2024 - 14.3K bytes - Viewed (0) -
internal/hash/reader_test.go
success: false, }, } for i, testCase := range testCases { t.Run(fmt.Sprintf("case-%d", i+1), func(t *testing.T) { _, err := NewReader(context.Background(), testCase.src, testCase.size, testCase.md5hex, testCase.sha256hex, testCase.actualSize) if err != nil && testCase.success { t.Errorf("Test %q: Expected success, but got error %s instead", testCase.desc, err) } if err == nil && !testCase.success {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Sep 18 17:00:54 UTC 2023 - 10.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/metrics/metrics_test.go
}, expectedScope: "cluster", }, } for _, test := range testCases { t.Run(test.name, func(t *testing.T) { if CleanScope(test.requestInfo) != test.expectedScope { t.Errorf("failed to clean scope: %v", test.requestInfo) } }) } } func TestCleanFieldValidation(t *testing.T) { testCases := []struct { name string url *url.URL
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 27 07:29:19 UTC 2023 - 14.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_encryption_test.go
"k8s.io/apiserver/pkg/apis/apiserver" ) func TestStructure(t *testing.T) { root := field.NewPath("resources") firstResourcePath := root.Index(0) cacheSize := int32(1) testCases := []struct { desc string in *apiserver.EncryptionConfiguration reload bool want field.ErrorList }{{ desc: "nil encryption config", in: nil, want: field.ErrorList{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Dec 18 20:54:24 UTC 2023 - 33.7K bytes - Viewed (0) -
pkg/kubelet/network/dns/dns_test.go
select { case event := <-recorder.Events: return event default: return "" } } ) func TestParseResolvConf(t *testing.T) { testCases := []struct { data string nameservers []string searches []string options []string isErr bool }{ {"", []string{}, []string{}, []string{}, false},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 25.6K bytes - Viewed (0) -
cmd/erasure-object_test.go
} } toObjectNames := func(testCases []testCaseType) []ObjectToDelete { names := make([]ObjectToDelete, len(testCases)) for i := range testCases { names[i] = ObjectToDelete{ ObjectV: ObjectV{ ObjectName: testCases[i].object, }, } } return names } objectNames := toObjectNames(testCases)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jan 30 20:43:25 UTC 2024 - 36.8K bytes - Viewed (0) -
pkg/controller/endpointslicemirroring/endpointslicemirroring_controller_test.go
informerFactory.Core().V1().Services().Informer().GetStore(), } } func TestSyncEndpoints(t *testing.T) { endpointsName := "testing-sync-endpoints" namespace := metav1.NamespaceDefault testCases := []struct { testName string service *v1.Service endpoints *v1.Endpoints endpointSlices []*discovery.EndpointSlice expectedNumActions int expectedNumSlices int }{{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 12 12:57:29 UTC 2023 - 13.9K bytes - Viewed (0)