- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for TestHash (0.27 sec)
-
src/cmd/go/internal/cache/hash_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package cache import ( "fmt" "os" "testing" ) func TestHash(t *testing.T) { oldSalt := hashSalt hashSalt = nil defer func() { hashSalt = oldSalt }() h := NewHash("alice") h.Write([]byte("hello world")) sum := fmt.Sprintf("%x", h.Sum())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 09 19:12:23 UTC 2020 - 1.1K bytes - Viewed (0) -
cmd/kubeadm/app/util/pubkeypin/pubkeypin_test.go
} err = s.Allow(hashes...) if err != nil || len(s.sha256Hashes) != 2 { t.Error("expected allowing multiple hashes to succeed") return } } func TestHash(t *testing.T) { actualHash := Hash(testCert(t, testCertPEM)) if actualHash != expectedHash { t.Errorf( "failed to Hash() to the expected value\n\texpected: %q\n\t actual: %q", expectedHash,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 13 11:38:39 UTC 2021 - 5.9K bytes - Viewed (0) -
src/test/java/jcifs/tests/NamingTest.java
} @Test @Ignore public void testWhitespaceSuffix () throws Exception { runFilenameTest("wssuffix "); } @Test @Ignore public void testHash () throws Exception { runFilenameTest("hash#tag"); } private void runFilenameTest ( String... names ) throws CIFSException, UnknownHostException, MalformedURLException {
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sat Jun 06 10:48:05 UTC 2020 - 7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/ByteSourceTester.java
@Override public byte[] getResult() { return out.toByteArray(); } }); assertExpectedBytes(readBytes); } public void testHash() throws IOException { HashCode expectedHash = Hashing.md5().hashBytes(expected); assertEquals(expectedHash, source.hash(Hashing.md5())); } public void testSlice_illegalArguments() { assertThrows(
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 8.6K bytes - Viewed (0) -
src/testing/fstest/testfs_test.go
if err := os.Symlink(filepath.Join(tmp, "hello"), filepath.Join(tmp, "hello.link")); err != nil { t.Fatal(err) } if err := TestFS(tmpfs, "hello", "hello.link"); err != nil { t.Fatal(err) } } func TestDash(t *testing.T) { m := MapFS{ "a-b/a": {Data: []byte("a-b/a")}, } if err := TestFS(m, "a-b/a"); err != nil { t.Error(err) } } type shuffledFS MapFS
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 2.9K bytes - Viewed (0)