- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for expectedNaf (0.41 sec)
-
src/crypto/internal/edwards25519/scalar_test.go
} sNaf := s.nonAdjacentForm(5) for i := 0; i < 256; i++ { if expectedNaf[i] != sNaf[i] { t.Errorf("Wrong digit at position %d, got %d, expected %d", i, sNaf[i], expectedNaf[i]) } } } type notZeroScalar Scalar func (notZeroScalar) Generate(rand *mathrand.Rand, size int) reflect.Value { var s Scalar
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 17:26:17 UTC 2023 - 7.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/discovery/addresses_test.go
publicIP := "1.1.1.1" testCases := []struct { Request http.Request ExpectedMap []metav1.ServerAddressByClientCIDR }{ { Request: http.Request{}, ExpectedMap: publicAddressCIDRMap, }, { Request: http.Request{ Header: map[string][]string{ "X-Real-Ip": {internalIP}, }, }, ExpectedMap: internalAddressCIDRMap, }, { Request: http.Request{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 20 08:42:09 UTC 2021 - 2.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/mutation/optional_test.go
expression: `Object{}.?existing`, expectedVal: celtypes.OptionalNone, }, { name: "map non-existing field, return none", expression: `{"foo": 1}[?"bar"]`, expectedVal: celtypes.OptionalNone, }, { name: "map existing field, return actual value", expression: `{"foo": 1}[?"foo"]`, expectedVal: celtypes.OptionalOf(celtypes.Int(1)), }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 25 21:52:39 UTC 2024 - 4.9K bytes - Viewed (0) -
src/net/http/cgi/integration_test.go
h := &Handler{ Path: os.Args[0], Root: "/test.go", } expectedMap := map[string]string{ "nil-request-body": "false", } _ = runCgiTest(t, h, "POST /test.go?nil-request-body=1 HTTP/1.0\nHost: example.com\n\n", expectedMap) _ = runCgiTest(t, h, "POST /test.go?nil-request-body=1 HTTP/1.0\nHost: example.com\nContent-Length: 0\n\n", expectedMap) } func TestChildContentType(t *testing.T) { testenv.MustHaveExec(t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 07 18:42:44 UTC 2023 - 5.5K bytes - Viewed (0) -
cmd/kubeadm/app/util/arguments_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 16 10:27:05 UTC 2023 - 8.9K bytes - Viewed (0) -
src/net/http/cgi/host_test.go
func runCgiTest(t *testing.T, h *Handler, httpreq string, expectedMap map[string]string, checks ...func(reqInfo map[string]string)) *httptest.ResponseRecorder { rw := httptest.NewRecorder() req := newRequest(httpreq) h.ServeHTTP(rw, req) runResponseChecks(t, rw, expectedMap, checks...) return rw } func runResponseChecks(t *testing.T, rw *httptest.ResponseRecorder, expectedMap map[string]string, checks ...func(reqInfo map[string]string)) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 18:29:59 UTC 2024 - 13.3K bytes - Viewed (0) -
internal/bucket/object/lock/lock_test.go
}, expectedVal: true, }, { header: http.Header{ AmzObjectLockBypassRetGovernance: []string{""}, }, expectedVal: false, }, } for _, tt := range tests { actualVal := IsObjectLockRequested(tt.header) if actualVal != tt.expectedVal { t.Fatalf("error: expected %v, actual %v", tt.expectedVal, actualVal) } } }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Feb 22 06:26:06 UTC 2024 - 17.1K bytes - Viewed (0) -
pkg/kubelet/util/cache/object_cache_test.go
} } func TestExpirationBasic(t *testing.T) { unexpectedVal := "bar" expectedVal := "bar2" testObj := testObject{ key: "foo", val: unexpectedVal, } fakeClock := testingclock.NewFakeClock(time.Now()) objectCache := NewFakeObjectCache(func() (interface{}, error) { return expectedVal, nil }, 1*time.Second, fakeClock) err := objectCache.Add(testObj.key, testObj.val)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 17 13:19:08 UTC 2021 - 2.6K bytes - Viewed (0) -
pkg/kubelet/cm/cgroup_manager_linux_test.go
func TestNewCgroupName(t *testing.T) { a := ParseCgroupfsToCgroupName("/a/") ab := NewCgroupName(a, "b") expectedAB := CgroupName([]string{"a", "", "b"}) if !reflect.DeepEqual(ab, expectedAB) { t.Errorf("Expected %d%+v; got %d%+v", len(expectedAB), expectedAB, len(ab), ab) } abc := NewCgroupName(ab, "c") expectedABC := CgroupName([]string{"a", "", "b", "c"})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 24 18:21:21 UTC 2023 - 6.1K bytes - Viewed (0) -
cmd/dependencyverifier/dependencyverifier.go
} for expectedRef, expectedFrom := range configFromFile.Status.UnwantedReferences { actualFrom, ok := config.Status.UnwantedReferences[expectedRef] if !ok { // disappeared entirely log.Printf("Good news! Unwanted dependency %q is no longer referenced. Remove status.unwantedReferences[%q] in %s to ensure it doesn't get reintroduced.", expectedRef, expectedRef, dependenciesJSONPath) needUpdate = true
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 07 01:48:30 UTC 2023 - 12.7K bytes - Viewed (0)