- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 5,437 for expectUsed (0.19 sec)
-
cni/test/install_k8s_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jul 27 18:01:48 UTC 2022 - 8K bytes - Viewed (0) -
pkg/config/labels/instance_test.go
got.selected = c.left.Match(c.right) if got != c.expected { t.Errorf("%v.SubsetOf(%v) got %v, expected %v", c.left, c.right, got, c.expected) } } } func TestString(t *testing.T) { cases := []struct { input labels.Instance expected string }{ { input: nil, expected: "", }, { input: labels.Instance{}, expected: "", }, {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 16 06:54:36 UTC 2023 - 4.8K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/convert_test.go
assert.Equal(t, test.expected, actual) } } func TestConvertToRuntimeAPIImageSpec(t *testing.T) { testCases := []struct { input kubecontainer.ImageSpec expected *runtimeapi.ImageSpec }{ { input: kubecontainer.ImageSpec{ Image: "test", RuntimeHandler: "", Annotations: nil, }, expected: &runtimeapi.ImageSpec{ Image: "test",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 7K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/tableprinter_test.go
printer.PrintObj(table, out) // Validate the expected output matches the printed table. if test.expected != out.String() { t.Errorf("Table printing error: expected (%s), got (%s)", test.expected, out.String()) } } } func TestPrintTable_NonTable(t *testing.T) { tests := []struct { object runtime.Object options PrintOptions expected string }{ // Test non-table default printing for a pod.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Oct 30 15:08:43 UTC 2022 - 24.4K bytes - Viewed (0) -
plugin/pkg/admission/eventratelimit/cache_test.go
expected: rateLimiters[1], }, { name: "first obtained second time", key: 0, expected: rateLimiters[0], }, { name: "third added", key: 2, expected: rateLimiters[2], }, { name: "third obtained", key: 2, expected: rateLimiters[2], }, { name: "first obtained third time", key: 0, expected: rateLimiters[0], },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 08 02:31:37 UTC 2021 - 2.7K bytes - Viewed (0) -
pkg/apis/admissionregistration/v1beta1/defaults_test.go
}, }, } for _, test := range tests { t.Run(test.name, func(t *testing.T) { original := test.original expected := test.expected legacyscheme.Scheme.Default(original) if !apiequality.Semantic.DeepEqual(original, expected) { t.Error(cmp.Diff(expected, original)) } }) } } func TestDefaultAdmissionPolicy(t *testing.T) { fail := v1beta1.Fail
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 20 20:24:09 UTC 2023 - 6.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/httpstream/wsstream/conn_test.go
return } } defer client.Close() if test.error && err == nil { t.Fatalf("test %d: expected an error", i) } <-conn.ready if got, expected := <-selectedProtocol, test.expected; got != expected { t.Fatalf("test %d: unexpected protocol version: got=%s expected=%s", i, got, expected) } }() } } func TestIsWebSocketRequestWithStreamCloseProtocol(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 23 22:33:38 UTC 2023 - 11.4K bytes - Viewed (0) -
pilot/pkg/model/policyattachment_test.go
nsName := types.NamespacedName{Name: "policy1", Namespace: "default"} matcher := tt.selection.ShouldAttachPolicy(mockKind, nsName, tt.policy) if matcher != tt.expected { t.Errorf("Expected %v, but got %v", tt.expected, matcher) } }) } } type mockPolicyTargetGetter struct { targetRef *v1beta1.PolicyTargetReference targetRefs []*v1beta1.PolicyTargetReference
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 22:20:44 UTC 2024 - 8.3K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/maven/MavenScope.groovy
assert dependencyManagement.isEmpty() } void assertDependsOn(String... expected) { assertDependencies(dependencies, expected) } private void assertDependencies(Map<String, MavenDependency> dependencies, String... expected) { assert dependencies.size() == expected.length expected.each { String key = StringUtils.substringBefore(it, "@")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 3.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/watch_tracker_test.go
testCases := []struct { name string request *http.Request expected *watchIdentifier }{ { name: "watch all objects", request: httpRequest("GET", "/api/v1/pods", "watch=true"), expected: newWatchIdentifier("", "pods", "", ""), }, { name: "list all objects", request: httpRequest("GET", "/api/v1/pods", ""), expected: nil, }, { name: "watch namespace-scoped objects",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 03 14:02:51 UTC 2021 - 10.4K bytes - Viewed (0)