sdkmocks

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 sdkmocks 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) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) GetBlock

func (m *MockClient) GetBlock(arg0 context.Context, arg1 uint64, arg2 string) (*chainstorage.Block, error)

GetBlock mocks base method.

func (*MockClient) GetBlockByTransaction

func (m *MockClient) GetBlockByTransaction(arg0 context.Context, arg1 uint32, arg2 string) ([]*chainstorage.Block, error)

GetBlockByTransaction mocks base method.

func (*MockClient) GetBlockValidation

func (m *MockClient) GetBlockValidation() bool

GetBlockValidation mocks base method.

func (*MockClient) GetBlockWithTag

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

GetBlockWithTag mocks base method.

func (*MockClient) GetBlocksByRange

func (m *MockClient) GetBlocksByRange(arg0 context.Context, arg1, arg2 uint64) ([]*chainstorage.Block, error)

GetBlocksByRange mocks base method.

func (*MockClient) GetBlocksByRangeWithTag

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

GetBlocksByRangeWithTag mocks base method.

func (*MockClient) GetChainEvents

GetChainEvents mocks base method.

func (*MockClient) GetChainMetadata

GetChainMetadata mocks base method.

func (*MockClient) GetClientID

func (m *MockClient) GetClientID() string

GetClientID mocks base method.

func (*MockClient) GetLatestBlock

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

GetLatestBlock mocks base method.

func (*MockClient) GetLatestBlockWithTag

func (m *MockClient) GetLatestBlockWithTag(arg0 context.Context, arg1 uint32) (uint64, error)

GetLatestBlockWithTag mocks base method.

func (*MockClient) GetStaticChainMetadata

GetStaticChainMetadata mocks base method.

func (*MockClient) GetTag

func (m *MockClient) GetTag() uint32

GetTag mocks base method.

func (*MockClient) SetBlockValidation

func (m *MockClient) SetBlockValidation(arg0 bool)

SetBlockValidation mocks base method.

func (*MockClient) SetClientID

func (m *MockClient) SetClientID(arg0 string)

SetClientID mocks base method.

func (*MockClient) SetTag

func (m *MockClient) SetTag(arg0 uint32)

SetTag mocks base method.

func (*MockClient) StreamChainEvents

func (m *MockClient) StreamChainEvents(arg0 context.Context, arg1 sdk.StreamingConfiguration) (<-chan *sdk.ChainEventResult, error)

StreamChainEvents mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) GetBlock

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

GetBlock indicates an expected call of GetBlock.

func (*MockClientMockRecorder) GetBlockByTransaction

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

GetBlockByTransaction indicates an expected call of GetBlockByTransaction.

func (*MockClientMockRecorder) GetBlockValidation

func (mr *MockClientMockRecorder) GetBlockValidation() *gomock.Call

GetBlockValidation indicates an expected call of GetBlockValidation.

func (*MockClientMockRecorder) GetBlockWithTag

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

GetBlockWithTag indicates an expected call of GetBlockWithTag.

func (*MockClientMockRecorder) GetBlocksByRange

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

GetBlocksByRange indicates an expected call of GetBlocksByRange.

func (*MockClientMockRecorder) GetBlocksByRangeWithTag

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

GetBlocksByRangeWithTag indicates an expected call of GetBlocksByRangeWithTag.

func (*MockClientMockRecorder) GetChainEvents

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

GetChainEvents indicates an expected call of GetChainEvents.

func (*MockClientMockRecorder) GetChainMetadata

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

GetChainMetadata indicates an expected call of GetChainMetadata.

func (*MockClientMockRecorder) GetClientID

func (mr *MockClientMockRecorder) GetClientID() *gomock.Call

GetClientID indicates an expected call of GetClientID.

func (*MockClientMockRecorder) GetLatestBlock

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

GetLatestBlock indicates an expected call of GetLatestBlock.

func (*MockClientMockRecorder) GetLatestBlockWithTag

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

GetLatestBlockWithTag indicates an expected call of GetLatestBlockWithTag.

