- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for testGolden (0.22 sec)
-
src/hash/fnv/fnv_test.go
} func TestGolden32(t *testing.T) { testGolden(t, New32(), golden32) } func TestGolden32a(t *testing.T) { testGolden(t, New32a(), golden32a) } func TestGolden64(t *testing.T) { testGolden(t, New64(), golden64) } func TestGolden64a(t *testing.T) { testGolden(t, New64a(), golden64a) } func TestGolden128(t *testing.T) { testGolden(t, New128(), golden128) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 01 21:04:12 UTC 2017 - 7.3K bytes - Viewed (0) -
src/crypto/rc4/rc4_test.go
dst := make([]byte, len(src)) c.XORKeyStream(dst, src) for i, v := range dst { if v != expect[i] { t.Fatalf("%s: mismatch at byte %d:\nhave %x\nwant %x", desc, i, dst, expect) } } } func TestGolden(t *testing.T) { for gi, g := range golden { data := make([]byte, len(g.keystream)) for i := range data { data[i] = byte(i) } expect := make([]byte, len(g.keystream)) for i := range expect {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 21 19:49:06 UTC 2018 - 4.3K bytes - Viewed (0) -
src/hash/adler32/adler32_test.go
func checksum(p []byte) uint32 { s1, s2 := uint32(1), uint32(0) for _, x := range p { s1 = (s1 + uint32(x)) % mod s2 = (s2 + s1) % mod } return s2<<16 | s1 } func TestGolden(t *testing.T) { for _, g := range golden { in := g.in if len(in) > 220 { in = in[:100] + "..." + in[len(in)-100:] } p := []byte(g.in) if got := checksum(p); got != g.out {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 01 21:04:12 UTC 2017 - 5.5K bytes - Viewed (0) -
src/cmd/internal/test2json/test2json_test.go
"flag" "fmt" "io" "os" "path/filepath" "reflect" "strings" "testing" "unicode/utf8" ) var update = flag.Bool("update", false, "rewrite testdata/*.json files") func TestGolden(t *testing.T) { files, err := filepath.Glob("testdata/*.test") if err != nil { t.Fatal(err) } for _, file := range files { name := strings.TrimSuffix(filepath.Base(file), ".test")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 26 19:50:36 UTC 2022 - 7.2K bytes - Viewed (0) -
src/crypto/ed25519/ed25519_test.go
if public.Equal(otherPub) { t.Errorf("different public keys are Equal") } if private.Equal(otherPriv) { t.Errorf("different private keys are Equal") } } func TestGolden(t *testing.T) { // sign.input.gz is a selection of test cases from // https://ed25519.cr.yp.to/python/sign.input testDataZ, err := os.Open("testdata/sign.input.gz") if err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 18:23:49 UTC 2024 - 10.9K bytes - Viewed (0) -
src/hash/crc64/crc64_test.go
{0xe7fcf1006b503b61, 0x27db187fc15bbc72, "This is a test of the emergency broadcast system.", "crc\x02s\xba\x84\x84\xbb\xcd]\xef}\xee[q\x16\xcb\xe4\x8d", "crc\x02`&\x9aR\xe1\xb7\xfee\xb1\x93] \xeb\xa9am"}, } func TestGolden(t *testing.T) { tabISO := MakeTable(ISO) tabECMA := MakeTable(ECMA) for i := 0; i < len(golden); i++ { g := golden[i] c := New(tabISO) io.WriteString(c, g.in) s := c.Sum64() if s != g.outISO {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 25 06:32:12 UTC 2018 - 9.9K bytes - Viewed (0) -
pkg/bootstrap/instance_test.go
) // Generate configs for the default configs used by istio. // If the template is updated, refresh golden files using: // REFRESH_GOLDEN=true go test ./pkg/bootstrap/... func TestGolden(t *testing.T) { cases := []struct { base string envVars map[string]string annotations map[string]string sdsUDSPath string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 16 17:05:28 UTC 2024 - 19.5K bytes - Viewed (0) -
src/hash/crc32/crc32_test.go
} archInitCastagnoli() slicingTable := slicingMakeTable(Castagnoli) testCrossCheck(t, archUpdateCastagnoli, func(crc uint32, b []byte) uint32 { return slicingUpdate(crc, slicingTable, b) }) } func TestGolden(t *testing.T) { testGoldenIEEE(t, ChecksumIEEE) // Some implementations have special code to deal with misaligned // data; test that as well. for delta := 1; delta <= 7; delta++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 12.1K bytes - Viewed (0) -
src/cmd/internal/notsha256/sha256_test.go
"1", "e", "2", "d", "3", "c", "4", "b", "5", "a", "6", "9", "7", "8", "8", "7", "9", "6", "a", "5", "b", "4", "c", "3", "d", "2", "e", "1", "f", "0", ) func TestGolden(t *testing.T) { for i := 0; i < len(golden); i++ { g := golden[i] gout := not.Replace(g.out) s := fmt.Sprintf("%x", Sum256([]byte(g.in))) if s != gout {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 29 14:23:17 UTC 2022 - 16.2K bytes - Viewed (0) -
src/crypto/md5/md5_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 23 16:54:46 UTC 2021 - 17.4K bytes - Viewed (0)