mock

package
v0.37.16 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountCreator

type AccountCreator struct {
	mock.Mock
}

AccountCreator is an autogenerated mock type for the AccountCreator type

func NewAccountCreator

func NewAccountCreator(t interface {
	mock.TestingT
	Cleanup(func())
}) *AccountCreator

NewAccountCreator creates a new instance of AccountCreator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AccountCreator) CreateAccount

func (_m *AccountCreator) CreateAccount(runtimePayer common.Address) (common.Address, error)

CreateAccount provides a mock function with given fields: runtimePayer

type AccountInfo

type AccountInfo struct {
	mock.Mock
}

AccountInfo is an autogenerated mock type for the AccountInfo type

func NewAccountInfo

func NewAccountInfo(t interface {
	mock.TestingT
	Cleanup(func())
}) *AccountInfo

NewAccountInfo creates a new instance of AccountInfo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AccountInfo) GetAccount

func (_m *AccountInfo) GetAccount(address flow.Address) (*flow.Account, error)

GetAccount provides a mock function with given fields: address

func (*AccountInfo) GetAccountAvailableBalance

func (_m *AccountInfo) GetAccountAvailableBalance(runtimeAddress common.Address) (uint64, error)

GetAccountAvailableBalance provides a mock function with given fields: runtimeAddress

func (*AccountInfo) GetAccountBalance

func (_m *AccountInfo) GetAccountBalance(runtimeAddress common.Address) (uint64, error)

GetAccountBalance provides a mock function with given fields: runtimeAddress

func (*AccountInfo) GetAccountKeyByIndex added in v0.36.1

func (_m *AccountInfo) GetAccountKeyByIndex(address flow.Address, index uint32) (*flow.AccountPublicKey, error)

GetAccountKeyByIndex provides a mock function with given fields: address, index

func (*AccountInfo) GetAccountKeys added in v0.35.17

func (_m *AccountInfo) GetAccountKeys(address flow.Address) ([]flow.AccountPublicKey, error)

GetAccountKeys provides a mock function with given fields: address

func (*AccountInfo) GetStorageCapacity

func (_m *AccountInfo) GetStorageCapacity(runtimeAddress common.Address) (uint64, error)

GetStorageCapacity provides a mock function with given fields: runtimeAddress

func (*AccountInfo) GetStorageUsed

func (_m *AccountInfo) GetStorageUsed(runtimeAddress common.Address) (uint64, error)

GetStorageUsed provides a mock function with given fields: runtimeAddress

type AccountKeyReader added in v0.28.7

type AccountKeyReader struct {
	mock.Mock
}

AccountKeyReader is an autogenerated mock type for the AccountKeyReader type

func NewAccountKeyReader added in v0.28.7

func NewAccountKeyReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *AccountKeyReader

NewAccountKeyReader creates a new instance of AccountKeyReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AccountKeyReader) AccountKeysCount added in v0.29.0

func (_m *AccountKeyReader) AccountKeysCount(runtimeAddress common.Address) (uint32, error)

AccountKeysCount provides a mock function with given fields: runtimeAddress

func (*AccountKeyReader) GetAccountKey added in v0.28.7

func (_m *AccountKeyReader) GetAccountKey(runtimeAddress common.Address, keyIndex uint32) (*stdlib.AccountKey, error)

GetAccountKey provides a mock function with given fields: runtimeAddress, keyIndex

type AccountKeyUpdater

type AccountKeyUpdater struct {
	mock.Mock
}

AccountKeyUpdater is an autogenerated mock type for the AccountKeyUpdater type

func NewAccountKeyUpdater

func NewAccountKeyUpdater(t interface {
	mock.TestingT
	Cleanup(func())
}) *AccountKeyUpdater

NewAccountKeyUpdater creates a new instance of AccountKeyUpdater. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AccountKeyUpdater) AddAccountKey

func (_m *AccountKeyUpdater) AddAccountKey(runtimeAddress common.Address, publicKey *stdlib.PublicKey, hashAlgo sema.HashAlgorithm, weight int) (*stdlib.AccountKey, error)

AddAccountKey provides a mock function with given fields: runtimeAddress, publicKey, hashAlgo, weight

func (*AccountKeyUpdater) RevokeAccountKey

func (_m *AccountKeyUpdater) RevokeAccountKey(runtimeAddress common.Address, keyIndex uint32) (*stdlib.AccountKey, error)

RevokeAccountKey provides a mock function with given fields: runtimeAddress, keyIndex

type AccountLocalIDGenerator added in v0.31.0

type AccountLocalIDGenerator struct {
	mock.Mock
}

AccountLocalIDGenerator is an autogenerated mock type for the AccountLocalIDGenerator type

func NewAccountLocalIDGenerator added in v0.31.0

func NewAccountLocalIDGenerator(t interface {
	mock.TestingT
	Cleanup(func())
}) *AccountLocalIDGenerator

NewAccountLocalIDGenerator creates a new instance of AccountLocalIDGenerator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AccountLocalIDGenerator) GenerateAccountID added in v0.31.0

func (_m *AccountLocalIDGenerator) GenerateAccountID(address common.Address) (uint64, error)

GenerateAccountID provides a mock function with given fields: address

type Accounts

type Accounts struct {
	mock.Mock
}

Accounts is an autogenerated mock type for the Accounts type

func NewAccounts

func NewAccounts(t interface {
	mock.TestingT
	Cleanup(func())
}) *Accounts

NewAccounts creates a new instance of Accounts. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Accounts) AllocateSlabIndex added in v0.37.1

func (_m *Accounts) AllocateSlabIndex(address flow.Address) (atree.SlabIndex, error)

AllocateSlabIndex provides a mock function with given fields: address

func (*Accounts) AppendPublicKey

func (_m *Accounts) AppendPublicKey(address flow.Address, key flow.AccountPublicKey) error

AppendPublicKey provides a mock function with given fields: address, key

func (*Accounts) ContractExists

func (_m *Accounts) ContractExists(contractName string, address flow.Address) (bool, error)

ContractExists provides a mock function with given fields: contractName, address

func (*Accounts) Create

func (_m *Accounts) Create(publicKeys []flow.AccountPublicKey, newAddress flow.Address) error

