- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 483 for testCases (0.27 sec)
-
staging/src/k8s.io/apiserver/pkg/server/egressselector/egress_selector_test.go
"sigs.k8s.io/apiserver-network-proxy/konnectivity-client/proto/client" ) type fakeEgressSelection struct { directDialerCalled bool } func TestEgressSelector(t *testing.T) { testcases := []struct { name string input *apiserver.EgressSelectorConfiguration services []struct { egressType EgressType validateDialer func(dialer utilnet.DialFunc, s *fakeEgressSelection) (bool, error)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 26 22:41:29 UTC 2023 - 12.3K bytes - Viewed (0) -
platforms/software/testing-base/src/testFixtures/groovy/org/gradle/testing/AbstractTestFrameworkIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 12.2K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/config_test.go
if len(actual) != defaultNumberOfImages { t.Fatalf("Expected %v but found %v images", defaultNumberOfImages, len(actual)) } } func TestImagesListRunWithCustomConfigPath(t *testing.T) { testcases := []struct { name string expectedImageCount int // each string provided here must appear in at least one image returned by Run expectedImageSubstrings []string configContents []byte }{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 06:58:01 UTC 2024 - 13K bytes - Viewed (0) -
pkg/volume/csi/csi_plugin_test.go
shouldFail: true, }, } for _, tc := range testCases { // Arrange & Act err := PluginHandler.ValidatePlugin(tc.pluginName, tc.endpoint, tc.versions) // Assert if tc.shouldFail && err == nil { t.Fatalf("expecting ValidatePlugin to fail, but got nil error for testcase: %#v", tc) } if !tc.shouldFail && err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 41.8K bytes - Viewed (0) -
pkg/slices/slices_test.go
expected: []int{1}, }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { result := SortBy(tc.input, tc.extract) if !reflect.DeepEqual(result, tc.expected) { t.Fatalf("Expected: %+v, but got: %+v", tc.expected, result) } }) } } func TestSort(t *testing.T) { testCases := []struct { name string input []int expected []int }{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 23:33:56 UTC 2024 - 18.2K bytes - Viewed (0) -
cmd/signature-v4_test.go
"Policy": []string{"policy"}, }, expected: ErrNone, }, } // Run each test case individually. for i, testCase := range testCases { _, code := doesPolicySignatureMatch(testCase.form) if code != testCase.expected { t.Errorf("(%d) expected to get %s, instead got %s", i, niceError(testCase.expected), niceError(code)) } } } func TestDoesPresignedSignatureMatch(t *testing.T) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jun 13 22:26:38 UTC 2024 - 10.5K bytes - Viewed (0) -
pkg/controller/tainteviction/taint_eviction_test.go
expectedDeleteTimes: durationSlice{ {[]string{"pod1", "pod2", "pod3"}, 0}, }, }, } for _, item := range testCases { t.Run(item.description, func(t *testing.T) { t.Logf("Starting testcase %q", item.description) ctx, cancel := context.WithCancel(context.Background()) defer cancel() fakeClientset := fake.NewSimpleClientset(&corev1.PodList{Items: item.pods})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 31.3K bytes - Viewed (0) -
pilot/pkg/security/model/authentication_test.go
expected: nil, }, } for _, c := range testCases { t.Run(c.name, func(t *testing.T) { if got := ConstructSdsSecretConfig(c.secretName); !cmp.Equal(got, c.expected, protocmp.Transform()) { t.Errorf("ConstructSdsSecretConfig: got(%#v), want(%#v)\n", got, c.expected) } }) } } func TestApplyToCommonTLSContext(t *testing.T) { testCases := []struct { name string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Feb 20 22:39:21 UTC 2024 - 18.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/converter_test.go
{ // Test slice of interface{} with different values. obj: &D{ A: []interface{}{float64(3.5), int64(4), "3.0", nil}, }, }, } for i := range testCases { t.Run(fmt.Sprintf("%d", i), func(t *testing.T) { doRoundTrip(t, testCases[i].obj) }) } } // TestUnknownFields checks for the collection of unknown // field errors from the various possible locations of
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 16:02:13 UTC 2023 - 22.9K bytes - Viewed (0) -
pkg/credentialprovider/plugin/config_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 09 14:24:11 UTC 2023 - 14.2K bytes - Viewed (0)