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) GetVerifiedRangeByHeight(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) SyncState(arg0 context.Context) (sync.State, error)
- func (m *MockModule) SyncWait(arg0 context.Context) error
- type MockModuleMockRecorder
- func (mr *MockModuleMockRecorder) GetByHash(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) GetByHeight(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) GetVerifiedRangeByHeight(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) SyncState(arg0 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) SyncWait(arg0 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) GetVerifiedRangeByHeight ¶ added in v0.7.0
func (m *MockModule) GetVerifiedRangeByHeight(arg0 context.Context, arg1 *header.ExtendedHeader, arg2 uint64) ([]*header.ExtendedHeader, error)
GetVerifiedRangeByHeight 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.
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) GetVerifiedRangeByHeight ¶ added in v0.7.0
func (mr *MockModuleMockRecorder) GetVerifiedRangeByHeight(arg0, arg1, arg2 interface{}) *gomock.Call
GetVerifiedRangeByHeight indicates an expected call of GetVerifiedRangeByHeight.
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) 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.