- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 483 for testCases (0.14 sec)
-
pkg/kubelet/cm/memorymanager/state/state_checkpoint_test.go
assert.Equal(t, expectedMemoryAssignments, restoredMemoryAssignments, "state memory assignments mismatch") } func TestCheckpointStateRestore(t *testing.T) { testCases := []struct { description string checkpointContent string expectedError string expectedState *stateMemory }{ { "Restore non-existing checkpoint", "", "",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jul 30 03:35:26 UTC 2022 - 10.6K bytes - Viewed (0) -
src/cmd/go/internal/fsys/fsys_test.go
33 -- subdir4/file4.txt -- 444 -- overlayfiles/subdir2_file2.txt -- 2 -- overlayfiles/subdir3_file3b.txt -- 66666 -- overlayfiles/subdir4 -- x -- subdir6/file6.txt -- six `) testCases := []struct { path string want, wantErr bool }{ {"", true, true}, {".", true, false}, {cwd, true, false}, {cwd + string(filepath.Separator), true, false}, // subdir1 is only on disk
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 18:52:11 UTC 2023 - 29.1K bytes - Viewed (0) -
pkg/securitycontext/accessors_test.go
"k8s.io/utils/pointer" ) func TestPodSecurityContextAccessor(t *testing.T) { fsGroup := int64(2) runAsUser := int64(1) runAsGroup := int64(1) runAsNonRoot := true testcases := []*api.PodSecurityContext{ nil, {}, {FSGroup: &fsGroup}, {HostIPC: true}, {HostNetwork: true}, {HostPID: true}, {RunAsNonRoot: &runAsNonRoot}, {RunAsUser: &runAsUser},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 22 16:15:27 UTC 2023 - 27.8K bytes - Viewed (0) -
pkg/controller/nodeipam/ipam/range_allocator_test.go
break } } } } // run the test cases for _, tc := range testCases { testFunc(tc) } } func TestAllocateOrOccupyCIDRFailure(t *testing.T) { testCases := []testCase{ { description: "When there's no ServiceCIDR return first CIDR in range", fakeNodeHandler: &testutil.FakeNodeHandler{ Existing: []*v1.Node{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 10:06:15 UTC 2024 - 25.2K 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) -
pilot/pkg/xds/bench_test.go
testBenchmark(t, v3.RouteType, testCases) } func BenchmarkClusterGeneration(b *testing.B) { runBenchmark(b, v3.ClusterType, testCases) } func TestClusterGeneration(t *testing.T) { testBenchmark(t, v3.ClusterType, testCases) } func BenchmarkListenerGeneration(b *testing.B) { runBenchmark(b, v3.ListenerType, testCases) } func TestListenerGeneration(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 22 18:13:40 UTC 2024 - 19.7K 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) -
pkg/volume/csi/csi_client_test.go
capabilityMethodToTest func(*csiDriverClient) (bool, error), nodeClientGenerator func(bool) *fake.NodeClient) { testCases := []struct { name string capable bool }{ {name: "positive", capable: true}, {name: "negative", capable: false}, } for _, tc := range testCases { t.Logf("Running test case: %s", tc.name) fakeCloser := fake.NewCloser(t) client := &csiDriverClient{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 33.9K 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) -
internal/hash/reader_test.go
success: false, }, } for i, testCase := range testCases { t.Run(fmt.Sprintf("case-%d", i+1), func(t *testing.T) { _, err := NewReader(context.Background(), testCase.src, testCase.size, testCase.md5hex, testCase.sha256hex, testCase.actualSize) if err != nil && testCase.success { t.Errorf("Test %q: Expected success, but got error %s instead", testCase.desc, err) } if err == nil && !testCase.success {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Sep 18 17:00:54 UTC 2023 - 10.3K bytes - Viewed (0)