(t *testing.T, peers ...*PeerInfo)
| 6 | ) |
| 7 | |
| 8 | func mustPeerStoreWithPeers(t *testing.T, peers ...*PeerInfo) *PeerStore { |
| 9 | t.Helper() |
| 10 | |
| 11 | ps := NewPeerStore() |
| 12 | ps.ReplaceAll(peers) |
| 13 | |
| 14 | return ps |
| 15 | } |
| 16 | |
| 17 | func TestPeerStoreGetByEmail(t *testing.T) { |
| 18 | ps := mustPeerStoreWithPeers(t, |
no test coverage detected