mocks

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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(tx flow.TransactionBody) error

AddTransaction mocks base method.

func (*MockEmulator) CommitBlock

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

CommitBlock mocks base method.

func (*MockEmulator) ComputationProfile added in v1.12.0

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

ComputationProfile mocks base method.

func (*MockEmulator) ComputationReport added in v1.0.0

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

ComputationReport mocks base method.

func (*MockEmulator) CoverageReport

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

CoverageReport mocks base method.

func (*MockEmulator) CreateSnapshot

func (m *MockEmulator) CreateSnapshot(name 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(script []byte, arguments [][]byte) (*types.ScriptResult, error)

ExecuteScript mocks base method.

func (*MockEmulator) ExecuteScriptAtBlockHeight

func (m *MockEmulator) ExecuteScriptAtBlockHeight(script []byte, arguments [][]byte, blockHeight uint64) (*types.ScriptResult, error)

ExecuteScriptAtBlockHeight mocks base method.

func (*MockEmulator) ExecuteScriptAtBlockID

func (m *MockEmulator) ExecuteScriptAtBlockID(script []byte, arguments [][]byte, id flow.Identifier) (*types.ScriptResult, error)

ExecuteScriptAtBlockID mocks base method.

func (*MockEmulator) GetAccount

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

GetAccount mocks base method.

func (*MockEmulator) GetAccountAtBlockHeight

func (m *MockEmulator) GetAccountAtBlockHeight(address flow.Address, blockHeight 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(address flow.Address) (*flow.Account, error)

GetAccountUnsafe mocks base method.

func (*MockEmulator) GetBlockByHeight

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

GetBlockByHeight mocks base method.

func (*MockEmulator) GetBlockByID

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

GetBlockByID mocks base method.

func (*MockEmulator) GetCollectionByID

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

GetCollectionByID mocks base method.

func (*MockEmulator) GetEventsByHeight

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

GetEventsByHeight mocks base method.

func (*MockEmulator) GetEventsForBlockIDs

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

GetEventsForBlockIDs mocks base method.

func (*MockEmulator) GetEventsForHeightRange

func (m *MockEmulator) GetEventsForHeightRange(eventType string, startHeight, endHeight uint64) ([]flow.BlockEvents, error)

GetEventsForHeightRange mocks base method.

func (*MockEmulator) GetFullCollectionByID added in v0.59.1

func (m *MockEmulator) GetFullCollectionByID(colID flow.Identifier) (*flow.Collection, error)

GetFullCollectionByID 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) GetScheduledTransaction added in v1.11.0

func (m *MockEmulator) GetScheduledTransaction(scheduledTxID uint64) (*flow.TransactionBody, error)

GetScheduledTransaction mocks base method.

func (*MockEmulator) GetScheduledTransactionResult added in v1.11.0

func (m *MockEmulator) GetScheduledTransactionResult(scheduledTxID uint64) (*access.TransactionResult, error)

GetScheduledTransactionResult mocks base method.

func (*MockEmulator) GetSourceFile added in v0.54.0

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

GetSourceFile mocks base method.

func (*MockEmulator) GetSystemTransaction added in v1.11.0

func (m *MockEmulator) GetSystemTransaction(txID, blockID flow.Identifier) (*flow.TransactionBody, error)

GetSystemTransaction mocks base method.

func (*MockEmulator) GetSystemTransactionResult added in v1.11.0

func (m *MockEmulator) GetSystemTransactionResult(txID, blockID flow.Identifier) (*access.TransactionResult, error)

GetSystemTransactionResult mocks base method.

func (*MockEmulator) GetTransaction

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

GetTransaction mocks base method.

func (*MockEmulator) GetTransactionResult

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

GetTransactionResult mocks base method.

func (*MockEmulator) GetTransactionResultsByBlockID

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

GetTransactionResultsByBlockID mocks base method.

func (*MockEmulator) GetTransactionsByBlockID

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

GetTransactionsByBlockID mocks base method.

func (*MockEmulator) LoadSnapshot

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

LoadSnapshot mocks base method.

func (*MockEmulator) Ping

func (m *MockEmulator) Ping() error

Ping mocks base method.

func (*MockEmulator) ResetComputationProfile added in v1.12.0

func (m *MockEmulator) ResetComputationProfile()

ResetComputationProfile mocks base method.

func (*MockEmulator) ResetCoverageReport

func (m *MockEmulator) ResetCoverageReport()

ResetCoverageReport mocks base method.

func (*MockEmulator) RollbackToBlockHeight

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

RollbackToBlockHeight mocks base method.

func (*MockEmulator) SendTransaction

func (m *MockEmulator) SendTransaction(tx *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(tx 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) ComputationProfile added in v1.12.0

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

ComputationProfile indicates an expected call of ComputationProfile.

func (*MockEmulatorMockRecorder) ComputationReport added in v1.0.0

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

ComputationReport indicates an expected call of ComputationReport.

func (*MockEmulatorMockRecorder) CoverageReport

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

CoverageReport indicates an expected call of CoverageReport.

func (*MockEmulatorMockRecorder) CreateSnapshot

func (mr *MockEmulatorMockRecorder) CreateSnapshot(name 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(script, arguments any) *gomock.Call

ExecuteScript indicates an expected call of ExecuteScript.

func (*MockEmulatorMockRecorder) ExecuteScriptAtBlockHeight

func (mr *MockEmulatorMockRecorder) ExecuteScriptAtBlockHeight(script, arguments, blockHeight any) *gomock.Call

ExecuteScriptAtBlockHeight indicates an expected call of ExecuteScriptAtBlockHeight.

func (*MockEmulatorMockRecorder) ExecuteScriptAtBlockID

func (mr *MockEmulatorMockRecorder) ExecuteScriptAtBlockID(script, arguments, id any) *gomock.Call

ExecuteScriptAtBlockID indicates an expected call of ExecuteScriptAtBlockID.

func (*MockEmulatorMockRecorder) GetAccount

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

GetAccount indicates an expected call of GetAccount.

func (*MockEmulatorMockRecorder) GetAccountAtBlockHeight

func (mr *MockEmulatorMockRecorder) GetAccountAtBlockHeight(address, blockHeight 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(address any) *gomock.Call

GetAccountUnsafe indicates an expected call of GetAccountUnsafe.

func (*MockEmulatorMockRecorder) GetBlockByHeight

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

GetBlockByHeight indicates an expected call of GetBlockByHeight.

func (*MockEmulatorMockRecorder) GetBlockByID

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

GetBlockByID indicates an expected call of GetBlockByID.

func (*MockEmulatorMockRecorder) GetCollectionByID

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

GetCollectionByID indicates an expected call of GetCollectionByID.

func (*MockEmulatorMockRecorder) GetEventsByHeight

func (mr *MockEmulatorMockRecorder) GetEventsByHeight(blockHeight, eventType any) *gomock.Call

GetEventsByHeight indicates an expected call of GetEventsByHeight.

func (*MockEmulatorMockRecorder) GetEventsForBlockIDs

func (mr *MockEmulatorMockRecorder) GetEventsForBlockIDs(eventType, blockIDs any) *gomock.Call

GetEventsForBlockIDs indicates an expected call of GetEventsForBlockIDs.

func (*MockEmulatorMockRecorder) GetEventsForHeightRange

func (mr *MockEmulatorMockRecorder) GetEventsForHeightRange(eventType, startHeight, endHeight any) *gomock.Call

GetEventsForHeightRange indicates an expected call of GetEventsForHeightRange.

func (*MockEmulatorMockRecorder) GetFullCollectionByID added in v0.59.1

func (mr *MockEmulatorMockRecorder) GetFullCollectionByID(colID any) *gomock.Call

GetFullCollectionByID indicates an expected call of GetFullCollectionByID.

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) GetScheduledTransaction added in v1.11.0

func (mr *MockEmulatorMockRecorder) GetScheduledTransaction(scheduledTxID any) *gomock.Call

GetScheduledTransaction indicates an expected call of GetScheduledTransaction.

func (*MockEmulatorMockRecorder) GetScheduledTransactionResult added in v1.11.0

func (mr *MockEmulatorMockRecorder) GetScheduledTransactionResult(scheduledTxID any) *gomock.Call

GetScheduledTransactionResult indicates an expected call of GetScheduledTransactionResult.

func (*MockEmulatorMockRecorder) GetSourceFile added in v0.54.0

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

GetSourceFile indicates an expected call of GetSourceFile.

func (*MockEmulatorMockRecorder) GetSystemTransaction added in v1.11.0

func (mr *MockEmulatorMockRecorder) GetSystemTransaction(txID, blockID any) *gomock.Call

GetSystemTransaction indicates an expected call of GetSystemTransaction.

func (*MockEmulatorMockRecorder) GetSystemTransactionResult added in v1.11.0

func (mr *MockEmulatorMockRecorder) GetSystemTransactionResult(txID, blockID any) *gomock.Call

GetSystemTransactionResult indicates an expected call of GetSystemTransactionResult.

func (*MockEmulatorMockRecorder) GetTransaction

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

GetTransaction indicates an expected call of GetTransaction.

func (*MockEmulatorMockRecorder) GetTransactionResult

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

GetTransactionResult indicates an expected call of GetTransactionResult.

func (*MockEmulatorMockRecorder) GetTransactionResultsByBlockID

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

GetTransactionResultsByBlockID indicates an expected call of GetTransactionResultsByBlockID.

func (*MockEmulatorMockRecorder) GetTransactionsByBlockID

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

GetTransactionsByBlockID indicates an expected call of GetTransactionsByBlockID.

func (*MockEmulatorMockRecorder) LoadSnapshot

func (mr *MockEmulatorMockRecorder) LoadSnapshot(name 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) ResetComputationProfile added in v1.12.0

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

ResetComputationProfile indicates an expected call of ResetComputationProfile.

func (*MockEmulatorMockRecorder) ResetCoverageReport

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

ResetCoverageReport indicates an expected call of ResetCoverageReport.

func (*MockEmulatorMockRecorder) RollbackToBlockHeight

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

RollbackToBlockHeight indicates an expected call of RollbackToBlockHeight.

func (*MockEmulatorMockRecorder) SendTransaction

func (mr *MockEmulatorMockRecorder) SendTransaction(tx 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