TestAddrHandle tests Function AddrHandle handling a neighbor address response message
(t *testing.T)
| 662 | |
| 663 | // TestAddrHandle tests Function AddrHandle handling a neighbor address response message |
| 664 | func TestAddrHandle(t *testing.T) { |
| 665 | nodeAddrs := []msgCommon.PeerAddr{} |
| 666 | buf := msgpack.NewAddrs(nodeAddrs) |
| 667 | msg := &types.MsgPayload{ |
| 668 | Id: 0, |
| 669 | Addr: "127.0.0.1:50010", |
| 670 | Payload: buf, |
| 671 | } |
| 672 | |
| 673 | AddrHandle(msg, network, nil) |
| 674 | } |
| 675 | |
| 676 | // TestDataReqHandle tests Function DataReqHandle handling a data req(block/Transaction) |
| 677 | func TestDataReqHandle(t *testing.T) { |
nothing calls this directly
no test coverage detected