(t *testing.T)
| 68 | } |
| 69 | |
| 70 | func TestHashTreeRootBitlist(t *testing.T) { |
| 71 | bl, _ := types.BitlistFromBits([]bool{true, false, true}, 100) |
| 72 | r := HashTreeRootBitlist(bl) |
| 73 | if r.IsZero() { |
| 74 | t.Error("should not be zero") |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | func TestNextPowerOfTwo(t *testing.T) { |
| 79 | tests := [][2]int{{0, 1}, {1, 1}, {2, 2}, {3, 4}, {5, 8}, {8, 8}, {9, 16}} |
nothing calls this directly
no test coverage detected