Create provides a mock function with given fields: publicKeys, newAddress

func (*Accounts) DeleteContract

func (_m *Accounts) DeleteContract(contractName string, address flow.Address) error

DeleteContract provides a mock function with given fields: contractName, address

func (*Accounts) Exists

func (_m *Accounts) Exists(address flow.Address) (bool, error)

Exists provides a mock function with given fields: address

func (*Accounts) GenerateAccountLocalID added in v0.31.0

func (_m *Accounts) GenerateAccountLocalID(address flow.Address) (uint64, error)

GenerateAccountLocalID provides a mock function with given fields: address

func (*Accounts) Get

func (_m *Accounts) Get(address flow.Address) (*flow.Account, error)

Get provides a mock function with given fields: address

func (*Accounts) GetContract

func (_m *Accounts) GetContract(contractName string, address flow.Address) ([]byte, error)

GetContract provides a mock function with given fields: contractName, address

func (*Accounts) GetContractNames

func (_m *Accounts) GetContractNames(address flow.Address) ([]string, error)

GetContractNames provides a mock function with given fields: address

func (*Accounts) GetPublicKey

func (_m *Accounts) GetPublicKey(address flow.Address, keyIndex uint32) (flow.AccountPublicKey, error)

GetPublicKey provides a mock function with given fields: address, keyIndex

func (*Accounts) GetPublicKeyCount

func (_m *Accounts) GetPublicKeyCount(address flow.Address) (uint32, error)

GetPublicKeyCount provides a mock function with given fields: address

func (*Accounts) GetPublicKeys added in v0.35.17

func (_m *Accounts) GetPublicKeys(address flow.Address) ([]flow.AccountPublicKey, error)

GetPublicKeys provides a mock function with given fields: address

func (*Accounts) GetStorageUsed

func (_m *Accounts) GetStorageUsed(address flow.Address) (uint64, error)

GetStorageUsed provides a mock function with given fields: address

func (*Accounts) GetValue

func (_m *Accounts) GetValue(id flow.RegisterID) ([]byte, error)

GetValue provides a mock function with given fields: id

func (*Accounts) SetContract

func (_m *Accounts) SetContract(contractName string, address flow.Address, contract []byte) error

SetContract provides a mock function with given fields: contractName, address, contract

func (*Accounts) SetPublicKey

func (_m *Accounts) SetPublicKey(address flow.Address, keyIndex uint32, publicKey flow.AccountPublicKey) ([]byte, error)

SetPublicKey provides a mock function with given fields: address, keyIndex, publicKey

func (*Accounts) SetValue

func (_m *Accounts) SetValue(id flow.RegisterID, value []byte) error

SetValue provides a mock function with given fields: id, value

type AddressGenerator

type AddressGenerator struct {
	mock.Mock
}

AddressGenerator is an autogenerated mock type for the AddressGenerator type

func NewAddressGenerator

func NewAddressGenerator(t interface {
	mock.TestingT
	Cleanup(func())
}) *AddressGenerator

NewAddressGenerator creates a new instance of AddressGenerator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AddressGenerator) AddressCount

func (_m *AddressGenerator) AddressCount() uint64

AddressCount provides a mock function with given fields:

func (*AddressGenerator) Bytes

func (_m *AddressGenerator) Bytes() []byte

Bytes provides a mock function with given fields:

func (*AddressGenerator) CurrentAddress

func (_m *AddressGenerator) CurrentAddress() flow.Address

CurrentAddress provides a mock function with given fields:

func (*AddressGenerator) NextAddress

func (_m *AddressGenerator) NextAddress() (flow.Address, error)

NextAddress provides a mock function with given fields:

type BlockInfo added in v0.28.7

type BlockInfo struct {
	mock.Mock
}

BlockInfo is an autogenerated mock type for the BlockInfo type

func NewBlockInfo added in v0.28.7

func NewBlockInfo(t interface {
	mock.TestingT
	Cleanup(func())
}) *BlockInfo

NewBlockInfo creates a new instance of BlockInfo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*BlockInfo) GetBlockAtHeight added in v0.28.7

func (_m *BlockInfo) GetBlockAtHeight(height uint64) (stdlib.Block, bool, error)

GetBlockAtHeight provides a mock function with given fields: height

func (*BlockInfo) GetCurrentBlockHeight added in v0.28.7

func (_m *BlockInfo) GetCurrentBlockHeight() (uint64, error)

GetCurrentBlockHeight provides a mock function with given fields:

type Blocks

type Blocks struct {
	mock.Mock
}

Blocks is an autogenerated mock type for the Blocks type

func NewBlocks

func NewBlocks(t interface {
	mock.TestingT
	Cleanup(func())
}) *Blocks

NewBlocks creates a new instance of Blocks. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Blocks) ByHeightFrom

func (_m *Blocks) ByHeightFrom(height uint64, header *flow.Header) (*flow.Header, error)

ByHeightFrom provides a mock function with given fields: height, header

type BootstrapAccountCreator

type BootstrapAccountCreator struct {
	mock.Mock
}

BootstrapAccountCreator is an autogenerated mock type for the BootstrapAccountCreator type

func NewBootstrapAccountCreator

func NewBootstrapAccountCreator(t interface {
	mock.TestingT
	Cleanup(func())
}) *BootstrapAccountCreator

NewBootstrapAccountCreator creates a new instance of BootstrapAccountCreator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*BootstrapAccountCreator) CreateBootstrapAccount

func (_m *BootstrapAccountCreator) CreateBootstrapAccount(publicKeys []flow.AccountPublicKey) (flow.Address, error)

CreateBootstrapAccount provides a mock function with given fields: publicKeys

type ContractFunctionInvoker added in v0.33.30

type ContractFunctionInvoker struct {
	mock.Mock
}

ContractFunctionInvoker is an autogenerated mock type for the ContractFunctionInvoker type

func NewContractFunctionInvoker added in v0.33.30

func NewContractFunctionInvoker(t interface {
	mock.TestingT
	Cleanup(func())
}) *ContractFunctionInvoker

NewContractFunctionInvoker creates a new instance of ContractFunctionInvoker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ContractFunctionInvoker) Invoke added in v0.33.30

