- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 1,718 for testPass (0.16 sec)
-
pkg/kubelet/cm/helpers_linux_test.go
input: int64(1500), quota: int64(150000), period: uint64(100000), }, } for _, testCase := range testCases { quota := MilliCPUToQuota(testCase.input, int64(testCase.period)) if quota != testCase.quota { t.Errorf("Input %v and %v, expected quota %v, but got quota %v", testCase.input, testCase.period, testCase.quota, quota) } } } func TestHugePageLimits(t *testing.T) { Mi := int64(1024 * 1024)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 27.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/watch_tracker_test.go
expected: 0, }, } for _, testCase := range testCases { t.Run(testCase.name, func(t *testing.T) { requestInfo, err := requestInfoFactory.NewRequestInfo(testCase.request) if err != nil { t.Fatalf("unexpected error from requestInfo creation: %#v", err) } count := watchTracker.GetInterestedWatchCount(requestInfo) if count != testCase.expected {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 03 14:02:51 UTC 2021 - 10.4K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/completion_test.go
t.Errorf(shellsError) } for _, shell := range shells { test := TestCase{ name: "valid: test shell " + shell, args: []string{shell}, } testCases = append(testCases, test) } // use dummy cobra commands parentCmd := &cobra.Command{} cmd := &cobra.Command{} parentCmd.AddCommand(cmd) for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 06 02:59:58 UTC 2022 - 2.4K bytes - Viewed (0) -
internal/http/check_port_test.go
port := l.Addr().(*net.TCPAddr).Port testCases := []struct { host string port int expectedErr error }{ {"", port, fmt.Errorf("listen tcp :%v: bind: address already in use", port)}, {"127.0.0.1", port, fmt.Errorf("listen tcp 127.0.0.1:%v: bind: address already in use", port)}, } for _, testCase := range testCases { err := CheckPortAvailability(testCase.host, strconv.Itoa(testCase.port), TCPOptions{})
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 03 21:12:25 UTC 2023 - 1.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder_test.go
{"def", true, "def", 3}, {"", true, "", 0}, } for i, testCase := range testCases { adv, token, err := splitYAMLDocument([]byte(testCase.input), testCase.atEOF) if err != nil { t.Errorf("%d: unexpected error: %v", i, err) continue } if adv != testCase.adv { t.Errorf("%d: advance did not match: %d %d", i, testCase.adv, adv) } if testCase.expect != string(token) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 10 07:29:34 UTC 2023 - 12.4K 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) -
cmd/kubeadm/app/util/error_test.go
errs: []error{ errors.New(errMsg1), }, expect: "\t- " + errMsg1 + "\n", }, } for _, testCase := range testCases { t.Run(testCase.name, func(t *testing.T) { got := FormatErrMsg(testCase.errs) if got != testCase.expect { t.Errorf("FormatErrMsg error, expect: %v, got: %v", testCase.expect, got) } }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jul 04 08:41:27 UTC 2021 - 2.4K bytes - Viewed (0) -
cmd/update-notifier_test.go
for i, testCase := range testCases { output := prepareUpdateMessage(testCase.dlURL, testCase.older) line1 := fmt.Sprintf("%s %s", plainMsg, color.YellowBold(testCase.expectedSubStr)) line2 := fmt.Sprintf("Update: %s", color.CyanBold(testCase.dlURL)) // Uncomment below to see message appearance: // fmt.Println(output) switch { case testCase.dlURL == "" && output != "":
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jul 31 15:36:19 UTC 2023 - 4.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/token/tokenfile/tokenfile_test.go
}, { Token: "token8", }, } for i, testCase := range testCases { resp, ok, err := auth.AuthenticateToken(context.Background(), testCase.Token) if testCase.User == nil { if resp != nil { t.Errorf("%d: unexpected non-nil user %#v", i, resp.User) } } else if !reflect.DeepEqual(testCase.User, resp.User) { t.Errorf("%d: expected user %#v, got %#v", i, testCase.User, resp.User) } if testCase.Ok != ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 22 17:16:59 UTC 2018 - 3.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning_unstructured_test.go
}, }, } for _, testCase := range testCases { codec := NewCodec(testCase.serializer, testCase.serializer, testCase.convertor, nil, nil, nil, nil, testCase.suggestedConvertVersion, "noxu-scheme") actualObj, actualSerializedGVK, err := codec.Decode([]byte(`{}`), testCase.defaultGVK, testCase.intoObj) if testCase.errFunc != nil { if !testCase.errFunc(err) { t.Errorf("%v: failed: %v", testCase.name, err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 08 14:55:24 UTC 2018 - 10.9K bytes - Viewed (0)