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: 9 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 MockEmulator

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

MockEmulator is a mock of Emulator interface.

func NewMockEmulator

func NewMockEmulator(ctrl *gomock.Controller) *MockEmulator

NewMockEmulator creates a new mock instance.

func (*MockEmulator) AddTransaction

func (m *MockEmulator) AddTransaction(arg0 flow.TransactionBody) error

AddTransaction mocks base method.

func (*MockEmulator) CommitBlock

func (m *MockEmulator) CommitBlock() (*flow.Block, error)

CommitBlock mocks base method.

func (*MockEmulator) CoverageReport

func (m *MockEmulator) CoverageReport() *runtime.CoverageReport

CoverageReport mocks base method.

func (*MockEmulator) CreateSnapshot

func (m *MockEmulator) CreateSnapshot(arg0 string) error

CreateSnapshot mocks base method.

func (*MockEmulator) DisableAutoMine

func (m *MockEmulator) DisableAutoMine()

DisableAutoMine mocks base method.

func (*MockEmulator) EXPECT

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

func (*MockEmulator) EnableAutoMine

func (m *MockEmulator) EnableAutoMine()

EnableAutoMine mocks base method.

func (*MockEmulator) EndDebugging

func (m *MockEmulator) EndDebugging()

EndDebugging mocks base method.

func (*MockEmulator) ExecuteAndCommitBlock

func (m *MockEmulator) ExecuteAndCommitBlock() (*flow.Block, []*types.TransactionResult, error)

ExecuteAndCommitBlock mocks base method.

func (*MockEmulator) ExecuteBlock

func (m *MockEmulator) ExecuteBlock() ([]*types.TransactionResult, error)

ExecuteBlock mocks base method.

func (*MockEmulator) ExecuteNextTransaction

func (m *MockEmulator) ExecuteNextTransaction() (*types.TransactionResult, error)

ExecuteNextTransaction mocks base method.

func (*MockEmulator) ExecuteScript

func (m *MockEmulator) ExecuteScript(arg0 []byte, arg1 [][]byte) (*types.ScriptResult, error)

ExecuteScript mocks base method.

func (*MockEmulator) ExecuteScriptAtBlockHeight

func (m *MockEmulator) ExecuteScriptAtBlockHeight(arg0 []byte, arg1 [][]byte, arg2 uint64) (*types.ScriptResult, error)

ExecuteScriptAtBlockHeight mocks base method.

func (*MockEmulator) ExecuteScriptAtBlockID

func (m *MockEmulator) ExecuteScriptAtBlockID(arg0 []byte, arg1 [][]byte, arg2 flow.Identifier) (*types.ScriptResult, error)

ExecuteScriptAtBlockID mocks base method.

func (*MockEmulator) GetAccount

func (m *MockEmulator) GetAccount(arg0 flow.Address) (*flow.Account, error)

GetAccount mocks base method.

func (*MockEmulator) GetAccountAtBlockHeight

func (m *MockEmulator) GetAccountAtBlockHeight(arg0 flow.Address, arg1 uint64) (*flow.Account, error)

GetAccountAtBlockHeight mocks base method.

func (*MockEmulator) GetAccountByIndex

func (m *MockEmulator) GetAccountByIndex(arg0 uint) (*flow.Account, error)

GetAccountByIndex mocks base method.

func (*MockEmulator) GetAccountUnsafe

func (m *MockEmulator) GetAccountUnsafe(arg0 flow.Address) (*flow.Account, error)

GetAccountUnsafe mocks base method.

func (*MockEmulator) GetBlockByHeight

func (m *MockEmulator) GetBlockByHeight(arg0 uint64) (*flow.Block, error)

GetBlockByHeight mocks base method.

func (*MockEmulator) GetBlockByID

func (m *MockEmulator) GetBlockByID(arg0 flow.Identifier) (*flow.Block, error)

GetBlockByID mocks base method.

func (*MockEmulator) GetCollectionByID

func (m *MockEmulator) GetCollectionByID(arg0 flow.Identifier) (*flow.LightCollection, error)

GetCollectionByID mocks base method.

func (*MockEmulator) GetEventsByHeight

func (m *MockEmulator) GetEventsByHeight(arg0 uint64, arg1 string) ([]flow.Event, error)

GetEventsByHeight mocks base method.

func (*MockEmulator) GetEventsForBlockIDs

func (m *MockEmulator) GetEventsForBlockIDs(arg0 string, arg1 []flow.Identifier) ([]flow.BlockEvents, error)

GetEventsForBlockIDs mocks base method.

func (*MockEmulator) GetEventsForHeightRange

func (m *MockEmulator) GetEventsForHeightRange(arg0 string, arg1, arg2 uint64) ([]flow.BlockEvents, error)

GetEventsForHeightRange mocks base method.

func (*MockEmulator) GetLatestBlock

func (m *MockEmulator) GetLatestBlock() (*flow.Block, error)

GetLatestBlock mocks base method.

func (*MockEmulator) GetLogs added in v0.53.0

func (m *MockEmulator) GetLogs(arg0 flow.Identifier) ([]string, error)

GetLogs mocks base method.

func (*MockEmulator) GetNetworkParameters

func (m *MockEmulator) GetNetworkParameters() access.NetworkParameters

GetNetworkParameters mocks base method.

func (*MockEmulator) GetSourceFile added in v0.54.0

func (m *MockEmulator) GetSourceFile(arg0 common.Location) string

GetSourceFile mocks base method.

func (*MockEmulator) GetTransaction

func (m *MockEmulator) GetTransaction(arg0 flow.Identifier) (*flow.TransactionBody, error)

GetTransaction mocks base method.

func (*MockEmulator) GetTransactionResult

func (m *MockEmulator) GetTransactionResult(arg0 flow.Identifier) (*access.TransactionResult, error)

GetTransactionResult mocks base method.

func (*MockEmulator) GetTransactionResultsByBlockID

func (m *MockEmulator) GetTransactionResultsByBlockID(arg0 flow.Identifier) ([]*access.TransactionResult, error)

GetTransactionResultsByBlockID mocks base method.

func (*MockEmulator) GetTransactionsByBlockID

func (m *MockEmulator) GetTransactionsByBlockID(arg0 flow.Identifier) ([]*flow.TransactionBody, error)

GetTransactionsByBlockID mocks base method.

func (*MockEmulator) LoadSnapshot

func (m *MockEmulator) LoadSnapshot(arg0 string) error

LoadSnapshot mocks base method.

func (*MockEmulator) Ping

func (m *MockEmulator) Ping() error

Ping mocks base method.

func (*MockEmulator) ResetCoverageReport

func (m *MockEmulator) ResetCoverageReport()

ResetCoverageReport mocks base method.

func (*MockEmulator) RollbackToBlockHeight

func (m *MockEmulator) RollbackToBlockHeight(arg0 uint64) error

RollbackToBlockHeight mocks base method.

func (*MockEmulator) SendTransaction

func (m *MockEmulator) SendTransaction(arg0 *flow.TransactionBody) error

SendTransaction mocks base method.

func (*MockEmulator) ServiceKey

func (m *MockEmulator) ServiceKey() emulator.ServiceKey

ServiceKey mocks base method.

func (*MockEmulator) Snapshots

func (m *MockEmulator) Snapshots() ([]string, error)

Snapshots mocks base method.

func (*MockEmulator) StartDebugger

func (m *MockEmulator) StartDebugger() *interpreter.Debugger

StartDebugger mocks base method.

type MockEmulatorMockRecorder

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

MockEmulatorMockRecorder is the mock recorder for MockEmulator.

func (*MockEmulatorMockRecorder) AddTransaction

func (mr *MockEmulatorMockRecorder) AddTransaction(arg0 any) *gomock.Call

AddTransaction indicates an expected call of AddTransaction.

func (*MockEmulatorMockRecorder) CommitBlock

func (mr *MockEmulatorMockRecorder) CommitBlock() *gomock.Call

CommitBlock indicates an expected call of CommitBlock.

func (*MockEmulatorMockRecorder) CoverageReport

func (mr *MockEmulatorMockRecorder) CoverageReport() *gomock.Call

CoverageReport indicates an expected call of CoverageReport.

func (*MockEmulatorMockRecorder) CreateSnapshot

func (mr *MockEmulatorMockRecorder) CreateSnapshot(arg0 any) *gomock.Call

CreateSnapshot indicates an expected call of CreateSnapshot.