Invoke provides a mock function with given fields: spec, arguments

type ContractUpdater

type ContractUpdater struct {
	mock.Mock
}

ContractUpdater is an autogenerated mock type for the ContractUpdater type

func NewContractUpdater

func NewContractUpdater(t interface {
	mock.TestingT
	Cleanup(func())
}) *ContractUpdater

NewContractUpdater creates a new instance of ContractUpdater. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ContractUpdater) Commit

Commit provides a mock function with given fields:

func (*ContractUpdater) RemoveAccountContractCode

func (_m *ContractUpdater) RemoveAccountContractCode(location common.AddressLocation) error

RemoveAccountContractCode provides a mock function with given fields: location

func (*ContractUpdater) Reset

func (_m *ContractUpdater) Reset()

Reset provides a mock function with given fields:

func (*ContractUpdater) UpdateAccountContractCode

func (_m *ContractUpdater) UpdateAccountContractCode(location common.AddressLocation, code []byte) error

UpdateAccountContractCode provides a mock function with given fields: location, code

type ContractUpdaterStubs

type ContractUpdaterStubs struct {
	mock.Mock
}

ContractUpdaterStubs is an autogenerated mock type for the ContractUpdaterStubs type

func NewContractUpdaterStubs

func NewContractUpdaterStubs(t interface {
	mock.TestingT
	Cleanup(func())
}) *ContractUpdaterStubs

NewContractUpdaterStubs creates a new instance of ContractUpdaterStubs. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ContractUpdaterStubs) GetAuthorizedAccounts

func (_m *ContractUpdaterStubs) GetAuthorizedAccounts(path cadence.Path) []flow.Address

GetAuthorizedAccounts provides a mock function with given fields: path

func (*ContractUpdaterStubs) RestrictedDeploymentEnabled

func (_m *ContractUpdaterStubs) RestrictedDeploymentEnabled() bool

RestrictedDeploymentEnabled provides a mock function with given fields:

func (*ContractUpdaterStubs) RestrictedRemovalEnabled

func (_m *ContractUpdaterStubs) RestrictedRemovalEnabled() bool

RestrictedRemovalEnabled provides a mock function with given fields:

type CryptoLibrary added in v0.28.7

type CryptoLibrary struct {
	mock.Mock
}

CryptoLibrary is an autogenerated mock type for the CryptoLibrary type

func NewCryptoLibrary added in v0.28.7

func NewCryptoLibrary(t interface {
	mock.TestingT
	Cleanup(func())
}) *CryptoLibrary

NewCryptoLibrary creates a new instance of CryptoLibrary. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CryptoLibrary) BLSAggregatePublicKeys added in v0.28.7

func (_m *CryptoLibrary) BLSAggregatePublicKeys(keys []*stdlib.PublicKey) (*stdlib.PublicKey, error)

BLSAggregatePublicKeys provides a mock function with given fields: keys

func (*CryptoLibrary) BLSAggregateSignatures added in v0.28.7

func (_m *CryptoLibrary) BLSAggregateSignatures(sigs [][]byte) ([]byte, error)

BLSAggregateSignatures provides a mock function with given fields: sigs

func (*CryptoLibrary) BLSVerifyPOP added in v0.28.7

func (_m *CryptoLibrary) BLSVerifyPOP(pk *stdlib.PublicKey, sig []byte) (bool, error)

BLSVerifyPOP provides a mock function with given fields: pk, sig

func (*CryptoLibrary) Hash added in v0.28.7

func (_m *CryptoLibrary) Hash(data []byte, tag string, hashAlgorithm sema.HashAlgorithm) ([]byte, error)

Hash provides a mock function with given fields: data, tag, hashAlgorithm

func (*CryptoLibrary) ValidatePublicKey added in v0.28.7

func (_m *CryptoLibrary) ValidatePublicKey(pk *stdlib.PublicKey) error

ValidatePublicKey provides a mock function with given fields: pk

func (*CryptoLibrary) VerifySignature added in v0.28.7

func (_m *CryptoLibrary) VerifySignature(signature []byte, tag string, signedData []byte, publicKey []byte, signatureAlgorithm sema.SignatureAlgorithm, hashAlgorithm sema.HashAlgorithm) (bool, error)

VerifySignature provides a mock function with given fields: signature, tag, signedData, publicKey, signatureAlgorithm, hashAlgorithm

type EVMMetricsReporter added in v0.36.3

type EVMMetricsReporter struct {
	mock.Mock
}

EVMMetricsReporter is an autogenerated mock type for the EVMMetricsReporter type

func NewEVMMetricsReporter added in v0.36.3

func NewEVMMetricsReporter(t interface {
	mock.TestingT
	Cleanup(func())
}) *EVMMetricsReporter

NewEVMMetricsReporter creates a new instance of EVMMetricsReporter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EVMMetricsReporter) EVMBlockExecuted added in v0.36.3

func (_m *EVMMetricsReporter) EVMBlockExecuted(txCount int, totalGasUsed uint64, totalSupplyInFlow float64)

EVMBlockExecuted provides a mock function with given fields: txCount, totalGasUsed, totalSupplyInFlow

func (*EVMMetricsReporter) EVMTransactionExecuted added in v0.36.3

func (_m *EVMMetricsReporter) EVMTransactionExecuted(gasUsed uint64, isDirectCall bool, failed bool)

EVMTransactionExecuted provides a mock function with given fields: gasUsed, isDirectCall, failed

func (*EVMMetricsReporter) SetNumberOfDeployedCOAs added in v0.36.3

func (_m *EVMMetricsReporter) SetNumberOfDeployedCOAs(count uint64)

SetNumberOfDeployedCOAs provides a mock function with given fields: count

type EntropyProvider added in v0.32.0

type EntropyProvider struct {
	mock.Mock
}

EntropyProvider is an autogenerated mock type for the EntropyProvider type

func NewEntropyProvider added in v0.32.0

func NewEntropyProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *EntropyProvider

NewEntropyProvider creates a new instance of EntropyProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EntropyProvider) RandomSource added in v0.32.0

func (_m *EntropyProvider) RandomSource() ([]byte, error)

RandomSource provides a mock function with given fields:

type Environment

