(t *testing.T)
| 48 | } |
| 49 | |
| 50 | func 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 | } |
nothing calls this directly
no test coverage detected