| 357 | func (pg *fakePeerGetter) Get(id types.ID) Peer { return pg.peers[id] } |
| 358 | |
| 359 | type fakePeer struct { |
| 360 | msgs []raftpb.Message |
| 361 | snapMsgs []snap.Message |
| 362 | peerURLs types.URLs |
| 363 | connc chan *outgoingConn |
| 364 | paused bool |
| 365 | } |
| 366 | |
| 367 | func newFakePeer() *fakePeer { |
| 368 | fakeURL, _ := url.Parse("http://localhost") |
nothing calls this directly
no outgoing calls
no test coverage detected