type Environment struct {
	mock.Mock
}

Environment is an autogenerated mock type for the Environment type

func NewEnvironment

func NewEnvironment(t interface {
	mock.TestingT
	Cleanup(func())
}) *Environment

NewEnvironment creates a new instance of Environment. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Environment) AccountKeysCount added in v0.29.0

func (_m *Environment) AccountKeysCount(address common.Address) (uint32, error)

AccountKeysCount provides a mock function with given fields: address

func (*Environment) AccountsStorageCapacity

func (_m *Environment) AccountsStorageCapacity(addresses []flow.Address, payer flow.Address, maxTxFees uint64) (cadence.Value, error)

AccountsStorageCapacity provides a mock function with given fields: addresses, payer, maxTxFees

func (*Environment) AddAccountKey

func (_m *Environment) AddAccountKey(address common.Address, publicKey *stdlib.PublicKey, hashAlgo sema.HashAlgorithm, weight int) (*stdlib.AccountKey, error)

AddAccountKey provides a mock function with given fields: address, publicKey, hashAlgo, weight

func (*Environment) AllocateSlabIndex added in v0.37.1

func (_m *Environment) AllocateSlabIndex(owner []byte) (atree.SlabIndex, error)

AllocateSlabIndex provides a mock function with given fields: owner

func (*Environment) BLSAggregatePublicKeys

func (_m *Environment) BLSAggregatePublicKeys(publicKeys []*stdlib.PublicKey) (*stdlib.PublicKey, error)

BLSAggregatePublicKeys provides a mock function with given fields: publicKeys

func (*Environment) BLSAggregateSignatures

func (_m *Environment) BLSAggregateSignatures(signatures [][]byte) ([]byte, error)

BLSAggregateSignatures provides a mock function with given fields: signatures

func (*Environment) BLSVerifyPOP

func (_m *Environment) BLSVerifyPOP(publicKey *stdlib.PublicKey, signature []byte) (bool, error)

BLSVerifyPOP provides a mock function with given fields: publicKey, signature

func (*Environment) BorrowCadenceRuntime

func (_m *Environment) BorrowCadenceRuntime() *runtime.ReusableCadenceRuntime

BorrowCadenceRuntime provides a mock function with given fields:

func (*Environment) CheckPayerBalanceAndGetMaxTxFees added in v0.29.0

func (_m *Environment) CheckPayerBalanceAndGetMaxTxFees(payer flow.Address, inclusionEffort uint64, executionEffort uint64) (cadence.Value, error)

CheckPayerBalanceAndGetMaxTxFees provides a mock function with given fields: payer, inclusionEffort, executionEffort

func (*Environment) ComputationAvailable added in v0.33.1

func (_m *Environment) ComputationAvailable(_a0 common.ComputationKind, _a1 uint) bool

ComputationAvailable provides a mock function with given fields: _a0, _a1

func (*Environment) ComputationIntensities added in v0.29.0

func (_m *Environment) ComputationIntensities() meter.MeteredComputationIntensities

ComputationIntensities provides a mock function with given fields:

func (*Environment) ComputationUsed

func (_m *Environment) ComputationUsed() (uint64, error)

ComputationUsed provides a mock function with given fields:

func (*Environment) ConvertedServiceEvents added in v0.30.0

func (_m *Environment) ConvertedServiceEvents() flow.ServiceEventList

ConvertedServiceEvents provides a mock function with given fields:

func (*Environment) CreateAccount

func (_m *Environment) CreateAccount(payer common.Address) (common.Address, error)

CreateAccount provides a mock function with given fields: payer

func (*Environment) DecodeArgument

func (_m *Environment) DecodeArgument(argument []byte, argumentType cadence.Type) (cadence.Value, error)

DecodeArgument provides a mock function with given fields: argument, argumentType

func (*Environment) DeductTransactionFees

func (_m *Environment) DeductTransactionFees(payer flow.Address, inclusionEffort uint64, executionEffort uint64) (cadence.Value, error)

DeductTransactionFees provides a mock function with given fields: payer, inclusionEffort, executionEffort

func (*Environment) EVMBlockExecuted added in v0.36.3

func (_m *Environment) EVMBlockExecuted(txCount int, totalGasUsed uint64, totalSupplyInFlow float64)

EVMBlockExecuted provides a mock function with given fields: txCount, totalGasUsed, totalSupplyInFlow

func (*Environment) EVMTransactionExecuted added in v0.36.3

func (_m *Environment) EVMTransactionExecuted(gasUsed uint64, isDirectCall bool, failed bool)

EVMTransactionExecuted provides a mock function with given fields: gasUsed, isDirectCall, failed

func (*Environment) EmitEvent

func (_m *Environment) EmitEvent(_a0 cadence.Event) error

EmitEvent provides a mock function with given fields: _a0

func (*Environment) Events

func (_m *Environment) Events() flow.EventsList

Events provides a mock function with given fields:

func (*Environment) FlushPendingUpdates

func (_m *Environment) FlushPendingUpdates() (environment.ContractUpdates, error)

FlushPendingUpdates provides a mock function with given fields:

func (*Environment) GenerateAccountID added in v0.31.0

func (_m *Environment) GenerateAccountID(address common.Address) (uint64, error)

GenerateAccountID provides a mock function with given fields: address

func (*Environment) GenerateUUID

func (_m *Environment) GenerateUUID() (uint64, error)

GenerateUUID provides a mock function with given fields:

func (*Environment) GetAccount

func (_m *Environment) GetAccount(address flow.Address) (*flow.Account, error)

GetAccount provides a mock function with given fields: address

func (*Environment) GetAccountAvailableBalance

func (_m *Environment) GetAccountAvailableBalance(address common.Address) (uint64, error)

GetAccountAvailableBalance provides a mock function with given fields: address

func (*Environment) GetAccountBalance

func (_m *Environment) GetAccountBalance(address common.Address) (uint64, error)

GetAccountBalance provides a mock function with given fields: address

func (*Environment) GetAccountContractCode

func (_m *Environment) GetAccountContractCode(location common.AddressLocation) ([]byte, error)

GetAccountContractCode provides a mock function with given fields: location

func (*Environment) GetAccountContractNames