func (*MockEmulatorMockRecorder) DisableAutoMine

func (mr *MockEmulatorMockRecorder) DisableAutoMine() *gomock.Call

DisableAutoMine indicates an expected call of DisableAutoMine.

func (*MockEmulatorMockRecorder) EnableAutoMine

func (mr *MockEmulatorMockRecorder) EnableAutoMine() *gomock.Call

EnableAutoMine indicates an expected call of EnableAutoMine.

func (*MockEmulatorMockRecorder) EndDebugging

func (mr *MockEmulatorMockRecorder) EndDebugging() *gomock.Call

EndDebugging indicates an expected call of EndDebugging.

func (*MockEmulatorMockRecorder) ExecuteAndCommitBlock

func (mr *MockEmulatorMockRecorder) ExecuteAndCommitBlock() *gomock.Call

ExecuteAndCommitBlock indicates an expected call of ExecuteAndCommitBlock.

func (*MockEmulatorMockRecorder) ExecuteBlock

func (mr *MockEmulatorMockRecorder) ExecuteBlock() *gomock.Call

ExecuteBlock indicates an expected call of ExecuteBlock.

func (*MockEmulatorMockRecorder) ExecuteNextTransaction

func (mr *MockEmulatorMockRecorder) ExecuteNextTransaction() *gomock.Call

ExecuteNextTransaction indicates an expected call of ExecuteNextTransaction.

func (*MockEmulatorMockRecorder) ExecuteScript

func (mr *MockEmulatorMockRecorder) ExecuteScript(arg0, arg1 any) *gomock.Call

ExecuteScript indicates an expected call of ExecuteScript.

func (*MockEmulatorMockRecorder) ExecuteScriptAtBlockHeight

func (mr *MockEmulatorMockRecorder) ExecuteScriptAtBlockHeight(arg0, arg1, arg2 any) *gomock.Call

ExecuteScriptAtBlockHeight indicates an expected call of ExecuteScriptAtBlockHeight.

func (*MockEmulatorMockRecorder) ExecuteScriptAtBlockID

func (mr *MockEmulatorMockRecorder) ExecuteScriptAtBlockID(arg0, arg1, arg2 any) *gomock.Call

ExecuteScriptAtBlockID indicates an expected call of ExecuteScriptAtBlockID.

func (*MockEmulatorMockRecorder) GetAccount

func (mr *MockEmulatorMockRecorder) GetAccount(arg0 any) *gomock.Call

GetAccount indicates an expected call of GetAccount.

func (*MockEmulatorMockRecorder) GetAccountAtBlockHeight

func (mr *MockEmulatorMockRecorder) GetAccountAtBlockHeight(arg0, arg1 any) *gomock.Call

GetAccountAtBlockHeight indicates an expected call of GetAccountAtBlockHeight.

func (*MockEmulatorMockRecorder) GetAccountByIndex

func (mr *MockEmulatorMockRecorder) GetAccountByIndex(arg0 any) *gomock.Call

GetAccountByIndex indicates an expected call of GetAccountByIndex.

func (*MockEmulatorMockRecorder) GetAccountUnsafe

func (mr *MockEmulatorMockRecorder) GetAccountUnsafe(arg0 any) *gomock.Call

GetAccountUnsafe indicates an expected call of GetAccountUnsafe.

func (*MockEmulatorMockRecorder) GetBlockByHeight

func (mr *MockEmulatorMockRecorder) GetBlockByHeight(arg0 any) *gomock.Call

GetBlockByHeight indicates an expected call of GetBlockByHeight.

func (*MockEmulatorMockRecorder) GetBlockByID

func (mr *MockEmulatorMockRecorder) GetBlockByID(arg0 any) *gomock.Call

GetBlockByID indicates an expected call of GetBlockByID.

func (*MockEmulatorMockRecorder) GetCollectionByID

func (mr *MockEmulatorMockRecorder) GetCollectionByID(arg0 any) *gomock.Call

GetCollectionByID indicates an expected call of GetCollectionByID.

func (*MockEmulatorMockRecorder) GetEventsByHeight

func (mr *MockEmulatorMockRecorder) GetEventsByHeight(arg0, arg1 any) *gomock.Call

GetEventsByHeight indicates an expected call of GetEventsByHeight.

