Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockatxHandler
- type MockatxHandlerMockRecorder
- type MockballotHandler
- type MockballotHandlerMockRecorder
- type MockblockHandler
- type MockblockHandlerMockRecorder
- type Mockfetcher
- func (m *Mockfetcher) AddPeersFromHash(arg0 types.Hash32, arg1 []types.Hash32)
- func (m *Mockfetcher) EXPECT() *MockfetcherMockRecorder
- func (m *Mockfetcher) GetEpochATXIDs(arg0 context.Context, arg1 types.EpochID, arg2 func([]byte, p2p.Peer), ...) error
- func (m *Mockfetcher) GetHash(arg0 types.Hash32, arg1 datastore.Hint, arg2 bool) chan types0.HashDataPromiseResult
- func (m *Mockfetcher) GetHashes(arg0 []types.Hash32, arg1 datastore.Hint, arg2 bool) map[types.Hash32]chan types0.HashDataPromiseResult
- func (m *Mockfetcher) GetLayerData(arg0 context.Context, arg1 types.LayerID, arg2 func([]byte, p2p.Peer, int), ...) error
- func (m *Mockfetcher) GetLayerOpinions(arg0 context.Context, arg1 types.LayerID, arg2 func([]byte, p2p.Peer, int), ...) error
- func (m *Mockfetcher) RegisterPeerHashes(arg0 p2p.Peer, arg1 []types.Hash32)
- func (m *Mockfetcher) Start()
- func (m *Mockfetcher) Stop()
- type MockfetcherMockRecorder
- func (mr *MockfetcherMockRecorder) AddPeersFromHash(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockfetcherMockRecorder) GetEpochATXIDs(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockfetcherMockRecorder) GetHash(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockfetcherMockRecorder) GetHashes(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockfetcherMockRecorder) GetLayerData(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockfetcherMockRecorder) GetLayerOpinions(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockfetcherMockRecorder) RegisterPeerHashes(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockfetcherMockRecorder) Start() *gomock.Call
- func (mr *MockfetcherMockRecorder) Stop() *gomock.Call
- type Mockhost
- type MockhostMockRecorder
- type MockmeshProvider
- type MockmeshProviderMockRecorder
- type MockpoetHandler
- type MockpoetHandlerMockRecorder
- 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 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) HandleSyncedBallot ¶
func (m *MockballotHandler) HandleSyncedBallot(arg0 context.Context, arg1 []byte) error
HandleSyncedBallot mocks base method.
type MockballotHandlerMockRecorder ¶
type MockballotHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockballotHandlerMockRecorder is the mock recorder for MockballotHandler.
func (*MockballotHandlerMockRecorder) HandleSyncedBallot ¶
func (mr *MockballotHandlerMockRecorder) HandleSyncedBallot(arg0, arg1 interface{}) *gomock.Call
HandleSyncedBallot indicates an expected call of HandleSyncedBallot.
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) HandleSyncedBlock ¶
func (m *MockblockHandler) HandleSyncedBlock(arg0 context.Context, arg1 []byte) error
HandleSyncedBlock mocks base method.
type MockblockHandlerMockRecorder ¶
type MockblockHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockblockHandlerMockRecorder is the mock recorder for MockblockHandler.
func (*MockblockHandlerMockRecorder) HandleSyncedBlock ¶
func (mr *MockblockHandlerMockRecorder) HandleSyncedBlock(arg0, arg1 interface{}) *gomock.Call
HandleSyncedBlock indicates an expected call of HandleSyncedBlock.
type Mockfetcher ¶
type Mockfetcher struct {
// contains filtered or unexported fields
}
Mockfetcher is a mock of fetcher interface.
func NewMockfetcher ¶
func NewMockfetcher(ctrl *gomock.Controller) *Mockfetcher
NewMockfetcher creates a new mock instance.
func (*Mockfetcher) AddPeersFromHash ¶
func (m *Mockfetcher) AddPeersFromHash(arg0 types.Hash32, arg1 []types.Hash32)
AddPeersFromHash mocks base method.
func (*Mockfetcher) EXPECT ¶
func (m *Mockfetcher) EXPECT() *MockfetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Mockfetcher) GetEpochATXIDs ¶
func (m *Mockfetcher) GetEpochATXIDs(arg0 context.Context, arg1 types.EpochID, arg2 func([]byte, p2p.Peer), arg3 func(error)) error
GetEpochATXIDs mocks base method.
func (*Mockfetcher) GetHash ¶
func (m *Mockfetcher) GetHash(arg0 types.Hash32, arg1 datastore.Hint, arg2 bool) chan types0.HashDataPromiseResult
GetHash mocks base method.
func (*Mockfetcher) GetHashes ¶
func (m *Mockfetcher) GetHashes(arg0 []types.Hash32, arg1 datastore.Hint, arg2 bool) map[types.Hash32]chan types0.HashDataPromiseResult
GetHashes mocks base method.
func (*Mockfetcher) GetLayerData ¶
func (m *Mockfetcher) GetLayerData(arg0 context.Context, arg1 types.LayerID, arg2 func([]byte, p2p.Peer, int), arg3 func(error, p2p.Peer, int)) error
GetLayerData mocks base method.
func (*Mockfetcher) GetLayerOpinions ¶
func (m *Mockfetcher) GetLayerOpinions(arg0 context.Context, arg1 types.LayerID, arg2 func([]byte, p2p.Peer, int), arg3 func(error, p2p.Peer, int)) error
GetLayerOpinions mocks base method.
func (*Mockfetcher) RegisterPeerHashes ¶
func (m *Mockfetcher) RegisterPeerHashes(arg0 p2p.Peer, arg1 []types.Hash32)
RegisterPeerHashes mocks base method.
type MockfetcherMockRecorder ¶
type MockfetcherMockRecorder struct {
// contains filtered or unexported fields
}
MockfetcherMockRecorder is the mock recorder for Mockfetcher.
func (*MockfetcherMockRecorder) AddPeersFromHash ¶
func (mr *MockfetcherMockRecorder) AddPeersFromHash(arg0, arg1 interface{}) *gomock.Call
AddPeersFromHash indicates an expected call of AddPeersFromHash.
func (*MockfetcherMockRecorder) GetEpochATXIDs ¶
func (mr *MockfetcherMockRecorder) GetEpochATXIDs(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetEpochATXIDs indicates an expected call of GetEpochATXIDs.
func (*MockfetcherMockRecorder) GetHash ¶
func (mr *MockfetcherMockRecorder) GetHash(arg0, arg1, arg2 interface{}) *gomock.Call
GetHash indicates an expected call of GetHash.
func (*MockfetcherMockRecorder) GetHashes ¶
func (mr *MockfetcherMockRecorder) GetHashes(arg0, arg1, arg2 interface{}) *gomock.Call
GetHashes indicates an expected call of GetHashes.
func (*MockfetcherMockRecorder) GetLayerData ¶
func (mr *MockfetcherMockRecorder) GetLayerData(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetLayerData indicates an expected call of GetLayerData.
func (*MockfetcherMockRecorder) GetLayerOpinions ¶
func (mr *MockfetcherMockRecorder) GetLayerOpinions(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetLayerOpinions indicates an expected call of GetLayerOpinions.
func (*MockfetcherMockRecorder) RegisterPeerHashes ¶
func (mr *MockfetcherMockRecorder) RegisterPeerHashes(arg0, arg1 interface{}) *gomock.Call
RegisterPeerHashes indicates an expected call of RegisterPeerHashes.
func (*MockfetcherMockRecorder) Start ¶
func (mr *MockfetcherMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockfetcherMockRecorder) Stop ¶
func (mr *MockfetcherMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
type Mockhost ¶
type Mockhost struct {
// contains filtered or unexported fields
}
Mockhost is a mock of host interface.
func NewMockhost ¶
func NewMockhost(ctrl *gomock.Controller) *Mockhost
NewMockhost creates a new mock instance.
func (*Mockhost) EXPECT ¶
func (m *Mockhost) EXPECT() *MockhostMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockhostMockRecorder ¶
type MockhostMockRecorder struct {
// contains filtered or unexported fields
}
MockhostMockRecorder is the mock recorder for Mockhost.
func (*MockhostMockRecorder) Close ¶
func (mr *MockhostMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockhostMockRecorder) GetPeers ¶
func (mr *MockhostMockRecorder) GetPeers() *gomock.Call
GetPeers indicates an expected call of GetPeers.
type MockmeshProvider ¶
type MockmeshProvider struct {
// contains filtered or unexported fields
}
MockmeshProvider is a mock of meshProvider interface.
func NewMockmeshProvider ¶
func NewMockmeshProvider(ctrl *gomock.Controller) *MockmeshProvider
NewMockmeshProvider creates a new mock instance.
func (*MockmeshProvider) EXPECT ¶
func (m *MockmeshProvider) EXPECT() *MockmeshProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockmeshProvider) LastVerified ¶
func (m *MockmeshProvider) LastVerified() types.LayerID
LastVerified mocks base method.
func (*MockmeshProvider) ProcessedLayer ¶
func (m *MockmeshProvider) ProcessedLayer() types.LayerID
ProcessedLayer mocks base method.
func (*MockmeshProvider) SetZeroBlockLayer ¶
SetZeroBlockLayer mocks base method.
type MockmeshProviderMockRecorder ¶
type MockmeshProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockmeshProviderMockRecorder is the mock recorder for MockmeshProvider.
func (*MockmeshProviderMockRecorder) LastVerified ¶
func (mr *MockmeshProviderMockRecorder) LastVerified() *gomock.Call
LastVerified indicates an expected call of LastVerified.
func (*MockmeshProviderMockRecorder) ProcessedLayer ¶
func (mr *MockmeshProviderMockRecorder) ProcessedLayer() *gomock.Call
ProcessedLayer indicates an expected call of ProcessedLayer.
func (*MockmeshProviderMockRecorder) SetZeroBlockLayer ¶
func (mr *MockmeshProviderMockRecorder) SetZeroBlockLayer(arg0, arg1 interface{}) *gomock.Call
SetZeroBlockLayer indicates an expected call of SetZeroBlockLayer.
type MockpoetHandler ¶
type MockpoetHandler struct {
// contains filtered or unexported fields
}
MockpoetHandler is a mock of poetHandler interface.
func NewMockpoetHandler ¶
func NewMockpoetHandler(ctrl *gomock.Controller) *MockpoetHandler
NewMockpoetHandler creates a new mock instance.
func (*MockpoetHandler) EXPECT ¶
func (m *MockpoetHandler) EXPECT() *MockpoetHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockpoetHandler) ValidateAndStoreMsg ¶
func (m *MockpoetHandler) ValidateAndStoreMsg(data []byte) error
ValidateAndStoreMsg mocks base method.
type MockpoetHandlerMockRecorder ¶
type MockpoetHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockpoetHandlerMockRecorder is the mock recorder for MockpoetHandler.
func (*MockpoetHandlerMockRecorder) ValidateAndStoreMsg ¶
func (mr *MockpoetHandlerMockRecorder) 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) HandleSyncedProposal ¶
func (m *MockproposalHandler) HandleSyncedProposal(arg0 context.Context, arg1 []byte) error
HandleSyncedProposal mocks base method.
type MockproposalHandlerMockRecorder ¶
type MockproposalHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockproposalHandlerMockRecorder is the mock recorder for MockproposalHandler.
func (*MockproposalHandlerMockRecorder) HandleSyncedProposal ¶
func (mr *MockproposalHandlerMockRecorder) HandleSyncedProposal(arg0, arg1 interface{}) *gomock.Call
HandleSyncedProposal indicates an expected call of HandleSyncedProposal.
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) HandleBlockTransaction ¶
func (m *MocktxHandler) HandleBlockTransaction(arg0 context.Context, arg1 []byte) error
HandleBlockTransaction mocks base method.
func (*MocktxHandler) HandleProposalTransaction ¶
func (m *MocktxHandler) HandleProposalTransaction(arg0 context.Context, arg1 []byte) error
HandleProposalTransaction mocks base method.
type MocktxHandlerMockRecorder ¶
type MocktxHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MocktxHandlerMockRecorder is the mock recorder for MocktxHandler.
func (*MocktxHandlerMockRecorder) HandleBlockTransaction ¶
func (mr *MocktxHandlerMockRecorder) HandleBlockTransaction(arg0, arg1 interface{}) *gomock.Call
HandleBlockTransaction indicates an expected call of HandleBlockTransaction.
func (*MocktxHandlerMockRecorder) HandleProposalTransaction ¶
func (mr *MocktxHandlerMockRecorder) HandleProposalTransaction(arg0, arg1 interface{}) *gomock.Call
HandleProposalTransaction indicates an expected call of HandleProposalTransaction.