- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 117 for tc (0.03 sec)
-
pkg/proxy/conntrack/conntrack_test.go
}, } for _, tc := range testCases { ct := makeCT(success) err := ct.ClearEntriesForPort(tc.port, tc.isIPv6, v1.ProtocolUDP) if err != nil { t.Errorf("%s/success: Unexpected error: %v", tc.name, err) } execCommand := ct.getExecutedCommand() if tc.expectCommand != execCommand { t.Errorf("%s/success: Expect command: %s, but executed %s", tc.name, tc.expectCommand, execCommand) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 15 18:08:36 UTC 2024 - 6.7K bytes - Viewed (0) -
security/pkg/pki/util/san_test.go
}, } for id, tc := range testCases { actualIDs, err := ExtractIDs(tc.exts) if !reflect.DeepEqual(actualIDs, tc.expectedIDs) { t.Errorf("Case %q: unexpected identities: want %v but got %v", id, tc.expectedIDs, actualIDs) } if tc.expectedErrMsg != "" { if err == nil { t.Errorf("Case %q: no error message returned: want %s", id, tc.expectedErrMsg)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Feb 12 17:36:33 UTC 2024 - 6.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher_test.go
}, } for _, tc := range tcs { actual, err := mutationAnnotationValue(tc.config, tc.webhook, tc.mutated) assert.NoError(t, err, "unexpected error") if actual != tc.expected { t.Errorf("composed mutation annotation value doesn't match, want: %s, got: %s", tc.expected, actual) } } } func TestJSONPatchAnnotationValue(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 4.3K bytes - Viewed (0) -
src/errors/wrap_test.go
{multiErr{poser}, err1, true}, {multiErr{poser}, err3, true}, {multiErr{nil}, nil, false}, } for _, tc := range testCases { t.Run("", func(t *testing.T) { if got := errors.Is(tc.err, tc.target); got != tc.match { t.Errorf("Is(%v, %v) = %v, want %v", tc.err, tc.target, got, tc.match) } }) } } type poser struct { msg string f func(error) bool }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 22:49:49 UTC 2024 - 6K bytes - Viewed (0) -
pkg/test/framework/resource/version_test.go
IstioVersion(""), 0, }, { IstioVersion(""), IstioVersion("1.9"), 1, }, } for _, tc := range tcs { t.Run(fmt.Sprintf("compare version %s->%s", tc.a, tc.b), func(t *testing.T) { r := tc.a.Compare(tc.b) if r != tc.result { t.Errorf("expected %d, got %d", tc.result, r) } }) } } func TestMinimumIstioVersion(t *testing.T) { tcs := []struct { name string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 22 18:13:40 UTC 2024 - 2.9K bytes - Viewed (0) -
tools/istio-iptables/pkg/config/validation_test.go
}, { name: "capture all but 1000 groups", exclude: NOwnerGroups(1000), // we don't have to put a limit on the number of groups to exclude }, } for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { err := ValidateOwnerGroups(tc.include, tc.exclude) assert.NoError(t, err) }) } } func TestValidateOwnerGroups_Invalid(t *testing.T) { cases := []struct { name string include string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jan 11 02:38:28 UTC 2024 - 3K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/strategy_test.go
}, }, }, } for _, tc := range tcs { if tc.statusEnabled { strategy.status = &apiextensions.CustomResourceSubresourceStatus{} } else { strategy.status = nil } strategy.PrepareForUpdate(context.TODO(), tc.obj, tc.old) if !reflect.DeepEqual(tc.obj, tc.expected) { t.Errorf("test %q failed: expected: %v, got %v", tc.name, tc.expected, tc.obj) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 8.2K bytes - Viewed (0) -
pkg/kubelet/types/pod_status_test.go
v1.PodReadyToStartContainers, } for _, tc := range trueCases { if !PodConditionByKubelet(tc) { t.Errorf("Expect %q to be condition owned by kubelet.", tc) } } falseCases := []v1.PodConditionType{ v1.PodConditionType("abcd"), v1.PodConditionType(v1.PodReasonUnschedulable), } for _, tc := range falseCases { if PodConditionByKubelet(tc) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 2.2K bytes - Viewed (0) -
pkg/kubelet/cadvisor/cadvisor_linux_test.go
expectedError: fmt.Errorf("no imagefs label for configured runtime"), }} for _, tc := range testcases { t.Run(tc.description, func(t *testing.T) { infoProvider := NewImageFsInfoProvider(tc.runtimeEndpoint) label, err := infoProvider.ImageFsInfoLabel() assert.Equal(t, tc.expectedLabel, label) assert.Equal(t, tc.expectedError, err) }) } } func TestContainerFsInfoLabel(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:15:53 UTC 2024 - 2.4K bytes - Viewed (0) -
security/pkg/util/jwtutil_test.go
}, } for id, tc := range testCases { t.Run(id, func(t *testing.T) { exp, err := GetExp(tc.jwt) if err != nil && tc.expectedErr == nil || err == nil && tc.expectedErr != nil { t.Errorf("%s: Got error \"%v\", expected error \"%v\"", id, err, tc.expectedErr) } else if err != nil && tc.expectedErr != nil && err.Error() != tc.expectedErr.Error() {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 16:07:11 UTC 2024 - 6K bytes - Viewed (0)