- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 466 for testCases (0.21 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/conversion_test.go
} }) } } func TestMemoryEqual(t *testing.T) { testcases := []struct { a interface{} b interface{} }{ {apiextensions.JSONSchemaProps{}.XValidations, JSONSchemaProps{}.XValidations}, } for _, tc := range testcases { aType := reflect.TypeOf(tc.a) bType := reflect.TypeOf(tc.b) t.Run(aType.String(), func(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:06:46 UTC 2024 - 29.2K bytes - Viewed (0) -
pkg/controller/podgc/gc_controller_test.go
return controller, podInformer, nodeInformer } func TestGCTerminated(t *testing.T) { type nameToPhase struct { name string phase v1.PodPhase reason string } testCases := []struct { name string pods []nameToPhase threshold int deletedPodNames sets.Set[string]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 08:16:48 UTC 2024 - 29K bytes - Viewed (0) -
pkg/proxy/util/nfacct/nfacct_linux_test.go
// Execute is part of request interface. func (fr *fakeRequest) Execute(_ int, _ uint16) ([][]byte, error) { return fr.response, fr.err } func TestRunner_Add(t *testing.T) { testCases := []struct { name string counterName string handler *fakeHandler err error netlinkCalls int }{ { name: "valid", counterName: "metric-1",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 27 06:47:50 UTC 2024 - 18.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/jsonmergepatch/patch_test.go
"sigs.k8s.io/yaml" ) type FilterNullTestCases struct { TestCases []FilterNullTestCase } type FilterNullTestCase struct { Description string OriginalObj map[string]interface{} ExpectedWithNull map[string]interface{} ExpectedWithoutNull map[string]interface{} } var filterNullTestCaseData = []byte(` testCases: - description: nil original originalObj: {} expectedWithNull: {}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 14.8K bytes - Viewed (0) -
cmd/erasure-healing-common_test.go
}, timeSentinel, 5, }, } // Tests all the testcases, and validates them against expected // common modtime. Tests fail if modtime does not match. for i, testCase := range testCases { // Obtain a common mod time from modTimes slice. ctime := commonTime(testCase.times, testCase.quorum) if !testCase.time.Equal(ctime) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 23K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_sandbox_test.go
}, }, } for _, testCase := range testCases { t.Run(testCase.name, func(t *testing.T) { featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.WindowsHostNetwork, testCase.hostNetworkFeatureEnabled) pod := &v1.Pod{} pod.Spec = *testCase.podSpec wc, err := m.generatePodSandboxWindowsConfig(pod) assert.Equal(t, testCase.expectedWindowsConfig, wc)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 14.3K bytes - Viewed (0) -
pkg/config/validation/virtualservice_test.go
}, valid: true, }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { if _, err := ValidateVirtualService(config.Config{Spec: tc.in}); (err == nil) != tc.valid { t.Fatalf("got valid=%v but wanted valid=%v: %v", err == nil, tc.valid, err) } }) } } func TestValidateRootHTTPRoute(t *testing.T) { testCases := []struct { name string route *networking.HTTPRoute
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 15:33:55 UTC 2024 - 19.9K bytes - Viewed (0) -
src/encoding/base32/base32_test.go
} for _, testcase := range testcases { testcase := testcase pr, pw := io.Pipe() go func() { for _, chunk := range testcase.chunks { _, _ = pw.Write([]byte(chunk)) } _ = pw.Close() }() decoder := NewDecoder(StdEncoding, pr) _, err := io.ReadAll(decoder) if err == nil && len(testcase.expectedError) != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 16:25:54 UTC 2024 - 26K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/value/metrics_test.go
wrappedErrTransformer := PrefixTransformer{Prefix: []byte("k8s:enc:kms:v1:"), Transformer: &testTransformer{err: wrappedErr}} testCases := []struct { desc string prefix Transformer metrics []string want string }{ { desc: "non-status error", prefix: NewPrefixTransformers(nil, nonStatusErrTransformer),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 18 22:44:02 UTC 2023 - 16.7K bytes - Viewed (0) -
pilot/pkg/trustbundle/trustbundle_test.go
certs2: []string{"a", "b"}, expSame: true, }, } for _, tc := range testCases { certSame := slices.Equal(tc.certs1, tc.certs2) if (certSame && !tc.expSame) || (!certSame && tc.expSame) { t.Errorf("cert compare testcase failed. tc: %v", tc) } } } func TestVerifyTrustAnchor(t *testing.T) { testCases := []struct { errExp bool cert string }{ { cert: rootCACert,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 13.1K bytes - Viewed (0)