- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 719 for testHashes (0.1 sec)
-
src/cmd/vendor/golang.org/x/mod/sumdb/test.go
type TestServer struct { signer string gosum func(path, vers string) ([]byte, error) mu sync.Mutex hashes testHashes records [][]byte lookup map[string]int64 } // testHashes implements tlog.HashReader, reading from a slice. type testHashes []tlog.Hash func (h testHashes) ReadHashes(indexes []int64) ([]tlog.Hash, error) { var list []tlog.Hash for _, id := range indexes { list = append(list, h[id])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 12 20:38:21 UTC 2023 - 2.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java
} public void testShort() { TestHasher hasher = new TestHasher(); hasher.putShort((short) 0x0201); hasher.assertBytes(new byte[] {1, 2}); } public void testInt() { TestHasher hasher = new TestHasher(); hasher.putInt(0x04030201); hasher.assertBytes(new byte[] {1, 2, 3, 4}); } public void testLong() { TestHasher hasher = new TestHasher(); hasher.putLong(0x0807060504030201L);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 3.8K bytes - Viewed (0) -
pkg/proxy/ipvs/ipset/ipset_test.go
}, valid: false, }, } for i := range testCases { valid := testCases[i].entry.Validate(testCases[i].set) if valid != testCases[i].valid { t.Errorf("case [%d]: unexpected mismatch, expect valid[%v], got valid[%v], desc: %s", i, testCases[i].valid, valid, testCases[i].entry) } } } func TestEntryString(t *testing.T) { testCases := []struct { name string entry *Entry
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 41.5K bytes - Viewed (0) -
pkg/kubelet/cm/cgroup_manager_linux_test.go
}, } for _, testCase := range testCases { if actual := path.Base(testCase.input.ToSystemd()); actual != testCase.expected { t.Errorf("Unexpected result, input: %v, expected: %v, actual: %v", testCase.input, testCase.expected, actual) } } } func TestCgroupNameToSystemd(t *testing.T) { testCases := []struct { input CgroupName expected string }{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 24 18:21:21 UTC 2023 - 6.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/etcd3/lease_manager_test.go
) func TestGetReuseDurationSeconds(t *testing.T) { testCases := []struct { ttl int64 duration int64 }{ { ttl: 3600, duration: 60, }, { ttl: 1000, duration: 50, }, } lm := newDefaultLeaseManager(nil, NewDefaultLeaseManagerConfig()) for i := 0; i < len(testCases); i++ { dur := lm.getReuseDurationSecondsLocked(testCases[i].ttl) if dur != testCases[i].duration {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 11 13:22:07 UTC 2021 - 1.1K bytes - Viewed (0) -
cmd/net_test.go
) func TestMustSplitHostPort(t *testing.T) { testCases := []struct { hostPort string expectedHost string expectedPort string }{ {":54321", "", "54321"}, {"server:54321", "server", "54321"}, {":0", "", "0"}, {"server:https", "server", "443"}, {"server:http", "server", "80"}, } for _, testCase := range testCases { host, port := mustSplitHostPort(testCase.hostPort)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 19 08:43:09 UTC 2024 - 9.3K bytes - Viewed (0) -
internal/event/targetidset_test.go
) func TestTargetIDSetClone(t *testing.T) { testCases := []struct { set TargetIDSet targetIDToAdd TargetID }{ {NewTargetIDSet(), TargetID{"1", "webhook"}}, {NewTargetIDSet(TargetID{"1", "webhook"}), TargetID{"2", "webhook"}}, {NewTargetIDSet(TargetID{"1", "webhook"}, TargetID{"2", "amqp"}), TargetID{"2", "webhook"}}, } for i, testCase := range testCases { result := testCase.set.Clone()
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 3.9K bytes - Viewed (0) -
cmd/bucket-lifecycle_test.go
} } } // TestRestoreObjStatusRoundTrip restoreObjStatus roundtrip func TestRestoreObjStatusRoundTrip(t *testing.T) { testCases := []restoreObjStatus{ ongoingRestoreObj(), completedRestoreObj(time.Now().UTC()), } for i, tc := range testCases { actual, err := parseRestoreObjStatus(tc.String()) if err != nil { t.Fatalf("Test %d: parse restore object failed: %v", i+1, err) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue May 31 09:57:57 UTC 2022 - 7K bytes - Viewed (0) -
pilot/pkg/security/authz/matcher/string_test.go
}, }, }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { actual := StringMatcherWithPrefix(tc.v, tc.prefix) if !cmp.Equal(actual, tc.want, protocmp.Transform()) { t.Errorf("want %s but got %s", tc.want.String(), actual.String()) } }) } } func TestStringMatcherRegex(t *testing.T) { testCases := []testCase{ { name: "wildcardAsRequired", v: "*",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Aug 17 22:42:11 UTC 2023 - 5.2K bytes - Viewed (0) -
pkg/apis/core/helper/helpers_test.go
} } } func TestIsStandardResource(t *testing.T) { testCases := []struct { input string output bool }{ {"cpu", true}, {"memory", true}, {"disk", false}, {"blah", false}, {"x.y.z", false}, {"hugepages-2Mi", true}, {"requests.hugepages-2Mi", true}, } for i, tc := range testCases { if IsStandardResourceName(core.ResourceName(tc.input)) != tc.output {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Oct 28 07:31:28 UTC 2023 - 9.2K bytes - Viewed (0)