MCPcopy Create free account
hub / github.com/DNAProject/DNA / TestHashBlock

Function TestHashBlock

consensus/vbft/utils_test.go:53–60  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

51}
52
53func TestHashBlock(t *testing.T) {
54 blk, err := constructBlock()
55 if err != nil {
56 t.Errorf("constructBlock failed: %v", err)
57 }
58 hash, _ := HashBlock(blk)
59 t.Logf("TestHashBlock: %v", hash)
60}
61
62func TestHashMsg(t *testing.T) {
63 blk, err := constructBlock()

Callers

nothing calls this directly

Calls 3

constructBlockFunction · 0.85
HashBlockFunction · 0.85
ErrorfMethod · 0.80

Tested by

no test coverage detected