- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 483 for testCases (0.17 sec)
-
pkg/controlplane/reconcilers/endpointsadapter_test.go
}, } for name, testCase := range testCases { t.Run(name, func(t *testing.T) { client := fake.NewSimpleClientset(testCase.initialState...) epAdapter := NewEndpointsAdapter(client.CoreV1(), client.DiscoveryV1()) endpoints, err := epAdapter.Get(testCase.namespaceParam, testCase.nameParam, metav1.GetOptions{}) if !apiequality.Semantic.DeepEqual(testCase.expectedError, err) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 12:23:16 UTC 2024 - 15.4K bytes - Viewed (0) -
internal/http/listener_test.go
} for testIdx, testCase := range testCases { listener, listenErrs := newHTTPListener(context.Background(), testCase.serverAddrs, TCPOptions{}, ) for i, expectedListenErr := range testCase.expectedListenErrs { if !expectedListenErr { if listenErrs[i] != nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 17:41:02 UTC 2024 - 11.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/net/interface_test.go
{"v6 too long", "fe80000000000000021fcafffea0ec002", familyIPv6, false, nil}, } for _, tc := range testCases { ip, err := parseIP(tc.ip, tc.family) if !ip.Equal(tc.expected) { t.Errorf("case[%v]: expected %q, got %q . err : %v", tc.tcase, tc.expected, ip, err) } } } func TestIsInterfaceUp(t *testing.T) { testCases := []struct { tcase string intf *net.Interface expected bool }{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 10 07:29:34 UTC 2023 - 33.2K bytes - Viewed (0) -
pkg/kubelet/config/file_linux_test.go
} ) func TestWatchFileAdded(t *testing.T) { for _, testCase := range testCases { watchFileAdded(testCase.watchDir, testCase.symlink, t) } } func TestWatchFileChanged(t *testing.T) { for _, testCase := range testCases { watchFileChanged(testCase.watchDir, testCase.symlink, testCase.period, t) } } type testCase struct { lock *sync.Mutex desc string pod runtime.Object
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 14 09:38:23 UTC 2022 - 12.3K bytes - Viewed (0) -
cmd/bucket-lifecycle-handlers_test.go
}, ) { for i, testCase := range testCases { // initialize httptest Recorder, this records any mutations to response writer inside the handler. rec := httptest.NewRecorder() // construct HTTP request req, err := newTestSignedRequestV4(testCase.method, getBucketLifecycleURL("", testCase.bucketName), int64(len(testCase.body)), bytes.NewReader(testCase.body), testCase.accessKey, testCase.secretKey, nil)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:50:49 UTC 2024 - 11.3K bytes - Viewed (0) -
security/pkg/pki/util/crypto_test.go
certChainValid = loadPEMFile("../testdata/cert-chain.pem") certChainValidTrailingLine = loadPEMFile("../testdata/cert-chain-trailing-line.pem") ) func TestParsePemEncodedCertificate(t *testing.T) { testCases := map[string]struct { errMsg string pem string publicKeyAlgo x509.PublicKeyAlgorithm }{ "Invalid PEM string": { errMsg: "invalid PEM encoded certificate",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 04 13:00:07 UTC 2024 - 14.6K bytes - Viewed (0) -
cmd/kubeadm/app/util/users/users_linux_test.go
createEntry: createGroup, }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { got := addEntries(tc.file, tc.entries, tc.createEntry) if tc.expectedOutput != got { t.Fatalf("expected output:\n%s\ngot:\n%s\n", tc.expectedOutput, got) } }) } } func TestRemoveEntries(t *testing.T) { testCases := []struct { name string file string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 01 05:59:41 UTC 2022 - 16.3K bytes - Viewed (0) -
cmd/object-api-utils_test.go
{"lalalallalallalalalallalallalala-thestring-size-is-greater-than-63", false}, } for i, testCase := range testCases { isValidBucketName := IsValidBucketName(testCase.bucketName) if testCase.shouldPass && !isValidBucketName { t.Errorf("Test case %d: Expected \"%s\" to be a valid bucket name", i+1, testCase.bucketName) } if !testCase.shouldPass && isValidBucketName {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 23.4K bytes - Viewed (0) -
cmd/endpoint_test.go
} for i, testCase := range testCases { i := i testCase := testCase t.Run("", func(t *testing.T) { var srvCtxt serverCtxt err := mergeDisksLayoutFromArgs(testCase.args, &srvCtxt) if err != nil && testCase.expectedErr == nil { t.Errorf("Test %d: unexpected error: %v", i+1, err) } pools, setupType, err := CreatePoolEndpoints(testCase.serverAddr, srvCtxt.Layout.pools...)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Jan 13 07:53:03 UTC 2024 - 18.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/fields/selector_test.go
// Multi-byte `함=수,목=록`: {`함=수`, `목=록`}, } for selector, expectedTerms := range testcases { if terms := splitTerms(selector); !reflect.DeepEqual(terms, expectedTerms) { t.Errorf("splitSelectors(`%s`): Expected\n%#v\ngot\n%#v", selector, expectedTerms, terms) } } } func TestSplitTerm(t *testing.T) { testcases := map[string]struct { lhs string op string rhs string ok bool }{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 27 08:00:38 UTC 2017 - 11.2K bytes - Viewed (0)