func (*MockClientMockRecorder) GetStaticChainMetadata

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

GetStaticChainMetadata indicates an expected call of GetStaticChainMetadata.

func (*MockClientMockRecorder) GetTag

func (mr *MockClientMockRecorder) GetTag() *gomock.Call

GetTag indicates an expected call of GetTag.

func (*MockClientMockRecorder) SetBlockValidation

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

SetBlockValidation indicates an expected call of SetBlockValidation.

func (*MockClientMockRecorder) SetClientID

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

SetClientID indicates an expected call of SetClientID.

func (*MockClientMockRecorder) SetTag

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

SetTag indicates an expected call of SetTag.

func (*MockClientMockRecorder) StreamChainEvents

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

StreamChainEvents indicates an expected call of StreamChainEvents.

type MockParser

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

MockParser is a mock of Parser interface.

func NewMockParser

func NewMockParser(ctrl *gomock.Controller) *MockParser

NewMockParser creates a new mock instance.

func (*MockParser) EXPECT

func (m *MockParser) EXPECT() *MockParserMockRecorder

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

func (*MockParser) GetNativeTransaction

func (m *MockParser) GetNativeTransaction(arg0 context.Context, arg1 *chainstorage.NativeBlock, arg2 string) (*chainstorage.NativeTransaction, error)

GetNativeTransaction mocks base method.

func (*MockParser) ParseNativeBlock

func (m *MockParser) ParseNativeBlock(arg0 context.Context, arg1 *chainstorage.Block) (*chainstorage.NativeBlock, error)

ParseNativeBlock mocks base method.

func (*MockParser) ParseRosettaBlock

func (m *MockParser) ParseRosettaBlock(arg0 context.Context, arg1 *chainstorage.Block) (*chainstorage.RosettaBlock, error)

ParseRosettaBlock mocks base method.

func (*MockParser) ValidateBlock

func (m *MockParser) ValidateBlock(arg0 context.Context, arg1 *chainstorage.NativeBlock) error

ValidateBlock mocks base method.

type MockParserMockRecorder

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

MockParserMockRecorder is the mock recorder for MockParser.

func (*MockParserMockRecorder) GetNativeTransaction

func (mr *MockParserMockRecorder) GetNativeTransaction(arg0, arg1, arg2 any) *gomock.Call

GetNativeTransaction indicates an expected call of GetNativeTransaction.

func (*MockParserMockRecorder) ParseNativeBlock

func (mr *MockParserMockRecorder) ParseNativeBlock(arg0, arg1 any) *gomock.Call

ParseNativeBlock indicates an expected call of ParseNativeBlock.

func (*MockParserMockRecorder) ParseRosettaBlock

func (mr *MockParserMockRecorder) ParseRosettaBlock(arg0, arg1 any) *gomock.Call

ParseRosettaBlock indicates an expected call of ParseRosettaBlock.

func (*MockParserMockRecorder) ValidateBlock

func (mr *MockParserMockRecorder) ValidateBlock(arg0, arg1 any) *gomock.Call

ValidateBlock indicates an expected call of ValidateBlock.

type MockSession

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

MockSession is a mock of Session interface.

func NewMockSession

func NewMockSession(ctrl *gomock.Controller) *MockSession

NewMockSession creates a new mock instance.

func (*MockSession) Client

func (m *MockSession) Client() sdk.Client

Client mocks base method.

func (*MockSession) EXPECT

func (m *MockSession) EXPECT() *MockSessionMockRecorder

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

func (*MockSession) Parser

func (m *MockSession) Parser() sdk.Parser

Parser mocks base method.

type MockSessionMockRecorder

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

MockSessionMockRecorder is the mock recorder for MockSession.

func (*MockSessionMockRecorder) Client

func (mr *MockSessionMockRecorder) Client() *gomock.Call

Client indicates an expected call of Client.

func (*MockSessionMockRecorder) Parser

func (mr *MockSessionMockRecorder) Parser() *gomock.Call

Parser indicates an expected call of Parser.

Jump to

Keyboard shortcuts

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