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

Function TestSerializeVbftMsg

consensus/vbft/msg_builder_test.go:40–48  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

38 return msg
39}
40func TestSerializeVbftMsg(t *testing.T) {
41 msg := constructMsg()
42 _, err := SerializeVbftMsg(msg)
43 if err != nil {
44 t.Errorf("TestSerializeVbftMsg failed :%v", err)
45 return
46 }
47 t.Logf("TestSerializeVbftMsg succ")
48}
49
50func TestDeserializeVbftMsg(t *testing.T) {
51 msg := constructMsg()

Callers

nothing calls this directly

Calls 3

constructMsgFunction · 0.85
SerializeVbftMsgFunction · 0.85
ErrorfMethod · 0.80

Tested by

no test coverage detected