Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTime ¶
type MockTime struct {
// contains filtered or unexported fields
}
MockTime is a mock of Time interface.
func NewMockTime ¶
func NewMockTime(ctrl *gomock.Controller) *MockTime
NewMockTime creates a new mock instance.
func (*MockTime) EXPECT ¶
func (m *MockTime) EXPECT() *MockTimeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTimeMockRecorder ¶
type MockTimeMockRecorder struct {
// contains filtered or unexported fields
}
MockTimeMockRecorder is the mock recorder for MockTime.
func (*MockTimeMockRecorder) Now ¶
func (mr *MockTimeMockRecorder) Now() *MockTimeNowCall
Now indicates an expected call of Now.
type MockTimeNowCall ¶ added in v1.4.0
MockTimeNowCall wrap *gomock.Call
func (*MockTimeNowCall) Do ¶ added in v1.4.0
func (c *MockTimeNowCall) Do(f func() time.Time) *MockTimeNowCall
Do rewrite *gomock.Call.Do
func (*MockTimeNowCall) DoAndReturn ¶ added in v1.4.0
func (c *MockTimeNowCall) DoAndReturn(f func() time.Time) *MockTimeNowCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTimeNowCall) Return ¶ added in v1.4.0
func (c *MockTimeNowCall) Return(arg0 time.Time) *MockTimeNowCall
Return rewrite *gomock.Call.Return
type MockgetPeers ¶
type MockgetPeers struct {
// contains filtered or unexported fields
}
MockgetPeers is a mock of getPeers interface.
func NewMockgetPeers ¶
func NewMockgetPeers(ctrl *gomock.Controller) *MockgetPeers
NewMockgetPeers creates a new mock instance.
func (*MockgetPeers) EXPECT ¶
func (m *MockgetPeers) EXPECT() *MockgetPeersMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockgetPeers) GetPeers ¶
func (m *MockgetPeers) GetPeers() []p2p.Peer
GetPeers mocks base method.
type MockgetPeersGetPeersCall ¶ added in v1.4.0
MockgetPeersGetPeersCall wrap *gomock.Call
func (*MockgetPeersGetPeersCall) Do ¶ added in v1.4.0
func (c *MockgetPeersGetPeersCall) Do(f func() []p2p.Peer) *MockgetPeersGetPeersCall
Do rewrite *gomock.Call.Do
func (*MockgetPeersGetPeersCall) DoAndReturn ¶ added in v1.4.0
func (c *MockgetPeersGetPeersCall) DoAndReturn(f func() []p2p.Peer) *MockgetPeersGetPeersCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockgetPeersGetPeersCall) Return ¶ added in v1.4.0
func (c *MockgetPeersGetPeersCall) Return(arg0 []p2p.Peer) *MockgetPeersGetPeersCall
Return rewrite *gomock.Call.Return
type MockgetPeersMockRecorder ¶
type MockgetPeersMockRecorder struct {
// contains filtered or unexported fields
}
MockgetPeersMockRecorder is the mock recorder for MockgetPeers.
func (*MockgetPeersMockRecorder) GetPeers ¶
func (mr *MockgetPeersMockRecorder) GetPeers() *MockgetPeersGetPeersCall
GetPeers indicates an expected call of GetPeers.