mocks

package
v0.11.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

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.

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) SyncState added in v0.7.0

func (m *MockModule) SyncState(arg0 context.Context) (sync.State, error)

SyncState 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) 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) 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL