Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 8 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.Transaction) error

AddTransaction mocks base method.

func (*MockEmulator) CommitBlock

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

CommitBlock mocks base method.

func (*MockEmulator) CoverageReport added in v0.48.0

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

CoverageReport mocks base method.

func (*MockEmulator) CreateSnapshot added in v0.46.0

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

CreateSnapshot mocks base method.

func (*MockEmulator) EXPECT

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

func (*MockEmulator) EndDebugging added in v0.44.0

func (m *MockEmulator) EndDebugging()

EndDebugging mocks base method.

func (*MockEmulator) ExecuteAndCommitBlock

func (m *MockEmulator) ExecuteAndCommitBlock() (*flow0.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) ExecuteScriptAtBlock

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

ExecuteScriptAtBlock mocks base method.

func (*MockEmulator) GetAccount

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

GetAccount mocks base method.

func (*MockEmulator) GetAccountAtBlock

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

GetAccountAtBlock mocks base method.

func (*MockEmulator) GetAccountByIndex added in v0.44.0

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

GetAccountByIndex mocks base method.

func (*MockEmulator) GetAccountStorage added in v0.34.0

func (m *MockEmulator) GetAccountStorage(arg0 flow.Address) (*emulator.AccountStorage, error)

GetAccountStorage mocks base method.

func (*MockEmulator) GetAccountUnsafe added in v0.44.0

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

GetAccountUnsafe mocks base method.

func (*MockEmulator) GetBlockByHeight

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

GetBlockByHeight mocks base method.

func (*MockEmulator) GetBlockByID

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

GetBlockByID mocks base method.

func (*MockEmulator) GetCollection

func (m *MockEmulator) GetCollection(arg0 flow.Identifier) (*flow.Collection, error)

GetCollection mocks base method.

func (*MockEmulator) GetEventsByHeight

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

GetEventsByHeight mocks base method.

func (*MockEmulator) GetLatestBlock

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

GetLatestBlock mocks base method.

func (*MockEmulator) GetTransaction

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

GetTransaction mocks base method.

func (*MockEmulator) GetTransactionResult

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

GetTransactionResult mocks base method.

func (*MockEmulator) LoadSnapshot added in v0.46.0

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

LoadSnapshot mocks base method.

func (*MockEmulator) RollbackToBlockHeight added in v0.46.0

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

RollbackToBlockHeight mocks base method.

func (*MockEmulator) SetCoverageReport added in v0.48.0

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

SetCoverageReport mocks base method.

func (*MockEmulator) Snapshots added in v0.46.0

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

Snapshots mocks base method.

func (*MockEmulator) StartDebugger added in v0.49.0

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 interface{}) *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 added in v0.48.0

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

CoverageReport indicates an expected call of CoverageReport.

func (*MockEmulatorMockRecorder) CreateSnapshot added in v0.46.0

func (mr *MockEmulatorMockRecorder) CreateSnapshot(arg0 interface{}) *gomock.Call

CreateSnapshot indicates an expected call of CreateSnapshot.

func (*MockEmulatorMockRecorder) EndDebugging added in v0.44.0

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 interface{}) *gomock.Call

ExecuteScript indicates an expected call of ExecuteScript.

func (*MockEmulatorMockRecorder) ExecuteScriptAtBlock

func (mr *MockEmulatorMockRecorder) ExecuteScriptAtBlock(arg0, arg1, arg2 interface{}) *gomock.Call

ExecuteScriptAtBlock indicates an expected call of ExecuteScriptAtBlock.

func (*MockEmulatorMockRecorder) GetAccount

func (mr *MockEmulatorMockRecorder) GetAccount(arg0 interface{}) *gomock.Call

GetAccount indicates an expected call of GetAccount.

func (*MockEmulatorMockRecorder) GetAccountAtBlock

func (mr *MockEmulatorMockRecorder) GetAccountAtBlock(arg0, arg1 interface{}) *gomock.Call

GetAccountAtBlock indicates an expected call of GetAccountAtBlock.

func (*MockEmulatorMockRecorder) GetAccountByIndex added in v0.44.0

func (mr *MockEmulatorMockRecorder) GetAccountByIndex(arg0 interface{}) *gomock.Call

GetAccountByIndex indicates an expected call of GetAccountByIndex.

func (*MockEmulatorMockRecorder) GetAccountStorage added in v0.34.0

func (mr *MockEmulatorMockRecorder) GetAccountStorage(arg0 interface{}) *gomock.Call

GetAccountStorage indicates an expected call of GetAccountStorage.

func (*MockEmulatorMockRecorder) GetAccountUnsafe added in v0.44.0

func (mr *MockEmulatorMockRecorder) GetAccountUnsafe(arg0 interface{}) *gomock.Call

GetAccountUnsafe indicates an expected call of GetAccountUnsafe.

func (*MockEmulatorMockRecorder) GetBlockByHeight

func (mr *MockEmulatorMockRecorder) GetBlockByHeight(arg0 interface{}) *gomock.Call

GetBlockByHeight indicates an expected call of GetBlockByHeight.

func (*MockEmulatorMockRecorder) GetBlockByID

func (mr *MockEmulatorMockRecorder) GetBlockByID(arg0 interface{}) *gomock.Call

GetBlockByID indicates an expected call of GetBlockByID.

func (*MockEmulatorMockRecorder) GetCollection

func (mr *MockEmulatorMockRecorder) GetCollection(arg0 interface{}) *gomock.Call

GetCollection indicates an expected call of GetCollection.

func (*MockEmulatorMockRecorder) GetEventsByHeight

func (mr *MockEmulatorMockRecorder) GetEventsByHeight(arg0, arg1 interface{}) *gomock.Call

GetEventsByHeight indicates an expected call of GetEventsByHeight.

func (*MockEmulatorMockRecorder) GetLatestBlock

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

GetLatestBlock indicates an expected call of GetLatestBlock.

func (*MockEmulatorMockRecorder) GetTransaction

func (mr *MockEmulatorMockRecorder) GetTransaction(arg0 interface{}) *gomock.Call

GetTransaction indicates an expected call of GetTransaction.

func (*MockEmulatorMockRecorder) GetTransactionResult

func (mr *MockEmulatorMockRecorder) GetTransactionResult(arg0 interface{}) *gomock.Call

GetTransactionResult indicates an expected call of GetTransactionResult.

func (*MockEmulatorMockRecorder) LoadSnapshot added in v0.46.0

func (mr *MockEmulatorMockRecorder) LoadSnapshot(arg0 interface{}) *gomock.Call

LoadSnapshot indicates an expected call of LoadSnapshot.

func (*MockEmulatorMockRecorder) RollbackToBlockHeight added in v0.46.0

func (mr *MockEmulatorMockRecorder) RollbackToBlockHeight(arg0 interface{}) *gomock.Call

RollbackToBlockHeight indicates an expected call of RollbackToBlockHeight.

func (*MockEmulatorMockRecorder) SetCoverageReport added in v0.48.0

func (mr *MockEmulatorMockRecorder) SetCoverageReport(arg0 interface{}) *gomock.Call

SetCoverageReport indicates an expected call of SetCoverageReport.

func (*MockEmulatorMockRecorder) Snapshots added in v0.46.0

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

Snapshots indicates an expected call of Snapshots.

func (*MockEmulatorMockRecorder) StartDebugger added in v0.49.0

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