func (_m *Environment) GetAccountContractNames(address common.Address) ([]string, error)

GetAccountContractNames provides a mock function with given fields: address

func (*Environment) GetAccountKey

func (_m *Environment) GetAccountKey(address common.Address, index uint32) (*stdlib.AccountKey, error)

GetAccountKey provides a mock function with given fields: address, index

func (*Environment) GetAccountKeys added in v0.35.17

func (_m *Environment) GetAccountKeys(address flow.Address) ([]flow.AccountPublicKey, error)

GetAccountKeys provides a mock function with given fields: address

func (*Environment) GetBlockAtHeight

func (_m *Environment) GetBlockAtHeight(height uint64) (stdlib.Block, bool, error)

GetBlockAtHeight provides a mock function with given fields: height

func (*Environment) GetCode

func (_m *Environment) GetCode(location common.Location) ([]byte, error)

GetCode provides a mock function with given fields: location

func (*Environment) GetCurrentBlockHeight

func (_m *Environment) GetCurrentBlockHeight() (uint64, error)

GetCurrentBlockHeight provides a mock function with given fields:

func (*Environment) GetInterpreterSharedState added in v0.29.0

func (_m *Environment) GetInterpreterSharedState() *interpreter.SharedState

GetInterpreterSharedState provides a mock function with given fields:

func (*Environment) GetOrLoadProgram added in v0.30.0

func (_m *Environment) GetOrLoadProgram(location common.Location, load func() (*interpreter.Program, error)) (*interpreter.Program, error)

GetOrLoadProgram provides a mock function with given fields: location, load

func (*Environment) GetSigningAccounts

func (_m *Environment) GetSigningAccounts() ([]common.Address, error)

GetSigningAccounts provides a mock function with given fields:

func (*Environment) GetStorageCapacity

func (_m *Environment) GetStorageCapacity(address common.Address) (uint64, error)

GetStorageCapacity provides a mock function with given fields: address

func (*Environment) GetStorageUsed

func (_m *Environment) GetStorageUsed(address common.Address) (uint64, error)

GetStorageUsed provides a mock function with given fields: address

func (*Environment) GetValue

func (_m *Environment) GetValue(owner []byte, key []byte) ([]byte, error)

GetValue provides a mock function with given fields: owner, key

func (*Environment) Hash

func (_m *Environment) Hash(data []byte, tag string, hashAlgorithm sema.HashAlgorithm) ([]byte, error)

Hash provides a mock function with given fields: data, tag, hashAlgorithm

func (*Environment) ImplementationDebugLog

func (_m *Environment) ImplementationDebugLog(message string) error

ImplementationDebugLog provides a mock function with given fields: message

func (*Environment) InteractionUsed added in v0.30.0

func (_m *Environment) InteractionUsed() (uint64, error)

InteractionUsed provides a mock function with given fields:

func (*Environment) Invoke added in v0.33.30

func (_m *Environment) Invoke(spec environment.ContractFunctionSpec, arguments []cadence.Value) (cadence.Value, error)

Invoke provides a mock function with given fields: spec, arguments

func (*Environment) IsServiceAccountAuthorizer

func (_m *Environment) IsServiceAccountAuthorizer() bool

IsServiceAccountAuthorizer provides a mock function with given fields:

func (*Environment) LimitAccountStorage

func (_m *Environment) LimitAccountStorage() bool

LimitAccountStorage provides a mock function with given fields:

func (*Environment) Logger

func (_m *Environment) Logger() zerolog.Logger

Logger provides a mock function with given fields:

func (*Environment) Logs

func (_m *Environment) Logs() []string

Logs provides a mock function with given fields:

func (*Environment) MemoryUsed added in v0.30.0

func (_m *Environment) MemoryUsed() (uint64, error)

MemoryUsed provides a mock function with given fields:

func (*Environment) MeterComputation

func (_m *Environment) MeterComputation(operationType common.ComputationKind, intensity uint) error

MeterComputation provides a mock function with given fields: operationType, intensity

func (*Environment) MeterEmittedEvent

func (_m *Environment) MeterEmittedEvent(byteSize uint64) error

MeterEmittedEvent provides a mock function with given fields: byteSize

func (*Environment) MeterMemory

func (_m *Environment) MeterMemory(usage common.MemoryUsage) error

MeterMemory provides a mock function with given fields: usage

func (*Environment) ProgramLog

func (_m *Environment) ProgramLog(_a0 string) error

ProgramLog provides a mock function with given fields: _a0

func (*Environment) RandomSourceHistory added in v0.32.2

func (_m *Environment) RandomSourceHistory() ([]byte, error)

RandomSourceHistory provides a mock function with given fields:

func (*Environment) ReadRandom added in v0.32.0

func (_m *Environment) ReadRandom(_a0 []byte) error

ReadRandom provides a mock function with given fields: _a0

func (*Environment) RecordTrace

func (_m *Environment) RecordTrace(operation string, location common.Location, duration time.Duration, attrs []attribute.KeyValue)

RecordTrace provides a mock function with given fields: operation, location, duration, attrs

func (*Environment) RecoverProgram added in v0.37.1

func (_m *Environment) RecoverProgram(program *ast.Program, location common.Location) ([]byte, error)

RecoverProgram provides a mock function with given fields: program, location

func (*Environment) RemoveAccountContractCode

func (_m *Environment) RemoveAccountContractCode(location common.AddressLocation) error

RemoveAccountContractCode provides a mock function with given fields: location

func (*Environment) Reset

func (_m *Environment) Reset()

Reset provides a mock function with given fields:

func (*Environment) ResolveLocation

func (_m *Environment) ResolveLocation(identifiers []ast.Identifier, location common.Location) ([]sema.ResolvedLocation, error)

ResolveLocation provides a mock function with given fields: identifiers, location

func (*Environment) ResourceOwnerChanged

func (_m *Environment) ResourceOwnerChanged(_a0 *interpreter.Interpreter, resource *interpreter.CompositeValue, oldOwner common.Address, newOwner common.Address)

ResourceOwnerChanged provides a mock function with given fields: _a0, resource, oldOwner, newOwner

func (*Environment) ReturnCadenceRuntime

