MCPcopy Index your code
hub / github.com/upper/db / AddToHash

Function AddToHash

internal/cache/hash.go:39–47  ·  view source on GitHub ↗
(h uint64, in ...interface{})

Source from the content-addressed store, hash-verified

37}
38
39func AddToHash(h uint64, in ...interface{}) uint64 {
40 for i := range in {
41 if in[i] == nil {
42 continue
43 }
44 h = addToHash(h, in[i])
45 }
46 return h
47}
48
49func addToHash(h uint64, in interface{}) uint64 {
50 switch v := in.(type) {

Callers 8

HashMethod · 0.92
HashMethod · 0.92
HashMethod · 0.92
HashMethod · 0.92
HashMethod · 0.92
HashMethod · 0.92
HashMethod · 0.92
NewHashFunction · 0.85

Calls 1

addToHashFunction · 0.85

Tested by

no test coverage detected