MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / TestFnvHash32

Function TestFnvHash32

internal/utils/utils_test.go:59–66  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

57}
58
59func TestFnvHash32(t *testing.T) {
60 t.Run("test hash32", func(t *testing.T) {
61 bytes := []byte("test-fnv-hash32")
62 hash_result, err := utils.GetFnv32(bytes)
63 assert.NoError(t, err)
64 assert.Equal(t, uint32(1486366400), hash_result)
65 })
66}

Callers

nothing calls this directly

Calls 2

GetFnv32Function · 0.92
RunMethod · 0.80

Tested by

no test coverage detected