(t *testing.T)
| 313 | } |
| 314 | |
| 315 | func getNetHost(t *testing.T) host.Host { |
| 316 | netw := swarmt.GenSwarm(t) |
| 317 | h := bhost.NewBlankHost(netw) |
| 318 | t.Cleanup(func() { h.Close() }) |
| 319 | return h |
| 320 | } |
| 321 | |
| 322 | func connect(t *testing.T, a, b host.Host, as, bs map[common.Address][]uint64) { |
| 323 | pinfo := a.Peerstore().PeerInfo(a.ID()) |
no test coverage detected