mocks

package
v0.62.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 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 MockStore

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

MockStore is a mock of Store interface.

func NewMockStore

func NewMockStore(ctrl *gomock.Controller) *MockStore

NewMockStore creates a new mock instance.

func (*MockStore) BlockByHeight

func (m *MockStore) BlockByHeight(arg0 context.Context, arg1 uint64) (*flow.Block, error)

BlockByHeight mocks base method.

func (*MockStore) BlockByID

func (m *MockStore) BlockByID(arg0 context.Context, arg1 flow.Identifier) (*flow.Block, error)

BlockByID mocks base method.

func (*MockStore) CollectionByID

func (m *MockStore) CollectionByID(arg0 context.Context, arg1 flow.Identifier) (flow.LightCollection, error)

CollectionByID mocks base method.

func (*MockStore) CommitBlock

CommitBlock mocks base method.

func (*MockStore) EXPECT

func (m *MockStore) EXPECT() *MockStoreMockRecorder

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

func (*MockStore) EventsByHeight

func (m *MockStore) EventsByHeight(arg0 context.Context, arg1 uint64, arg2 string) ([]flow.Event, error)

EventsByHeight mocks base method.

func (*MockStore) LatestBlock

func (m *MockStore) LatestBlock(arg0 context.Context) (flow.Block, error)

LatestBlock mocks base method.

func (*MockStore) LatestBlockHeight added in v0.40.0

func (m *MockStore) LatestBlockHeight(arg0 context.Context) (uint64, error)

LatestBlockHeight mocks base method.

func (*MockStore) LedgerByHeight added in v0.46.0

func (m *MockStore) LedgerByHeight(arg0 context.Context, arg1 uint64) (snapshot.StorageSnapshot, error)

LedgerByHeight mocks base method.

func (*MockStore) Start added in v0.46.0

func (m *MockStore) Start() error

Start mocks base method.

func (*MockStore) Stop added in v0.46.0

func (m *MockStore) Stop()

Stop mocks base method.

func (*MockStore) StoreBlock

func (m *MockStore) StoreBlock(arg0 context.Context, arg1 *flow.Block) error

StoreBlock mocks base method.

func (*MockStore) TransactionByID

func (m *MockStore) TransactionByID(arg0 context.Context, arg1 flow.Identifier) (flow.TransactionBody, error)

TransactionByID mocks base method.

func (*MockStore) TransactionResultByID

func (m *MockStore) TransactionResultByID(arg0 context.Context, arg1 flow.Identifier) (types.StorableTransactionResult, error)

TransactionResultByID mocks base method.

type MockStoreMockRecorder

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

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) BlockByHeight

func (mr *MockStoreMockRecorder) BlockByHeight(arg0, arg1 any) *gomock.Call

BlockByHeight indicates an expected call of BlockByHeight.

func (*MockStoreMockRecorder) BlockByID

func (mr *MockStoreMockRecorder) BlockByID(arg0, arg1 any) *gomock.Call

BlockByID indicates an expected call of BlockByID.

func (*MockStoreMockRecorder) CollectionByID

func (mr *MockStoreMockRecorder) CollectionByID(arg0, arg1 any) *gomock.Call

CollectionByID indicates an expected call of CollectionByID.

func (*MockStoreMockRecorder) CommitBlock

func (mr *MockStoreMockRecorder) CommitBlock(arg0, arg1, arg2, arg3, arg4, arg5, arg6 any) *gomock.Call

CommitBlock indicates an expected call of CommitBlock.

func (*MockStoreMockRecorder) EventsByHeight

func (mr *MockStoreMockRecorder) EventsByHeight(arg0, arg1, arg2 any) *gomock.Call

EventsByHeight indicates an expected call of EventsByHeight.

func (*MockStoreMockRecorder) LatestBlock

func (mr *MockStoreMockRecorder) LatestBlock(arg0 any) *gomock.Call

LatestBlock indicates an expected call of LatestBlock.

func (*MockStoreMockRecorder) LatestBlockHeight added in v0.40.0

func (mr *MockStoreMockRecorder) LatestBlockHeight(arg0 any) *gomock.Call

LatestBlockHeight indicates an expected call of LatestBlockHeight.

func (*MockStoreMockRecorder) LedgerByHeight added in v0.46.0

func (mr *MockStoreMockRecorder) LedgerByHeight(arg0, arg1 any) *gomock.Call

LedgerByHeight indicates an expected call of LedgerByHeight.

func (*MockStoreMockRecorder) Start added in v0.46.0

func (mr *MockStoreMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start.

func (*MockStoreMockRecorder) Stop added in v0.46.0

func (mr *MockStoreMockRecorder) Stop() *gomock.Call

Stop indicates an expected call of Stop.

func (*MockStoreMockRecorder) StoreBlock

func (mr *MockStoreMockRecorder) StoreBlock(arg0, arg1 any) *gomock.Call

StoreBlock indicates an expected call of StoreBlock.

func (*MockStoreMockRecorder) TransactionByID

func (mr *MockStoreMockRecorder) TransactionByID(arg0, arg1 any) *gomock.Call

TransactionByID indicates an expected call of TransactionByID.

func (*MockStoreMockRecorder) TransactionResultByID

func (mr *MockStoreMockRecorder) TransactionResultByID(arg0, arg1 any) *gomock.Call

TransactionResultByID indicates an expected call of TransactionResultByID.

Jump to

Keyboard shortcuts

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