clientmocks

package
v0.0.0-...-ae0dd77 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package clientmocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

type MockClient struct {
	// contains filtered or unexported fields
}

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) BatchGetBlockMetadata

func (m *MockClient) BatchGetBlockMetadata(arg0 context.Context, arg1 uint32, arg2, arg3 uint64) ([]*chainstorage.BlockMetadata, error)

BatchGetBlockMetadata mocks base method.

func (*MockClient) CanReprocess

func (m *MockClient) CanReprocess(arg0 uint32, arg1 uint64) bool

CanReprocess mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockClient) GetAccountProof

GetAccountProof mocks base method.

func (*MockClient) GetBlockByHash

func (m *MockClient) GetBlockByHash(arg0 context.Context, arg1 uint32, arg2 uint64, arg3 string, arg4 ...internal.ClientOption) (*chainstorage.Block, error)

GetBlockByHash mocks base method.

func (*MockClient) GetBlockByHeight

func (m *MockClient) GetBlockByHeight(arg0 context.Context, arg1 uint32, arg2 uint64, arg3 ...internal.ClientOption) (*chainstorage.Block, error)

GetBlockByHeight mocks base method.

func (*MockClient) GetLatestHeight

func (m *MockClient) GetLatestHeight(arg0 context.Context) (uint64, error)

GetLatestHeight mocks base method.

func (*MockClient) UpgradeBlock

func (m *MockClient) UpgradeBlock(arg0 context.Context, arg1 *chainstorage.Block, arg2 uint32) (*chainstorage.Block, error)

UpgradeBlock mocks base method.

type MockClientMockRecorder

type MockClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) BatchGetBlockMetadata

func (mr *MockClientMockRecorder) BatchGetBlockMetadata(arg0, arg1, arg2, arg3 any) *gomock.Call

BatchGetBlockMetadata indicates an expected call of BatchGetBlockMetadata.

func (*MockClientMockRecorder) CanReprocess

func (mr *MockClientMockRecorder) CanReprocess(arg0, arg1 any) *gomock.Call

CanReprocess indicates an expected call of CanReprocess.

func (*MockClientMockRecorder) GetAccountProof

func (mr *MockClientMockRecorder) GetAccountProof(arg0, arg1 any) *gomock.Call

GetAccountProof indicates an expected call of GetAccountProof.

func (*MockClientMockRecorder) GetBlockByHash

func (mr *MockClientMockRecorder) GetBlockByHash(arg0, arg1, arg2, arg3 any, arg4 ...any) *gomock.Call

GetBlockByHash indicates an expected call of GetBlockByHash.

func (*MockClientMockRecorder) GetBlockByHeight

func (mr *MockClientMockRecorder) GetBlockByHeight(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call

GetBlockByHeight indicates an expected call of GetBlockByHeight.

func (*MockClientMockRecorder) GetLatestHeight

func (mr *MockClientMockRecorder) GetLatestHeight(arg0 any) *gomock.Call

GetLatestHeight indicates an expected call of GetLatestHeight.

func (*MockClientMockRecorder) UpgradeBlock

func (mr *MockClientMockRecorder) UpgradeBlock(arg0, arg1, arg2 any) *gomock.Call

UpgradeBlock indicates an expected call of UpgradeBlock.

Jump to

Keyboard shortcuts

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