func (_m *Environment) ReturnCadenceRuntime(_a0 *runtime.ReusableCadenceRuntime)

ReturnCadenceRuntime provides a mock function with given fields: _a0

func (*Environment) RevokeAccountKey

func (_m *Environment) RevokeAccountKey(address common.Address, index uint32) (*stdlib.AccountKey, error)

RevokeAccountKey provides a mock function with given fields: address, index

func (*Environment) RuntimeSetNumberOfAccounts added in v0.36.3

func (_m *Environment) RuntimeSetNumberOfAccounts(count uint64)

RuntimeSetNumberOfAccounts provides a mock function with given fields: count

func (*Environment) RuntimeTransactionChecked added in v0.36.3

func (_m *Environment) RuntimeTransactionChecked(_a0 time.Duration)

RuntimeTransactionChecked provides a mock function with given fields: _a0

func (*Environment) RuntimeTransactionInterpreted added in v0.36.3

func (_m *Environment) RuntimeTransactionInterpreted(_a0 time.Duration)

RuntimeTransactionInterpreted provides a mock function with given fields: _a0

func (*Environment) RuntimeTransactionParsed added in v0.36.3

func (_m *Environment) RuntimeTransactionParsed(_a0 time.Duration)

RuntimeTransactionParsed provides a mock function with given fields: _a0

func (*Environment) RuntimeTransactionProgramsCacheHit added in v0.36.3

func (_m *Environment) RuntimeTransactionProgramsCacheHit()

RuntimeTransactionProgramsCacheHit provides a mock function with given fields:

func (*Environment) RuntimeTransactionProgramsCacheMiss added in v0.36.3

func (_m *Environment) RuntimeTransactionProgramsCacheMiss()

RuntimeTransactionProgramsCacheMiss provides a mock function with given fields:

func (*Environment) ServiceEvents

func (_m *Environment) ServiceEvents() flow.EventsList

ServiceEvents provides a mock function with given fields:

func (*Environment) SetInterpreterSharedState added in v0.29.0

func (_m *Environment) SetInterpreterSharedState(state *interpreter.SharedState)

SetInterpreterSharedState provides a mock function with given fields: state

func (*Environment) SetNumberOfDeployedCOAs added in v0.36.3

func (_m *Environment) SetNumberOfDeployedCOAs(count uint64)

SetNumberOfDeployedCOAs provides a mock function with given fields: count

func (*Environment) SetValue

func (_m *Environment) SetValue(owner []byte, key []byte, value []byte) error

SetValue provides a mock function with given fields: owner, key, value

func (*Environment) StartChildSpan added in v0.30.0

func (_m *Environment) StartChildSpan(name trace.SpanName, options ...oteltrace.SpanStartOption) tracing.TracerSpan

StartChildSpan provides a mock function with given fields: name, options

func (*Environment) TotalEmittedEventBytes

func (_m *Environment) TotalEmittedEventBytes() uint64

TotalEmittedEventBytes provides a mock function with given fields:

func (*Environment) TransactionFeesEnabled

func (_m *Environment) TransactionFeesEnabled() bool

TransactionFeesEnabled provides a mock function with given fields:

func (*Environment) TxID

func (_m *Environment) TxID() flow.Identifier

TxID provides a mock function with given fields:

func (*Environment) TxIndex

func (_m *Environment) TxIndex() uint32

TxIndex provides a mock function with given fields:

func (*Environment) UpdateAccountContractCode

func (_m *Environment) UpdateAccountContractCode(location common.AddressLocation, code []byte) error

UpdateAccountContractCode provides a mock function with given fields: location, code

func (*Environment) ValidateAccountCapabilitiesGet added in v0.37.16

func (_m *Environment) ValidateAccountCapabilitiesGet(inter *interpreter.Interpreter, locationRange interpreter.LocationRange, address interpreter.AddressValue, path interpreter.PathValue, wantedBorrowType *sema.ReferenceType, capabilityBorrowType *sema.ReferenceType) (bool, error)

ValidateAccountCapabilitiesGet provides a mock function with given fields: inter, locationRange, address, path, wantedBorrowType, capabilityBorrowType

func (*Environment) ValidateAccountCapabilitiesPublish added in v0.37.16

func (_m *Environment) ValidateAccountCapabilitiesPublish(inter *interpreter.Interpreter, locationRange interpreter.LocationRange, address interpreter.AddressValue, path interpreter.PathValue, capabilityBorrowType *interpreter.ReferenceStaticType) (bool, error)

ValidateAccountCapabilitiesPublish provides a mock function with given fields: inter, locationRange, address, path, capabilityBorrowType

func (*Environment) ValidatePublicKey

func (_m *Environment) ValidatePublicKey(key *stdlib.PublicKey) error

ValidatePublicKey provides a mock function with given fields: key

func (*Environment) ValueExists

func (_m *Environment) ValueExists(owner []byte, key []byte) (bool, error)

ValueExists provides a mock function with given fields: owner, key

func (*Environment) VerifySignature

func (_m *Environment) VerifySignature(signature []byte, tag string, signedData []byte, publicKey []byte, signatureAlgorithm sema.SignatureAlgorithm, hashAlgorithm sema.HashAlgorithm) (bool, error)

VerifySignature provides a mock function with given fields: signature, tag, signedData, publicKey, signatureAlgorithm, hashAlgorithm

type EventEmitter

type EventEmitter struct {
	mock.Mock
}

EventEmitter is an autogenerated mock type for the EventEmitter type

func NewEventEmitter

func NewEventEmitter(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventEmitter

NewEventEmitter creates a new instance of EventEmitter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EventEmitter) ConvertedServiceEvents added in v0.30.0

func (_m *EventEmitter) ConvertedServiceEvents() flow.ServiceEventList

ConvertedServiceEvents provides a mock function with given fields:

func (*EventEmitter) EmitEvent

func (_m *EventEmitter) EmitEvent(event cadence.Event) error

EmitEvent provides a mock function with given fields: event

func (*EventEmitter) Events

func (_m *EventEmitter) Events() flow.EventsList

Events provides a mock function with given fields:

func (*EventEmitter) Reset

func (_m *EventEmitter) Reset()

Reset provides a mock function with given fields:

func (*EventEmitter) ServiceEvents

