Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockTxProcessor
- type MockTxProcessorMockRecorder
- type MockatxHandler
- type MockatxHandlerMockRecorder
- type MockatxIDsDB
- type MockatxIDsDBMockRecorder
- type MockblockHandler
- type MockblockHandlerMockRecorder
- type MocklayerDB
- func (m *MocklayerDB) EXPECT() *MocklayerDBMockRecorder
- func (m *MocklayerDB) GetAggregatedLayerHash(arg0 types.LayerID) types.Hash32
- func (m *MocklayerDB) GetLayerHash(arg0 types.LayerID) types.Hash32
- func (m *MocklayerDB) GetLayerInputVectorByID(arg0 types.LayerID) ([]types.BlockID, error)
- func (m *MocklayerDB) LayerBlockIds(arg0 types.LayerID) ([]types.BlockID, error)
- func (m *MocklayerDB) ProcessedLayer() types.LayerID
- func (m *MocklayerDB) SaveLayerInputVectorByID(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) GetLayerHash(arg0 interface{}) *gomock.Call
- func (mr *MocklayerDBMockRecorder) GetLayerInputVectorByID(arg0 interface{}) *gomock.Call
- func (mr *MocklayerDBMockRecorder) LayerBlockIds(arg0 interface{}) *gomock.Call
- func (mr *MocklayerDBMockRecorder) ProcessedLayer() *gomock.Call
- func (mr *MocklayerDBMockRecorder) SaveLayerInputVectorByID(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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTxProcessor ¶
type MockTxProcessor struct {
// contains filtered or unexported fields
}
MockTxProcessor is a mock of TxProcessor interface.
func NewMockTxProcessor ¶
func NewMockTxProcessor(ctrl *gomock.Controller) *MockTxProcessor
NewMockTxProcessor creates a new mock instance.
func (*MockTxProcessor) EXPECT ¶
func (m *MockTxProcessor) EXPECT() *MockTxProcessorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTxProcessor) HandleSyncTransaction ¶
func (m *MockTxProcessor) HandleSyncTransaction(data []byte) error
HandleSyncTransaction mocks base method.
type MockTxProcessorMockRecorder ¶
type MockTxProcessorMockRecorder struct {
// contains filtered or unexported fields
}
MockTxProcessorMockRecorder is the mock recorder for MockTxProcessor.
func (*MockTxProcessorMockRecorder) HandleSyncTransaction ¶
func (mr *MockTxProcessorMockRecorder) HandleSyncTransaction(data interface{}) *gomock.Call
HandleSyncTransaction indicates an expected call of HandleSyncTransaction.
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 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 ¶
func (m *MocklayerDB) GetAggregatedLayerHash(arg0 types.LayerID) types.Hash32
GetAggregatedLayerHash mocks base method.
func (*MocklayerDB) GetLayerHash ¶
func (m *MocklayerDB) GetLayerHash(arg0 types.LayerID) types.Hash32
GetLayerHash mocks base method.
func (*MocklayerDB) GetLayerInputVectorByID ¶
GetLayerInputVectorByID 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) SaveLayerInputVectorByID ¶
func (m *MocklayerDB) SaveLayerInputVectorByID(arg0 context.Context, arg1 types.LayerID, arg2 []types.BlockID) error
SaveLayerInputVectorByID 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) GetLayerHash ¶
func (mr *MocklayerDBMockRecorder) GetLayerHash(arg0 interface{}) *gomock.Call
GetLayerHash indicates an expected call of GetLayerHash.
func (*MocklayerDBMockRecorder) GetLayerInputVectorByID ¶
func (mr *MocklayerDBMockRecorder) GetLayerInputVectorByID(arg0 interface{}) *gomock.Call
GetLayerInputVectorByID indicates an expected call of GetLayerInputVectorByID.
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) SaveLayerInputVectorByID ¶
func (mr *MocklayerDBMockRecorder) SaveLayerInputVectorByID(arg0, arg1, arg2 interface{}) *gomock.Call
SaveLayerInputVectorByID indicates an expected call of SaveLayerInputVectorByID.
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) HasProof ¶
func (m *MockpoetDB) HasProof(proofRef []byte) bool
HasProof mocks base method.
func (*MockpoetDB) ValidateAndStore ¶
func (m *MockpoetDB) ValidateAndStore(proofMessage *types.PoetProofMessage) error
ValidateAndStore mocks base method.
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) HasProof ¶
func (mr *MockpoetDBMockRecorder) HasProof(proofRef interface{}) *gomock.Call
HasProof indicates an expected call of HasProof.
func (*MockpoetDBMockRecorder) ValidateAndStore ¶
func (mr *MockpoetDBMockRecorder) ValidateAndStore(proofMessage interface{}) *gomock.Call
ValidateAndStore indicates an expected call of ValidateAndStore.
func (*MockpoetDBMockRecorder) ValidateAndStoreMsg ¶
func (mr *MockpoetDBMockRecorder) ValidateAndStoreMsg(data interface{}) *gomock.Call
ValidateAndStoreMsg indicates an expected call of ValidateAndStoreMsg.