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

Function TestInitVbftBlock

consensus/vbft/types_test.go:208–219  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

206}
207
208func TestInitVbftBlock(t *testing.T) {
209 blk, err := constructBlock()
210 if err != nil {
211 t.Errorf("constructBlock failed: %v", err)
212 }
213 _, err = initVbftBlock(blk.Block, common.Uint256{})
214 if err != nil {
215 t.Errorf("initVbftBlock failed: %v", err)
216 return
217 }
218 t.Log("TestInitVbftBlock succ")
219}

Callers

nothing calls this directly

Calls 3

constructBlockFunction · 0.85
initVbftBlockFunction · 0.85
ErrorfMethod · 0.80

Tested by

no test coverage detected