func (_m *EventEmitter) ServiceEvents() flow.EventsList

ServiceEvents provides a mock function with given fields:

type EventEncoder added in v0.29.0

type EventEncoder struct {
	mock.Mock
}

EventEncoder is an autogenerated mock type for the EventEncoder type

func NewEventEncoder added in v0.29.0

func NewEventEncoder(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventEncoder

NewEventEncoder creates a new instance of EventEncoder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EventEncoder) Encode added in v0.29.0

func (_m *EventEncoder) Encode(event cadence.Event) ([]byte, error)

Encode provides a mock function with given fields: event

type LoggerProvider added in v0.37.6

type LoggerProvider struct {
	mock.Mock
}

LoggerProvider is an autogenerated mock type for the LoggerProvider type

func NewLoggerProvider added in v0.37.6

func NewLoggerProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *LoggerProvider

NewLoggerProvider creates a new instance of LoggerProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*LoggerProvider) Logger added in v0.37.6

func (_m *LoggerProvider) Logger() zerolog.Logger

Logger provides a mock function with given fields:

type Meter

type Meter struct {
	mock.Mock
}

Meter is an autogenerated mock type for the Meter type

func NewMeter

func NewMeter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Meter

NewMeter creates a new instance of Meter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Meter) ComputationAvailable added in v0.33.1

func (_m *Meter) ComputationAvailable(_a0 common.ComputationKind, _a1 uint) bool

ComputationAvailable provides a mock function with given fields: _a0, _a1

func (*Meter) ComputationIntensities added in v0.29.0

func (_m *Meter) ComputationIntensities() meter.MeteredComputationIntensities

ComputationIntensities provides a mock function with given fields:

func (*Meter) ComputationUsed

func (_m *Meter) ComputationUsed() (uint64, error)

ComputationUsed provides a mock function with given fields:

func (*Meter) InteractionUsed added in v0.30.0

func (_m *Meter) InteractionUsed() (uint64, error)

InteractionUsed provides a mock function with given fields:

func (*Meter) MemoryUsed added in v0.30.0

func (_m *Meter) MemoryUsed() (uint64, error)

MemoryUsed provides a mock function with given fields:

func (*Meter) MeterComputation

func (_m *Meter) MeterComputation(_a0 common.ComputationKind, _a1 uint) error

MeterComputation provides a mock function with given fields: _a0, _a1

func (*Meter) MeterEmittedEvent

func (_m *Meter) MeterEmittedEvent(byteSize uint64) error

MeterEmittedEvent provides a mock function with given fields: byteSize

func (*Meter) MeterMemory

func (_m *Meter) MeterMemory(usage common.MemoryUsage) error

MeterMemory provides a mock function with given fields: usage

func (*Meter) TotalEmittedEventBytes

func (_m *Meter) TotalEmittedEventBytes() uint64

TotalEmittedEventBytes provides a mock function with given fields:

type MetricsReporter

type MetricsReporter struct {
	mock.Mock
}

MetricsReporter is an autogenerated mock type for the MetricsReporter type

func NewMetricsReporter

func NewMetricsReporter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MetricsReporter

NewMetricsReporter creates a new instance of MetricsReporter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MetricsReporter) EVMBlockExecuted added in v0.36.3

func (_m *MetricsReporter) EVMBlockExecuted(txCount int, totalGasUsed uint64, totalSupplyInFlow float64)

EVMBlockExecuted provides a mock function with given fields: txCount, totalGasUsed, totalSupplyInFlow

func (*MetricsReporter) EVMTransactionExecuted added in v0.36.3

func (_m *MetricsReporter) EVMTransactionExecuted(gasUsed uint64, isDirectCall bool, failed bool)

EVMTransactionExecuted provides a mock function with given fields: gasUsed, isDirectCall, failed

func (*MetricsReporter) RuntimeSetNumberOfAccounts

func (_m *MetricsReporter) RuntimeSetNumberOfAccounts(count uint64)

RuntimeSetNumberOfAccounts provides a mock function with given fields: count

func (*MetricsReporter) RuntimeTransactionChecked

func (_m *MetricsReporter) RuntimeTransactionChecked(_a0 time.Duration)

RuntimeTransactionChecked provides a mock function with given fields: _a0

func (*MetricsReporter) RuntimeTransactionInterpreted

func (_m *MetricsReporter) RuntimeTransactionInterpreted(_a0 time.Duration)

RuntimeTransactionInterpreted provides a mock function with given fields: _a0

func (*MetricsReporter) RuntimeTransactionParsed

func (_m *MetricsReporter) RuntimeTransactionParsed(_a0 time.Duration)

RuntimeTransactionParsed provides a mock function with given fields: _a0

func (*MetricsReporter) RuntimeTransactionProgramsCacheHit added in v0.29.17

func (_m *MetricsReporter) RuntimeTransactionProgramsCacheHit()

RuntimeTransactionProgramsCacheHit provides a mock function with given fields:

func (*MetricsReporter) RuntimeTransactionProgramsCacheMiss added in v0.29.17

func (_m *MetricsReporter) RuntimeTransactionProgramsCacheMiss()

RuntimeTransactionProgramsCacheMiss provides a mock function with given fields:

func (*MetricsReporter) SetNumberOfDeployedCOAs added in v0.36.3

func (_m *MetricsReporter) SetNumberOfDeployedCOAs(count uint64)

SetNumberOfDeployedCOAs provides a mock function with given fields: count

type RandomGenerator added in v0.32.0

type RandomGenerator struct {
	mock.Mock
}

RandomGenerator is an autogenerated mock type for the RandomGenerator type

func NewRandomGenerator added in v0.32.0

func NewRandomGenerator(t interface {
	mock.TestingT
	Cleanup(func())
}) *RandomGenerator

NewRandomGenerator creates a new instance of RandomGenerator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RandomGenerator) ReadRandom added in v0.32.0

func (_m *RandomGenerator) ReadRandom(_a0 []byte) error

ReadRandom provides a mock function with given fields: _a0

type RandomSourceHistoryProvider added in v0.32.2

type RandomSourceHistoryProvider struct {
	mock.Mock
}

