Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockatxHandler
- type MockatxHandlerMockRecorder
- type MockatxIDsDB
- type MockatxIDsDBMockRecorder
- type MockballotHandler
- type MockballotHandlerMockRecorder
- type MockblockHandler
- type MockblockHandlerMockRecorder
- type MocklayerDB
- func (m *MocklayerDB) EXPECT() *MocklayerDBMockRecorder
- func (m *MocklayerDB) GetAggregatedLayerHash(arg0 types.LayerID) (types.Hash32, error)
- func (m *MocklayerDB) GetHareConsensusOutput(arg0 types.LayerID) (types.BlockID, error)
- func (m *MocklayerDB) GetLayerHash(arg0 types.LayerID) (types.Hash32, error)
- func (m *MocklayerDB) LayerBallotIDs(arg0 types.LayerID) ([]types.BallotID, error)
- func (m *MocklayerDB) LayerBlockIds(arg0 types.LayerID) ([]types.BlockID, error)
- func (m *MocklayerDB) ProcessedLayer() types.LayerID
- func (m *MocklayerDB) SaveHareConsensusOutput(arg0 context.Context, arg1 types.LayerID, arg2 types.BlockID) error
- func (m *MocklayerDB) SetZeroBlockLayer(arg0 types.LayerID) error
- type MocklayerDBMockRecorder
- func (mr *MocklayerDBMockRecorder) GetAggregatedLayerHash(arg0 interface{}) *gomock.Call
- func (mr *MocklayerDBMockRecorder) GetHareConsensusOutput(arg0 interface{}) *gomock.Call
- func (mr *MocklayerDBMockRecorder) GetLayerHash(arg0 interface{}) *gomock.Call
- func (mr *MocklayerDBMockRecorder) LayerBallotIDs(arg0 interface{}) *gomock.Call
- func (mr *MocklayerDBMockRecorder) LayerBlockIds(arg0 interface{}) *gomock.Call
- func (mr *MocklayerDBMockRecorder) ProcessedLayer() *gomock.Call
- func (mr *MocklayerDBMockRecorder) SaveHareConsensusOutput(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MocklayerDBMockRecorder) SetZeroBlockLayer(arg0 interface{}) *gomock.Call
- type Mocknetwork
- func (m *Mocknetwork) EXPECT() *MocknetworkMockRecorder
- func (m *Mocknetwork) GetPeers() []peer.ID
- func (m *Mocknetwork) Network() network.Network
- func (m *Mocknetwork) NewStream(arg0 context.Context, arg1 peer.ID, arg2 ...protocol.ID) (network.Stream, error)
- func (m *Mocknetwork) PeerCount() uint64
- func (m *Mocknetwork) SetStreamHandler(arg0 protocol.ID, arg1 network.StreamHandler)
- type MocknetworkMockRecorder
- func (mr *MocknetworkMockRecorder) GetPeers() *gomock.Call
- func (mr *MocknetworkMockRecorder) Network() *gomock.Call
- func (mr *MocknetworkMockRecorder) NewStream(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MocknetworkMockRecorder) PeerCount() *gomock.Call
- func (mr *MocknetworkMockRecorder) SetStreamHandler(arg0, arg1 interface{}) *gomock.Call
- type MockpoetDB
- type MockpoetDBMockRecorder
- type MockproposalHandler
- type MockproposalHandlerMockRecorder
- type MocktxHandler
- type MocktxHandlerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockatxHandler ¶
type MockatxHandler struct {
// contains filtered or unexported fields
}
MockatxHandler is a mock of atxHandler interface.
func NewMockatxHandler ¶
func NewMockatxHandler(ctrl *gomock.Controller) *MockatxHandler
NewMockatxHandler creates a new mock instance.
func (*MockatxHandler) EXPECT ¶
func (m *MockatxHandler) EXPECT() *MockatxHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockatxHandler) HandleAtxData ¶
func (m *MockatxHandler) HandleAtxData(arg0 context.Context, arg1 []byte) error
HandleAtxData mocks base method.
type MockatxHandlerMockRecorder ¶
type MockatxHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockatxHandlerMockRecorder is the mock recorder for MockatxHandler.
func (*MockatxHandlerMockRecorder) HandleAtxData ¶
func (mr *MockatxHandlerMockRecorder) HandleAtxData(arg0, arg1 interface{}) *gomock.Call
HandleAtxData indicates an expected call of HandleAtxData.
type MockatxIDsDB ¶
type MockatxIDsDB struct {
// contains filtered or unexported fields
}
MockatxIDsDB is a mock of atxIDsDB interface.
func NewMockatxIDsDB ¶
func NewMockatxIDsDB(ctrl *gomock.Controller) *MockatxIDsDB
NewMockatxIDsDB creates a new mock instance.
func (*MockatxIDsDB) EXPECT ¶
func (m *MockatxIDsDB) EXPECT() *MockatxIDsDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockatxIDsDB) GetEpochAtxs ¶
GetEpochAtxs mocks base method.
type MockatxIDsDBMockRecorder ¶
type MockatxIDsDBMockRecorder struct {
// contains filtered or unexported fields
}
MockatxIDsDBMockRecorder is the mock recorder for MockatxIDsDB.
func (*MockatxIDsDBMockRecorder) GetEpochAtxs ¶
func (mr *MockatxIDsDBMockRecorder) GetEpochAtxs(epochID interface{}) *gomock.Call
GetEpochAtxs indicates an expected call of GetEpochAtxs.
type MockballotHandler ¶
type MockballotHandler struct {
// contains filtered or unexported fields
}
MockballotHandler is a mock of ballotHandler interface.
func NewMockballotHandler ¶
func NewMockballotHandler(ctrl *gomock.Controller) *MockballotHandler
NewMockballotHandler creates a new mock instance.
func (*MockballotHandler) EXPECT ¶
func (m *MockballotHandler) EXPECT() *MockballotHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockballotHandler) HandleBallotData ¶
func (m *MockballotHandler) HandleBallotData(arg0 context.Context, arg1 []byte) error
HandleBallotData mocks base method.
type MockballotHandlerMockRecorder ¶
type MockballotHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockballotHandlerMockRecorder is the mock recorder for MockballotHandler.
func (*MockballotHandlerMockRecorder) HandleBallotData ¶
func (mr *MockballotHandlerMockRecorder) HandleBallotData(arg0, arg1 interface{}) *gomock.Call
HandleBallotData indicates an expected call of HandleBallotData.
type MockblockHandler ¶
type MockblockHandler struct {
// contains filtered or unexported fields
}
MockblockHandler is a mock of blockHandler interface.
func NewMockblockHandler ¶
func NewMockblockHandler(ctrl *gomock.Controller) *MockblockHandler
NewMockblockHandler creates a new mock instance.
func (*MockblockHandler) EXPECT ¶
func (m *MockblockHandler) EXPECT() *MockblockHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockblockHandler) HandleBlockData ¶
func (m *MockblockHandler) HandleBlockData(arg0 context.Context, arg1 []byte) error
HandleBlockData mocks base method.
type MockblockHandlerMockRecorder ¶
type MockblockHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockblockHandlerMockRecorder is the mock recorder for MockblockHandler.
func (*MockblockHandlerMockRecorder) HandleBlockData ¶
func (mr *MockblockHandlerMockRecorder) HandleBlockData(arg0, arg1 interface{}) *gomock.Call
HandleBlockData indicates an expected call of HandleBlockData.
type MocklayerDB ¶
type MocklayerDB struct {
// contains filtered or unexported fields
}
MocklayerDB is a mock of layerDB interface.
func NewMocklayerDB ¶
func NewMocklayerDB(ctrl *gomock.Controller) *MocklayerDB
NewMocklayerDB creates a new mock instance.
func (*MocklayerDB) EXPECT ¶
func (m *MocklayerDB) EXPECT() *MocklayerDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MocklayerDB) GetAggregatedLayerHash ¶
GetAggregatedLayerHash mocks base method.
func (*MocklayerDB) GetHareConsensusOutput ¶
GetHareConsensusOutput mocks base method.
func (*MocklayerDB) GetLayerHash ¶
GetLayerHash mocks base method.
func (*MocklayerDB) LayerBallotIDs ¶
LayerBallotIDs mocks base method.
func (*MocklayerDB) LayerBlockIds ¶
LayerBlockIds mocks base method.
func (*MocklayerDB) ProcessedLayer ¶
func (m *MocklayerDB) ProcessedLayer() types.LayerID
ProcessedLayer mocks base method.
func (*MocklayerDB) SaveHareConsensusOutput ¶
func (m *MocklayerDB) SaveHareConsensusOutput(arg0 context.Context, arg1 types.LayerID, arg2 types.BlockID) error
SaveHareConsensusOutput mocks base method.
func (*MocklayerDB) SetZeroBlockLayer ¶
func (m *MocklayerDB) SetZeroBlockLayer(arg0 types.LayerID) error
SetZeroBlockLayer mocks base method.
type MocklayerDBMockRecorder ¶
type MocklayerDBMockRecorder struct {
// contains filtered or unexported fields
}
MocklayerDBMockRecorder is the mock recorder for MocklayerDB.
func (*MocklayerDBMockRecorder) GetAggregatedLayerHash ¶
func (mr *MocklayerDBMockRecorder) GetAggregatedLayerHash(arg0 interface{}) *gomock.Call
GetAggregatedLayerHash indicates an expected call of GetAggregatedLayerHash.
func (*MocklayerDBMockRecorder) GetHareConsensusOutput ¶
func (mr *MocklayerDBMockRecorder) GetHareConsensusOutput(arg0 interface{}) *gomock.Call
GetHareConsensusOutput indicates an expected call of GetHareConsensusOutput.
func (*MocklayerDBMockRecorder) GetLayerHash ¶
func (mr *MocklayerDBMockRecorder) GetLayerHash(arg0 interface{}) *gomock.Call
GetLayerHash indicates an expected call of GetLayerHash.
func (*MocklayerDBMockRecorder) LayerBallotIDs ¶
func (mr *MocklayerDBMockRecorder) LayerBallotIDs(arg0 interface{}) *gomock.Call
LayerBallotIDs indicates an expected call of LayerBallotIDs.
func (*MocklayerDBMockRecorder) LayerBlockIds ¶
func (mr *MocklayerDBMockRecorder) LayerBlockIds(arg0 interface{}) *gomock.Call
LayerBlockIds indicates an expected call of LayerBlockIds.
func (*MocklayerDBMockRecorder) ProcessedLayer ¶
func (mr *MocklayerDBMockRecorder) ProcessedLayer() *gomock.Call
ProcessedLayer indicates an expected call of ProcessedLayer.
func (*MocklayerDBMockRecorder) SaveHareConsensusOutput ¶
func (mr *MocklayerDBMockRecorder) SaveHareConsensusOutput(arg0, arg1, arg2 interface{}) *gomock.Call
SaveHareConsensusOutput indicates an expected call of SaveHareConsensusOutput.
func (*MocklayerDBMockRecorder) SetZeroBlockLayer ¶
func (mr *MocklayerDBMockRecorder) SetZeroBlockLayer(arg0 interface{}) *gomock.Call
SetZeroBlockLayer indicates an expected call of SetZeroBlockLayer.
type Mocknetwork ¶
type Mocknetwork struct {
// contains filtered or unexported fields
}
Mocknetwork is a mock of network interface.
func NewMocknetwork ¶
func NewMocknetwork(ctrl *gomock.Controller) *Mocknetwork
NewMocknetwork creates a new mock instance.
func (*Mocknetwork) EXPECT ¶
func (m *Mocknetwork) EXPECT() *MocknetworkMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Mocknetwork) GetPeers ¶
func (m *Mocknetwork) GetPeers() []peer.ID
GetPeers mocks base method.
func (*Mocknetwork) Network ¶
func (m *Mocknetwork) Network() network.Network
Network mocks base method.
func (*Mocknetwork) NewStream ¶
func (m *Mocknetwork) NewStream(arg0 context.Context, arg1 peer.ID, arg2 ...protocol.ID) (network.Stream, error)
NewStream mocks base method.
func (*Mocknetwork) PeerCount ¶
func (m *Mocknetwork) PeerCount() uint64
PeerCount mocks base method.
func (*Mocknetwork) SetStreamHandler ¶
func (m *Mocknetwork) SetStreamHandler(arg0 protocol.ID, arg1 network.StreamHandler)
SetStreamHandler mocks base method.
type MocknetworkMockRecorder ¶
type MocknetworkMockRecorder struct {
// contains filtered or unexported fields
}
MocknetworkMockRecorder is the mock recorder for Mocknetwork.
func (*MocknetworkMockRecorder) GetPeers ¶
func (mr *MocknetworkMockRecorder) GetPeers() *gomock.Call
GetPeers indicates an expected call of GetPeers.
func (*MocknetworkMockRecorder) Network ¶
func (mr *MocknetworkMockRecorder) Network() *gomock.Call
Network indicates an expected call of Network.
func (*MocknetworkMockRecorder) NewStream ¶
func (mr *MocknetworkMockRecorder) NewStream(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
NewStream indicates an expected call of NewStream.
func (*MocknetworkMockRecorder) PeerCount ¶
func (mr *MocknetworkMockRecorder) PeerCount() *gomock.Call
PeerCount indicates an expected call of PeerCount.
func (*MocknetworkMockRecorder) SetStreamHandler ¶
func (mr *MocknetworkMockRecorder) SetStreamHandler(arg0, arg1 interface{}) *gomock.Call
SetStreamHandler indicates an expected call of SetStreamHandler.
type MockpoetDB ¶
type MockpoetDB struct {
// contains filtered or unexported fields
}
MockpoetDB is a mock of poetDB interface.
func NewMockpoetDB ¶
func NewMockpoetDB(ctrl *gomock.Controller) *MockpoetDB
NewMockpoetDB creates a new mock instance.
func (*MockpoetDB) EXPECT ¶
func (m *MockpoetDB) EXPECT() *MockpoetDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockpoetDB) ValidateAndStoreMsg ¶
func (m *MockpoetDB) ValidateAndStoreMsg(data []byte) error
ValidateAndStoreMsg mocks base method.
type MockpoetDBMockRecorder ¶
type MockpoetDBMockRecorder struct {
// contains filtered or unexported fields
}
MockpoetDBMockRecorder is the mock recorder for MockpoetDB.
func (*MockpoetDBMockRecorder) ValidateAndStoreMsg ¶
func (mr *MockpoetDBMockRecorder) ValidateAndStoreMsg(data interface{}) *gomock.Call
ValidateAndStoreMsg indicates an expected call of ValidateAndStoreMsg.
type MockproposalHandler ¶
type MockproposalHandler struct {
// contains filtered or unexported fields
}
MockproposalHandler is a mock of proposalHandler interface.
func NewMockproposalHandler ¶
func NewMockproposalHandler(ctrl *gomock.Controller) *MockproposalHandler
NewMockproposalHandler creates a new mock instance.
func (*MockproposalHandler) EXPECT ¶
func (m *MockproposalHandler) EXPECT() *MockproposalHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockproposalHandler) HandleProposalData ¶
func (m *MockproposalHandler) HandleProposalData(arg0 context.Context, arg1 []byte) error
HandleProposalData mocks base method.
type MockproposalHandlerMockRecorder ¶
type MockproposalHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockproposalHandlerMockRecorder is the mock recorder for MockproposalHandler.
func (*MockproposalHandlerMockRecorder) HandleProposalData ¶
func (mr *MockproposalHandlerMockRecorder) HandleProposalData(arg0, arg1 interface{}) *gomock.Call
HandleProposalData indicates an expected call of HandleProposalData.
type MocktxHandler ¶
type MocktxHandler struct {
// contains filtered or unexported fields
}
MocktxHandler is a mock of txHandler interface.
func NewMocktxHandler ¶
func NewMocktxHandler(ctrl *gomock.Controller) *MocktxHandler
NewMocktxHandler creates a new mock instance.
func (*MocktxHandler) EXPECT ¶
func (m *MocktxHandler) EXPECT() *MocktxHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MocktxHandler) HandleSyncTransaction ¶
func (m *MocktxHandler) HandleSyncTransaction(arg0 context.Context, arg1 []byte) error
HandleSyncTransaction mocks base method.
type MocktxHandlerMockRecorder ¶
type MocktxHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MocktxHandlerMockRecorder is the mock recorder for MocktxHandler.
func (*MocktxHandlerMockRecorder) HandleSyncTransaction ¶
func (mr *MocktxHandlerMockRecorder) HandleSyncTransaction(arg0, arg1 interface{}) *gomock.Call
HandleSyncTransaction indicates an expected call of HandleSyncTransaction.