(t *testing.T)
| 52 | } |
| 53 | |
| 54 | func TestAddPeer(t *testing.T) { |
| 55 | nodeId := "120202c924ed1a67fd1719020ce599d723d09d48362376836e04b0be72dfe825e24d81" |
| 56 | peerconfig := &vconfig.PeerConfig{ |
| 57 | Index: uint32(1), |
| 58 | ID: nodeId, |
| 59 | } |
| 60 | peerpool := constructPeerPool(false) |
| 61 | res := peerpool.addPeer(peerconfig) |
| 62 | t.Logf("TestAddPeer : %v", res) |
| 63 | } |
| 64 | |
| 65 | func TestGetActivePeerCount(t *testing.T) { |
| 66 | peerpool := constructPeerPool(true) |
nothing calls this directly
no test coverage detected