RandomSourceHistoryProvider is an autogenerated mock type for the RandomSourceHistoryProvider type

func NewRandomSourceHistoryProvider added in v0.32.2

func NewRandomSourceHistoryProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *RandomSourceHistoryProvider

NewRandomSourceHistoryProvider creates a new instance of RandomSourceHistoryProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RandomSourceHistoryProvider) RandomSourceHistory added in v0.32.2

func (_m *RandomSourceHistoryProvider) RandomSourceHistory() ([]byte, error)

RandomSourceHistory provides a mock function with given fields:

type RuntimeMetricsReporter added in v0.36.3

type RuntimeMetricsReporter struct {
	mock.Mock
}

RuntimeMetricsReporter is an autogenerated mock type for the RuntimeMetricsReporter type

func NewRuntimeMetricsReporter added in v0.36.3

func NewRuntimeMetricsReporter(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeMetricsReporter

NewRuntimeMetricsReporter creates a new instance of RuntimeMetricsReporter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RuntimeMetricsReporter) RuntimeSetNumberOfAccounts added in v0.36.3

func (_m *RuntimeMetricsReporter) RuntimeSetNumberOfAccounts(count uint64)

RuntimeSetNumberOfAccounts provides a mock function with given fields: count

func (*RuntimeMetricsReporter) RuntimeTransactionChecked added in v0.36.3

func (_m *RuntimeMetricsReporter) RuntimeTransactionChecked(_a0 time.Duration)

RuntimeTransactionChecked provides a mock function with given fields: _a0

func (*RuntimeMetricsReporter) RuntimeTransactionInterpreted added in v0.36.3

func (_m *RuntimeMetricsReporter) RuntimeTransactionInterpreted(_a0 time.Duration)

RuntimeTransactionInterpreted provides a mock function with given fields: _a0

func (*RuntimeMetricsReporter) RuntimeTransactionParsed added in v0.36.3

func (_m *RuntimeMetricsReporter) RuntimeTransactionParsed(_a0 time.Duration)

RuntimeTransactionParsed provides a mock function with given fields: _a0

func (*RuntimeMetricsReporter) RuntimeTransactionProgramsCacheHit added in v0.36.3

func (_m *RuntimeMetricsReporter) RuntimeTransactionProgramsCacheHit()

RuntimeTransactionProgramsCacheHit provides a mock function with given fields:

func (*RuntimeMetricsReporter) RuntimeTransactionProgramsCacheMiss added in v0.36.3

func (_m *RuntimeMetricsReporter) RuntimeTransactionProgramsCacheMiss()

RuntimeTransactionProgramsCacheMiss provides a mock function with given fields:

type Tracer added in v0.36.1

type Tracer struct {
	mock.Mock
}

Tracer is an autogenerated mock type for the Tracer type

func NewTracer added in v0.36.1

func NewTracer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Tracer

NewTracer creates a new instance of Tracer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Tracer) StartChildSpan added in v0.36.1

func (_m *Tracer) StartChildSpan(name trace.SpanName, options ...oteltrace.SpanStartOption) tracing.TracerSpan

StartChildSpan provides a mock function with given fields: name, options

type TransactionInfo

type TransactionInfo struct {
	mock.Mock
}

TransactionInfo is an autogenerated mock type for the TransactionInfo type

func NewTransactionInfo

func NewTransactionInfo(t interface {
	mock.TestingT
	Cleanup(func())
}) *TransactionInfo

NewTransactionInfo creates a new instance of TransactionInfo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*TransactionInfo) GetSigningAccounts

func (_m *TransactionInfo) GetSigningAccounts() ([]common.Address, error)

GetSigningAccounts provides a mock function with given fields:

func (*TransactionInfo) IsServiceAccountAuthorizer

func (_m *TransactionInfo) IsServiceAccountAuthorizer() bool

IsServiceAccountAuthorizer provides a mock function with given fields:

func (*TransactionInfo) LimitAccountStorage

func (_m *TransactionInfo) LimitAccountStorage() bool

LimitAccountStorage provides a mock function with given fields:

func (*TransactionInfo) TransactionFeesEnabled

func (_m *TransactionInfo) TransactionFeesEnabled() bool

TransactionFeesEnabled provides a mock function with given fields:

func (*TransactionInfo) TxID

func (_m *TransactionInfo) TxID() flow.Identifier

TxID provides a mock function with given fields:

func (*TransactionInfo) TxIndex

func (_m *TransactionInfo) TxIndex() uint32

TxIndex provides a mock function with given fields:

type UUIDGenerator added in v0.28.7

type UUIDGenerator struct {
	mock.Mock
}

UUIDGenerator is an autogenerated mock type for the UUIDGenerator type

func NewUUIDGenerator added in v0.28.7

func NewUUIDGenerator(t interface {
	mock.TestingT
	Cleanup(func())
}) *UUIDGenerator

NewUUIDGenerator creates a new instance of UUIDGenerator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*UUIDGenerator) GenerateUUID added in v0.28.7

func (_m *UUIDGenerator) GenerateUUID() (uint64, error)

GenerateUUID provides a mock function with given fields:

type ValueStore added in v0.28.7

type ValueStore struct {
	mock.Mock
}

ValueStore is an autogenerated mock type for the ValueStore type

func NewValueStore added in v0.28.7

func NewValueStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *ValueStore

NewValueStore creates a new instance of ValueStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ValueStore) AllocateSlabIndex added in v0.37.1

func (_m *ValueStore) AllocateSlabIndex(owner []byte) (atree.SlabIndex, error)

AllocateSlabIndex provides a mock function with given fields: owner

func (*ValueStore) GetValue added in v0.28.7

func (_m *ValueStore) GetValue(owner []byte, key []byte) ([]byte, error)

GetValue provides a mock function with given fields: owner, key

func (*ValueStore) SetValue added in v0.28.7

func (_m *ValueStore) SetValue(owner []byte, key []byte, value []byte) error

SetValue provides a mock function with given fields: owner, key, value

func (*ValueStore) ValueExists added in v0.28.7

func (_m *ValueStore) ValueExists(owner []byte, key []byte) (bool, error)

ValueExists provides a mock function with given fields: owner, key

Jump to

Keyboard shortcuts

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