// NewConnectionGater creates a new instance of ConnectionGater. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// NewGossipMetricer creates a new instance of GossipMetricer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// Peers provides a mock function with given fields:
func(_m*Peerstore)Peers()peer.IDSlice{
ret:=_m.Called()
varr0peer.IDSlice
ifrf,ok:=ret.Get(0).(func()peer.IDSlice);ok{
r0=rf()
}else{
ifret.Get(0)!=nil{
r0=ret.Get(0).(peer.IDSlice)
}
}
returnr0
}
typemockConstructorTestingTNewPeerstoreinterface{
mock.TestingT
Cleanup(func())
}
// NewPeerstore creates a new instance of Peerstore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.