func (*MockEmulatorMockRecorder) GetEventsForBlockIDs

func (mr *MockEmulatorMockRecorder) GetEventsForBlockIDs(arg0, arg1 any) *gomock.Call

GetEventsForBlockIDs indicates an expected call of GetEventsForBlockIDs.

func (*MockEmulatorMockRecorder) GetEventsForHeightRange

func (mr *MockEmulatorMockRecorder) GetEventsForHeightRange(arg0, arg1, arg2 any) *gomock.Call

GetEventsForHeightRange indicates an expected call of GetEventsForHeightRange.

func (*MockEmulatorMockRecorder) GetLatestBlock

func (mr *MockEmulatorMockRecorder) GetLatestBlock() *gomock.Call

GetLatestBlock indicates an expected call of GetLatestBlock.

func (*MockEmulatorMockRecorder) GetLogs added in v0.53.0

func (mr *MockEmulatorMockRecorder) GetLogs(arg0 any) *gomock.Call

GetLogs indicates an expected call of GetLogs.

func (*MockEmulatorMockRecorder) GetNetworkParameters

func (mr *MockEmulatorMockRecorder) GetNetworkParameters() *gomock.Call

GetNetworkParameters indicates an expected call of GetNetworkParameters.

func (*MockEmulatorMockRecorder) GetSourceFile added in v0.54.0

func (mr *MockEmulatorMockRecorder) GetSourceFile(arg0 any) *gomock.Call

GetSourceFile indicates an expected call of GetSourceFile.

func (*MockEmulatorMockRecorder) GetTransaction

func (mr *MockEmulatorMockRecorder) GetTransaction(arg0 any) *gomock.Call

GetTransaction indicates an expected call of GetTransaction.

func (*MockEmulatorMockRecorder) GetTransactionResult

func (mr *MockEmulatorMockRecorder) GetTransactionResult(arg0 any) *gomock.Call

GetTransactionResult indicates an expected call of GetTransactionResult.

func (*MockEmulatorMockRecorder) GetTransactionResultsByBlockID

func (mr *MockEmulatorMockRecorder) GetTransactionResultsByBlockID(arg0 any) *gomock.Call

GetTransactionResultsByBlockID indicates an expected call of GetTransactionResultsByBlockID.

func (*MockEmulatorMockRecorder) GetTransactionsByBlockID

func (mr *MockEmulatorMockRecorder) GetTransactionsByBlockID(arg0 any) *gomock.Call

GetTransactionsByBlockID indicates an expected call of GetTransactionsByBlockID.

func (*MockEmulatorMockRecorder) LoadSnapshot

func (mr *MockEmulatorMockRecorder) LoadSnapshot(arg0 any) *gomock.Call

LoadSnapshot indicates an expected call of LoadSnapshot.

func (*MockEmulatorMockRecorder) Ping

func (mr *MockEmulatorMockRecorder) Ping() *gomock.Call

Ping indicates an expected call of Ping.

func (*MockEmulatorMockRecorder) ResetCoverageReport

func (mr *MockEmulatorMockRecorder) ResetCoverageReport() *gomock.Call

ResetCoverageReport indicates an expected call of ResetCoverageReport.

func (*MockEmulatorMockRecorder) RollbackToBlockHeight

func (mr *MockEmulatorMockRecorder) RollbackToBlockHeight(arg0 any) *gomock.Call

RollbackToBlockHeight indicates an expected call of RollbackToBlockHeight.

func (*MockEmulatorMockRecorder) SendTransaction

func (mr *MockEmulatorMockRecorder) SendTransaction(arg0 any) *gomock.Call

SendTransaction indicates an expected call of SendTransaction.

func (*MockEmulatorMockRecorder) ServiceKey

func (mr *MockEmulatorMockRecorder) ServiceKey() *gomock.Call

ServiceKey indicates an expected call of ServiceKey.

func (*MockEmulatorMockRecorder) Snapshots

func (mr *MockEmulatorMockRecorder) Snapshots() *gomock.Call

Snapshots indicates an expected call of Snapshots.

func (*MockEmulatorMockRecorder) StartDebugger

func (mr *MockEmulatorMockRecorder) StartDebugger() *gomock.Call

StartDebugger indicates an expected call of StartDebugger.

Jump to

Keyboard shortcuts

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