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

Function TestDeserializeVbftMsg

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

Source from the content-addressed store, hash-verified

48}
49
50func TestDeserializeVbftMsg(t *testing.T) {
51 msg := constructMsg()
52 data, err := SerializeVbftMsg(msg)
53 if err != nil {
54 t.Errorf("TestSerializeVbftMsg failed :%v", err)
55 return
56 }
57 _, err = DeserializeVbftMsg(data)
58 if err != nil {
59 t.Errorf("DeserializeVbftMsg failed :%v", err)
60 return
61 }
62 t.Logf("TestDeserializeVbftMsg succ")
63}

Callers

nothing calls this directly

Calls 4

constructMsgFunction · 0.85
SerializeVbftMsgFunction · 0.85
DeserializeVbftMsgFunction · 0.85
ErrorfMethod · 0.80

Tested by

no test coverage detected