- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 1,691 for expectGet (0.14 sec)
-
src/crypto/internal/bigmod/nat_test.go
if out.Equal(expected) != 1 { t.Errorf("%+v != %+v", out, expected) } } func TestModSub(t *testing.T) { m := modulusFromBytes([]byte{13}) x := &Nat{[]uint{6}} y := &Nat{[]uint{7}} x.Sub(y, m) expected := &Nat{[]uint{12}} if x.Equal(expected) != 1 { t.Errorf("%+v != %+v", x, expected) } x.Sub(y, m) expected = &Nat{[]uint{5}} if x.Equal(expected) != 1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 12 00:56:20 UTC 2024 - 11.6K bytes - Viewed (0) -
cmd/kubeadm/app/util/version_test.go
for _, tc := range cases { t.Run(fmt.Sprintf("input:%s/expected:%s", tc.input, tc.expected), func(t *testing.T) { tag := KubernetesVersionToImageTag(tc.input) t.Logf("kubernetesVersionToImageTag: Input: %q. Result: %q. Expected: %q", tc.input, tag, tc.expected) if tag != tc.expected { t.Errorf("failed KubernetesVersionToImageTag: Input: %q. Result: %q. Expected: %q", tc.input, tag, tc.expected) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 26 03:30:51 UTC 2024 - 15K bytes - Viewed (0) -
internal/bucket/object/lock/lock_test.go
}, expected: ObjectLegalHold{Status: LegalHoldOff}, }, { metadata: map[string]string{ "x-amz-object-lock-legal-hold": "X", }, expected: ObjectLegalHold{Status: ""}, }, } for i, tt := range tests { o := GetObjectLegalHoldMeta(tt.metadata) if o.Status != tt.expected.Status { t.Fatalf("Case %d expected %v, got %v", i, tt.expected.Status, o.Status) } }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Feb 22 06:26:06 UTC 2024 - 17.1K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/fp_test.go
expect64(t, s+":c", c, expected) expect64(t, s+":d", d, expected) expect64(t, s+":e", e, expected) expect64(t, s+":f", f, expected) expect64(t, s+":g", g, expected) } func expectAll32(t *testing.T, s string, expected, a, b, c, d, e, f, g, h, i float32) { expect32(t, s+":a", a, expected) expect32(t, s+":b", b, expected) expect32(t, s+":c", c, expected) expect32(t, s+":d", d, expected)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 05 17:54:15 UTC 2022 - 35K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/IntMathTest.java
fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException expected) { } } } public void testFloorPowerOfTwoNegative() { for (int x : NEGATIVE_INTEGER_CANDIDATES) { try { IntMath.floorPowerOfTwo(x); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException expected) { } } }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 07 17:50:39 UTC 2024 - 24.5K bytes - Viewed (0) -
pkg/kubelet/cm/topologymanager/policy_test.go
if result != tc.current && result != tc.candidate { t.Errorf("Expected result to be either 'current' or 'candidate' hint") } if tc.expected == "current" && result != tc.current { t.Errorf("Expected result to be %v, got %v", tc.current, result) } if tc.expected == "candidate" && result != tc.candidate { t.Errorf("Expected result to be %v, got %v", tc.candidate, result) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 09 16:52:08 UTC 2022 - 34.6K bytes - Viewed (0) -
pkg/proxy/healthcheck/healthcheck_test.go
}) if len(hcs.services) != 3 { t.Errorf("expected 3 service, got %d", len(hcs.services)) } if hcs.services[nsn1].endpoints != 0 { t.Errorf("expected 0 endpoints, got %d", hcs.services[nsn1].endpoints) } if hcs.services[nsn2].endpoints != 0 { t.Errorf("expected 0 endpoints, got %d", hcs.services[nsn2].endpoints) } if hcs.services[nsn3].endpoints != 0 { t.Errorf("expected 0 endpoints, got %d", hcs.services[nsn3].endpoints)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 26 13:27:41 UTC 2024 - 21.4K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apihelpers/helpers_test.go
expected: true, }, { name: "alternative", group: "different.io", expected: false, }, } for _, test := range tests { t.Run(test.name, func(t *testing.T) { actual := IsProtectedCommunityGroup(test.group) if actual != test.expected { t.Fatalf("expected %v, got %v", test.expected, actual) } }) } } func TestGetAPIApprovalState(t *testing.T) { tests := []struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 03 16:49:27 UTC 2019 - 20.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/deleted_kinds_test.go
t.Helper() switch { case len(expected) == 0 && actual == nil: case len(expected) == 0 && actual != nil: t.Fatal(actual) case len(expected) != 0 && actual == nil: t.Fatalf("missing %q, <nil>", expected) case len(expected) != 0 && actual != nil && !strings.Contains(actual.Error(), expected): t.Fatalf("missing %q, %v", expected, actual) } } func Test_removeDeletedKinds(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 14 00:05:53 UTC 2023 - 9.8K bytes - Viewed (0) -
pkg/kubelet/cm/devicemanager/pod_devices_test.go
// We therefore use `ElementsMatch` instead of `Equal` on the member slices. as.ElementsMatch(tc.expected.Annotations, opts.Annotations) as.ElementsMatch(tc.expected.CDIDevices, opts.CDIDevices) as.ElementsMatch(tc.expected.Devices, opts.Devices) as.ElementsMatch(tc.expected.Envs, opts.Envs) as.ElementsMatch(tc.expected.Mounts, opts.Mounts) }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 10.3K bytes - Viewed (0)