MCPcopy Create free account
hub / github.com/devlongs/gean / TestHashTreeRootBitvector

Function TestHashTreeRootBitvector

common/ssz/ssz_test.go:61–68  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

59}
60
61func TestHashTreeRootBitvector(t *testing.T) {
62 bv := types.NewBitvector(8)
63 bv.Set(0, true)
64 r := HashTreeRootBitvector(bv)
65 if r.IsZero() {
66 t.Error("should not be zero")
67 }
68}
69
70func TestHashTreeRootBitlist(t *testing.T) {
71 bl, _ := types.BitlistFromBits([]bool{true, false, true}, 100)

Callers

nothing calls this directly

Calls 4

SetMethod · 0.95
NewBitvectorFunction · 0.92
HashTreeRootBitvectorFunction · 0.85
IsZeroMethod · 0.80

Tested by

no test coverage detected