Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type Mockbroadcaster
- type MockbroadcasterMockRecorder
- type Mockcoin
- func (m *Mockcoin) EXPECT() *MockcoinMockRecorder
- func (m *Mockcoin) FinishEpoch()
- func (m *Mockcoin) FinishRound()
- func (m *Mockcoin) Get(arg0 types.EpochID, arg1 types.RoundID) bool
- func (m *Mockcoin) HandleSerializedMessage(arg0 context.Context, arg1 service.GossipMessage, arg2 service.Fetcher)
- func (m *Mockcoin) StartEpoch(arg0 types.EpochID, arg1 weakcoin.UnitAllowances)
- func (m *Mockcoin) StartRound(arg0 context.Context, arg1 types.RoundID) error
- type MockcoinMockRecorder
- func (mr *MockcoinMockRecorder) FinishEpoch() *gomock.Call
- func (mr *MockcoinMockRecorder) FinishRound() *gomock.Call
- func (mr *MockcoinMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockcoinMockRecorder) HandleSerializedMessage(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockcoinMockRecorder) StartEpoch(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockcoinMockRecorder) StartRound(arg0, arg1 interface{}) *gomock.Call
- type MocklayerClock
- func (m *MocklayerClock) AwaitLayer(layerID types.LayerID) chan struct{}
- func (m *MocklayerClock) EXPECT() *MocklayerClockMockRecorder
- func (m *MocklayerClock) GetCurrentLayer() types.LayerID
- func (m *MocklayerClock) LayerToTime(id types.LayerID) time.Time
- func (m *MocklayerClock) Subscribe() timesync.LayerTimer
- func (m *MocklayerClock) Unsubscribe(timer timesync.LayerTimer)
- type MocklayerClockMockRecorder
- func (mr *MocklayerClockMockRecorder) AwaitLayer(layerID interface{}) *gomock.Call
- func (mr *MocklayerClockMockRecorder) GetCurrentLayer() *gomock.Call
- func (mr *MocklayerClockMockRecorder) LayerToTime(id interface{}) *gomock.Call
- func (mr *MocklayerClockMockRecorder) Subscribe() *gomock.Call
- func (mr *MocklayerClockMockRecorder) Unsubscribe(timer interface{}) *gomock.Call
- type MocktortoiseBeaconDB
- type MocktortoiseBeaconDBMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mockbroadcaster ¶
type Mockbroadcaster struct {
// contains filtered or unexported fields
}
Mockbroadcaster is a mock of broadcaster interface.
func NewMockbroadcaster ¶
func NewMockbroadcaster(ctrl *gomock.Controller) *Mockbroadcaster
NewMockbroadcaster creates a new mock instance.
func (*Mockbroadcaster) EXPECT ¶
func (m *Mockbroadcaster) EXPECT() *MockbroadcasterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockbroadcasterMockRecorder ¶
type MockbroadcasterMockRecorder struct {
// contains filtered or unexported fields
}
MockbroadcasterMockRecorder is the mock recorder for Mockbroadcaster.
func (*MockbroadcasterMockRecorder) Broadcast ¶
func (mr *MockbroadcasterMockRecorder) Broadcast(ctx, channel, data interface{}) *gomock.Call
Broadcast indicates an expected call of Broadcast.
type Mockcoin ¶
type Mockcoin struct {
// contains filtered or unexported fields
}
Mockcoin is a mock of coin interface.
func NewMockcoin ¶
func NewMockcoin(ctrl *gomock.Controller) *Mockcoin
NewMockcoin creates a new mock instance.
func (*Mockcoin) EXPECT ¶
func (m *Mockcoin) EXPECT() *MockcoinMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Mockcoin) HandleSerializedMessage ¶
func (m *Mockcoin) HandleSerializedMessage(arg0 context.Context, arg1 service.GossipMessage, arg2 service.Fetcher)
HandleSerializedMessage mocks base method.
func (*Mockcoin) StartEpoch ¶
func (m *Mockcoin) StartEpoch(arg0 types.EpochID, arg1 weakcoin.UnitAllowances)
StartEpoch mocks base method.
type MockcoinMockRecorder ¶
type MockcoinMockRecorder struct {
// contains filtered or unexported fields
}
MockcoinMockRecorder is the mock recorder for Mockcoin.
func (*MockcoinMockRecorder) FinishEpoch ¶
func (mr *MockcoinMockRecorder) FinishEpoch() *gomock.Call
FinishEpoch indicates an expected call of FinishEpoch.
func (*MockcoinMockRecorder) FinishRound ¶
func (mr *MockcoinMockRecorder) FinishRound() *gomock.Call
FinishRound indicates an expected call of FinishRound.
func (*MockcoinMockRecorder) Get ¶
func (mr *MockcoinMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockcoinMockRecorder) HandleSerializedMessage ¶
func (mr *MockcoinMockRecorder) HandleSerializedMessage(arg0, arg1, arg2 interface{}) *gomock.Call
HandleSerializedMessage indicates an expected call of HandleSerializedMessage.
func (*MockcoinMockRecorder) StartEpoch ¶
func (mr *MockcoinMockRecorder) StartEpoch(arg0, arg1 interface{}) *gomock.Call
StartEpoch indicates an expected call of StartEpoch.
func (*MockcoinMockRecorder) StartRound ¶
func (mr *MockcoinMockRecorder) StartRound(arg0, arg1 interface{}) *gomock.Call
StartRound indicates an expected call of StartRound.
type MocklayerClock ¶
type MocklayerClock struct {
// contains filtered or unexported fields
}
MocklayerClock is a mock of layerClock interface.
func NewMocklayerClock ¶
func NewMocklayerClock(ctrl *gomock.Controller) *MocklayerClock
NewMocklayerClock creates a new mock instance.
func (*MocklayerClock) AwaitLayer ¶
func (m *MocklayerClock) AwaitLayer(layerID types.LayerID) chan struct{}
AwaitLayer mocks base method.
func (*MocklayerClock) EXPECT ¶
func (m *MocklayerClock) EXPECT() *MocklayerClockMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MocklayerClock) GetCurrentLayer ¶
func (m *MocklayerClock) GetCurrentLayer() types.LayerID
GetCurrentLayer mocks base method.
func (*MocklayerClock) LayerToTime ¶
func (m *MocklayerClock) LayerToTime(id types.LayerID) time.Time
LayerToTime mocks base method.
func (*MocklayerClock) Subscribe ¶
func (m *MocklayerClock) Subscribe() timesync.LayerTimer
Subscribe mocks base method.
func (*MocklayerClock) Unsubscribe ¶
func (m *MocklayerClock) Unsubscribe(timer timesync.LayerTimer)
Unsubscribe mocks base method.
type MocklayerClockMockRecorder ¶
type MocklayerClockMockRecorder struct {
// contains filtered or unexported fields
}
MocklayerClockMockRecorder is the mock recorder for MocklayerClock.
func (*MocklayerClockMockRecorder) AwaitLayer ¶
func (mr *MocklayerClockMockRecorder) AwaitLayer(layerID interface{}) *gomock.Call
AwaitLayer indicates an expected call of AwaitLayer.
func (*MocklayerClockMockRecorder) GetCurrentLayer ¶
func (mr *MocklayerClockMockRecorder) GetCurrentLayer() *gomock.Call
GetCurrentLayer indicates an expected call of GetCurrentLayer.
func (*MocklayerClockMockRecorder) LayerToTime ¶
func (mr *MocklayerClockMockRecorder) LayerToTime(id interface{}) *gomock.Call
LayerToTime indicates an expected call of LayerToTime.
func (*MocklayerClockMockRecorder) Subscribe ¶
func (mr *MocklayerClockMockRecorder) Subscribe() *gomock.Call
Subscribe indicates an expected call of Subscribe.
func (*MocklayerClockMockRecorder) Unsubscribe ¶
func (mr *MocklayerClockMockRecorder) Unsubscribe(timer interface{}) *gomock.Call
Unsubscribe indicates an expected call of Unsubscribe.
type MocktortoiseBeaconDB ¶
type MocktortoiseBeaconDB struct {
// contains filtered or unexported fields
}
MocktortoiseBeaconDB is a mock of tortoiseBeaconDB interface.
func NewMocktortoiseBeaconDB ¶
func NewMocktortoiseBeaconDB(ctrl *gomock.Controller) *MocktortoiseBeaconDB
NewMocktortoiseBeaconDB creates a new mock instance.
func (*MocktortoiseBeaconDB) EXPECT ¶
func (m *MocktortoiseBeaconDB) EXPECT() *MocktortoiseBeaconDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MocktortoiseBeaconDB) GetTortoiseBeacon ¶
GetTortoiseBeacon mocks base method.
func (*MocktortoiseBeaconDB) SetTortoiseBeacon ¶
SetTortoiseBeacon mocks base method.
type MocktortoiseBeaconDBMockRecorder ¶
type MocktortoiseBeaconDBMockRecorder struct {
// contains filtered or unexported fields
}
MocktortoiseBeaconDBMockRecorder is the mock recorder for MocktortoiseBeaconDB.
func (*MocktortoiseBeaconDBMockRecorder) GetTortoiseBeacon ¶
func (mr *MocktortoiseBeaconDBMockRecorder) GetTortoiseBeacon(epochID interface{}) *gomock.Call
GetTortoiseBeacon indicates an expected call of GetTortoiseBeacon.
func (*MocktortoiseBeaconDBMockRecorder) SetTortoiseBeacon ¶
func (mr *MocktortoiseBeaconDBMockRecorder) SetTortoiseBeacon(epochID, beacon interface{}) *gomock.Call
SetTortoiseBeacon indicates an expected call of SetTortoiseBeacon.