Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockModule
- func (m *MockModule) EXPECT() *MockModuleMockRecorder
- func (m *MockModule) GetByHash(arg0 context.Context, arg1 header0.Hash) (*header.ExtendedHeader, error)
- func (m *MockModule) GetByHeight(arg0 context.Context, arg1 uint64) (*header.ExtendedHeader, error)
- func (m *MockModule) GetRangeByHeight(arg0 context.Context, arg1 *header.ExtendedHeader, arg2 uint64) ([]*header.ExtendedHeader, error)
- func (m *MockModule) LocalHead(arg0 context.Context) (*header.ExtendedHeader, error)
- func (m *MockModule) NetworkHead(arg0 context.Context) (*header.ExtendedHeader, error)
- func (m *MockModule) Subscribe(arg0 context.Context) (<-chan *header.ExtendedHeader, error)
- func (m *MockModule) SyncState(arg0 context.Context) (sync.State, error)
- func (m *MockModule) SyncWait(arg0 context.Context) error
- func (m *MockModule) WaitForHeight(arg0 context.Context, arg1 uint64) (*header.ExtendedHeader, error)
- type MockModuleMockRecorder
- func (mr *MockModuleMockRecorder) GetByHash(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) GetByHeight(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) GetRangeByHeight(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) LocalHead(arg0 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) NetworkHead(arg0 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) Subscribe(arg0 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) SyncState(arg0 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) SyncWait(arg0 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) WaitForHeight(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockModule ¶
type MockModule struct {
// contains filtered or unexported fields
}
MockModule is a mock of Module interface.
func NewMockModule ¶
func NewMockModule(ctrl *gomock.Controller) *MockModule
NewMockModule creates a new mock instance.
func (*MockModule) EXPECT ¶
func (m *MockModule) EXPECT() *MockModuleMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockModule) GetByHash ¶ added in v0.7.0
func (m *MockModule) GetByHash(arg0 context.Context, arg1 header0.Hash) (*header.ExtendedHeader, error)
GetByHash mocks base method.
func (*MockModule) GetByHeight ¶
func (m *MockModule) GetByHeight(arg0 context.Context, arg1 uint64) (*header.ExtendedHeader, error)
GetByHeight mocks base method.
func (*MockModule) GetRangeByHeight ¶ added in v0.11.0
func (m *MockModule) GetRangeByHeight(arg0 context.Context, arg1 *header.ExtendedHeader, arg2 uint64) ([]*header.ExtendedHeader, error)
GetRangeByHeight mocks base method.
func (*MockModule) LocalHead ¶ added in v0.7.0
func (m *MockModule) LocalHead(arg0 context.Context) (*header.ExtendedHeader, error)
LocalHead mocks base method.
func (*MockModule) NetworkHead ¶ added in v0.7.0
func (m *MockModule) NetworkHead(arg0 context.Context) (*header.ExtendedHeader, error)
NetworkHead mocks base method.
func (*MockModule) Subscribe ¶ added in v0.8.0
func (m *MockModule) Subscribe(arg0 context.Context) (<-chan *header.ExtendedHeader, error)
Subscribe mocks base method.
func (*MockModule) SyncWait ¶ added in v0.7.0
func (m *MockModule) SyncWait(arg0 context.Context) error
SyncWait mocks base method.
func (*MockModule) WaitForHeight ¶ added in v0.11.0
func (m *MockModule) WaitForHeight(arg0 context.Context, arg1 uint64) (*header.ExtendedHeader, error)
WaitForHeight mocks base method.
type MockModuleMockRecorder ¶
type MockModuleMockRecorder struct {
// contains filtered or unexported fields
}
MockModuleMockRecorder is the mock recorder for MockModule.
func (*MockModuleMockRecorder) GetByHash ¶ added in v0.7.0
func (mr *MockModuleMockRecorder) GetByHash(arg0, arg1 interface{}) *gomock.Call
GetByHash indicates an expected call of GetByHash.
func (*MockModuleMockRecorder) GetByHeight ¶
func (mr *MockModuleMockRecorder) GetByHeight(arg0, arg1 interface{}) *gomock.Call
GetByHeight indicates an expected call of GetByHeight.
func (*MockModuleMockRecorder) GetRangeByHeight ¶ added in v0.11.0
func (mr *MockModuleMockRecorder) GetRangeByHeight(arg0, arg1, arg2 interface{}) *gomock.Call
GetRangeByHeight indicates an expected call of GetRangeByHeight.
func (*MockModuleMockRecorder) LocalHead ¶ added in v0.7.0
func (mr *MockModuleMockRecorder) LocalHead(arg0 interface{}) *gomock.Call
LocalHead indicates an expected call of LocalHead.
func (*MockModuleMockRecorder) NetworkHead ¶ added in v0.7.0
func (mr *MockModuleMockRecorder) NetworkHead(arg0 interface{}) *gomock.Call
NetworkHead indicates an expected call of NetworkHead.
func (*MockModuleMockRecorder) Subscribe ¶ added in v0.8.0
func (mr *MockModuleMockRecorder) Subscribe(arg0 interface{}) *gomock.Call
Subscribe indicates an expected call of Subscribe.
func (*MockModuleMockRecorder) SyncState ¶ added in v0.7.0
func (mr *MockModuleMockRecorder) SyncState(arg0 interface{}) *gomock.Call
SyncState indicates an expected call of SyncState.
func (*MockModuleMockRecorder) SyncWait ¶ added in v0.7.0
func (mr *MockModuleMockRecorder) SyncWait(arg0 interface{}) *gomock.Call
SyncWait indicates an expected call of SyncWait.
func (*MockModuleMockRecorder) WaitForHeight ¶ added in v0.11.0
func (mr *MockModuleMockRecorder) WaitForHeight(arg0, arg1 interface{}) *gomock.Call
WaitForHeight indicates an expected call of WaitForHeight.