MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / TestHash

Function TestHash

internal/utils/fnv/hash_test.go:11–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestHash(t *testing.T) {
12 for _, key := range []string{"costarring", "liquid", "hello"} {
13 var h = fnv.HashString(key)
14 t.Log(key + " => " + types.String(h))
15 }
16}
17
18func BenchmarkHashString(b *testing.B) {
19 b.RunParallel(func(pb *testing.PB) {

Callers

nothing calls this directly

Calls 3

HashStringFunction · 0.92
LogMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected