- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 7,815 for expect2 (0.22 sec)
-
pkg/volume/util/volumeattributesclass_test.go
AlphaIsDefaultVolumeAttributesClassAnnotation: "true", }, }, }, expect: true, }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { actual := IsDefaultVolumeAttributesClassAnnotation(tc.class.ObjectMeta) if tc.expect != actual { t.Errorf("Expected %v, got %v", tc.expect, actual) } }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 03:18:56 UTC 2023 - 5.9K bytes - Viewed (0) -
tests/soft_delete_test.go
} } func TestDeletedAtUnMarshal(t *testing.T) { expected := &gorm.Model{} b, _ := json.Marshal(expected) result := &gorm.Model{} _ = json.Unmarshal(b, result) if result.DeletedAt != expected.DeletedAt { t.Errorf("Failed, result.DeletedAt: %v is not same as expected.DeletedAt: %v", result.DeletedAt, expected.DeletedAt) } } func TestDeletedAtOneOr(t *testing.T) {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Feb 01 06:40:55 UTC 2023 - 5.7K bytes - Viewed (0) -
pkg/securitycontext/util_test.go
}, expect: true, }, "allowPrivilegeEscalation true": { sc: &v1.SecurityContext{ AllowPrivilegeEscalation: &ptrue, }, expect: false, }, } for k, v := range tests { actual := AddNoNewPrivileges(v.sc) if actual != v.expect { t.Errorf("%s failed, expected %t but received %t", k, v.expect, actual) } } } func TestConvertToRuntimeMaskedPaths(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 05 01:25:23 UTC 2020 - 5K bytes - Viewed (0) -
tests/distinct_test.go
} expects := []User{ {Name: "distinct", Age: 20}, {Name: "distinct", Age: 18}, {Name: "distinct-2", Age: 18}, {Name: "distinct-3", Age: 18}, } if len(results) != 4 { t.Fatalf("invalid results length found, expects: %v, got %v", len(expects), len(results)) } for idx, expect := range expects { AssertObjEqual(t, results[idx], expect, "Name", "Age") } var count int64
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 2.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/filterlatency/filterlatency_test.go
wrapped.ServeHTTP(w, testRequest) if callCount != 1 { t.Errorf("expected the given handler to be invoked once, but was actually invoked %d times", callCount) } if filterRecord == nil { t.Fatal("expected a filter record in the request context, but got nil") } if filterName != filterRecord.name { t.Errorf("expected filter name=%s but got=%s", filterName, filterRecord.name) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 17:57:37 UTC 2024 - 7.1K bytes - Viewed (0) -
pilot/pkg/xds/discovery_test.go
} if !wgDoneOrTimeout(wg, time.Second) { t.Fatalf("Expected 5 pushes but got %v", len(pushes)) } expected := map[string]int{ "proxy-0": 1, "proxy-1": 1, "proxy-2": 1, "proxy-3": 1, "proxy-4": 1, } if !reflect.DeepEqual(expected, pushes) { t.Fatalf("Expected pushes %+v, got %+v", expected, pushes) } } type fakeStream struct { grpc.ServerStream }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 00:26:45 UTC 2024 - 9.2K bytes - Viewed (0) -
pkg/kubelet/eviction/eviction_manager_test.go
} expected := []bool{true, true, true} for i, pod := range pods { if result := manager.Admit(&lifecycle.PodAdmitAttributes{Pod: pod}); expected[i] != result.Admit { t.Errorf("Admit pod: %v, expected: %v, actual: %v", pod, expected[i], result.Admit) } } manager.nodeConditions = []v1.NodeConditionType{v1.NodeMemoryPressure} expected = []bool{true, true, false}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 15 23:14:12 UTC 2024 - 119.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/seat_seconds_test.go
ss SeatSeconds seats float64 expect time.Duration }{ {ss: SeatsTimesDuration(10, time.Second), seats: 1, expect: 10 * time.Second}, {ss: SeatsTimesDuration(1, time.Second), seats: 10, expect: 100 * time.Millisecond}, {ss: SeatsTimesDuration(13, 5*time.Millisecond), seats: 5, expect: 13 * time.Millisecond}, {ss: SeatsTimesDuration(12, 0), seats: 10, expect: 0}, } for _, testCase := range testCases {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 29 20:20:16 UTC 2021 - 2.5K bytes - Viewed (0) -
pilot/pkg/networking/core/route/retry/retry_test.go
g.Expect(policy).To(Not(BeNil())) g.Expect(policy.RetryOn).To(Equal("some,fake,conditions")) g.Expect(policy.PerTryTimeout).To(Equal(durationpb.New(time.Second * 3))) g.Expect(policy.NumRetries.Value).To(Equal(uint32(2))) g.Expect(policy.RetriableStatusCodes).To(Equal(make([]uint32, 0))) g.Expect(policy.RetryPriority).To(BeNil())
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 14:12:39 UTC 2024 - 7.7K bytes - Viewed (0) -
operator/pkg/util/yaml_test.go
if got := YAMLDiff(tt.diff1, tt.diff2); got != tt.expect { t.Errorf("%s: expect %v got %v", tt.desc, tt.expect, got) } }) } } func TestIsYAMLEqual(t *testing.T) { tests := []struct { desc string in1 string in2 string expect bool }{ { desc: "yaml-equal", in1: `foo: bar`, in2: `foo: bar`, expect: true, }, { desc: "bad-yaml-1",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 06 17:00:14 UTC 2024 - 6.7K bytes - Viewed (0)