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

Function constructMsg

consensus/vbft/msg_builder_test.go:31–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29)
30
31func constructMsg() *blockProposalMsg {
32 acc := account.NewAccount("SHA256withECDSA")
33 if acc == nil {
34 fmt.Println("GetDefaultAccount error: acc is nil")
35 return nil
36 }
37 msg := constructProposalMsgTest(acc)
38 return msg
39}
40func TestSerializeVbftMsg(t *testing.T) {
41 msg := constructMsg()
42 _, err := SerializeVbftMsg(msg)

Callers 2

TestSerializeVbftMsgFunction · 0.85
TestDeserializeVbftMsgFunction · 0.85

Calls 2

NewAccountFunction · 0.92
constructProposalMsgTestFunction · 0.85

Tested by

no test coverage detected