mock

package
v0.28.15-access-admin-... Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: AGPL-3.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountFreezer added in v0.28.0

type AccountFreezer struct {
	mock.Mock
}

AccountFreezer is an autogenerated mock type for the AccountFreezer type

func NewAccountFreezer added in v0.28.0

func NewAccountFreezer(t mockConstructorTestingTNewAccountFreezer) *AccountFreezer

NewAccountFreezer creates a new instance of AccountFreezer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AccountFreezer) SetAccountFrozen added in v0.28.0

func (_m *AccountFreezer) SetAccountFrozen(_a0 common.Address, _a1 bool) error

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

type AccountInterface added in v0.27.0

type AccountInterface struct {
	mock.Mock
}

AccountInterface is an autogenerated mock type for the AccountInterface type

func NewAccountInterface added in v0.27.0

func NewAccountInterface(t mockConstructorTestingTNewAccountInterface) *AccountInterface

NewAccountInterface creates a new instance of AccountInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AccountInterface) AddAccountKey added in v0.27.0

func (_m *AccountInterface) 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 (*AccountInterface) AddEncodedAccountKey added in v0.27.0

func (_m *AccountInterface) AddEncodedAccountKey(address common.Address, publicKey []byte) error

AddEncodedAccountKey provides a mock function with given fields: address, publicKey

func (*AccountInterface) CreateAccount added in v0.27.0

func (_m *AccountInterface) CreateAccount(address common.Address) (common.Address, error)

CreateAccount provides a mock function with given fields: address

func (*AccountInterface) GetAccountKey added in v0.27.0

func (_m *AccountInterface) GetAccountKey(address common.Address, keyIndex int) (*stdlib.AccountKey, error)

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

func (*AccountInterface) RevokeAccountKey added in v0.27.0

func (_m *AccountInterface) RevokeAccountKey(address common.Address, keyIndex int) (*stdlib.AccountKey, error)

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

type Blocks

type Blocks struct {
	mock.Mock
}

Blocks is an autogenerated mock type for the Blocks type

func NewBlocks added in v0.26.1

func NewBlocks(t mockConstructorTestingTNewBlocks) *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.

func (*Blocks) ByHeightFrom added in v0.13.0

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

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

type BootstrapProcedureOption added in v0.26.1

type BootstrapProcedureOption struct {
	mock.Mock
}

BootstrapProcedureOption is an autogenerated mock type for the BootstrapProcedureOption type

func NewBootstrapProcedureOption added in v0.26.1

func NewBootstrapProcedureOption(t mockConstructorTestingTNewBootstrapProcedureOption) *BootstrapProcedureOption

NewBootstrapProcedureOption creates a new instance of BootstrapProcedureOption. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*BootstrapProcedureOption) Execute added in v0.26.1

Execute provides a mock function with given fields: _a0

type MeterInterface added in v0.27.0

type MeterInterface struct {
	mock.Mock
}

MeterInterface is an autogenerated mock type for the MeterInterface type

func NewMeterInterface added in v0.27.0

func NewMeterInterface(t mockConstructorTestingTNewMeterInterface) *MeterInterface

NewMeterInterface creates a new instance of MeterInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MeterInterface) Meter added in v0.27.0

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

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

type NewSpanT added in v0.27.0

type NewSpanT interface {
	mock.TestingT
	Cleanup(func())
}

type Option added in v0.26.1

type Option struct {
	mock.Mock
}

Option is an autogenerated mock type for the Option type

func NewOption added in v0.26.1

func NewOption(t mockConstructorTestingTNewOption) *Option

NewOption creates a new instance of Option. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Option) Execute added in v0.26.1

func (_m *Option) Execute(ctx fvm.Context) fvm.Context

Execute provides a mock function with given fields: ctx

type Procedure

type Procedure struct {
	mock.Mock
}

Procedure is an autogenerated mock type for the Procedure type

func NewProcedure added in v0.26.1

func NewProcedure(t mockConstructorTestingTNewProcedure) *Procedure

NewProcedure creates a new instance of Procedure. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Procedure) ComputationLimit added in v0.25.2

func (_m *Procedure) ComputationLimit(ctx fvm.Context) uint64

ComputationLimit provides a mock function with given fields: ctx

func (*Procedure) ExecutionTime added in v0.28.0

func (_m *Procedure) ExecutionTime() programs.LogicalTime

ExecutionTime provides a mock function with given fields:

func (*Procedure) InitialSnapshotTime added in v0.28.0

func (_m *Procedure) InitialSnapshotTime() programs.LogicalTime

InitialSnapshotTime provides a mock function with given fields:

func (*Procedure) MemoryLimit added in v0.25.2

func (_m *Procedure) MemoryLimit(ctx fvm.Context) uint64

MemoryLimit provides a mock function with given fields: ctx

func (*Procedure) Run

Run provides a mock function with given fields: ctx, txnState, _a2

func (*Procedure) ShouldDisableMemoryAndInteractionLimits added in v0.28.0

func (_m *Procedure) ShouldDisableMemoryAndInteractionLimits(ctx fvm.Context) bool

ShouldDisableMemoryAndInteractionLimits provides a mock function with given fields: ctx

func (*Procedure) Type added in v0.28.0

func (_m *Procedure) Type() fvm.ProcedureType

Type provides a mock function with given fields:

type ScriptProcessor

type ScriptProcessor struct {
	mock.Mock
}

ScriptProcessor is an autogenerated mock type for the ScriptProcessor type

func NewScriptProcessor added in v0.26.1

func NewScriptProcessor(t mockConstructorTestingTNewScriptProcessor) *ScriptProcessor

NewScriptProcessor creates a new instance of ScriptProcessor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ScriptProcessor) Process

Process provides a mock function with given fields: _a0, _a1, _a2, _a3

type Span added in v0.27.0

type Span struct {
	mock.Mock
}

Span is an autogenerated mock type for the Span type

func NewSpan added in v0.27.0

func NewSpan(t NewSpanT) *Span

NewSpan creates a new instance of Span. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Span) AddEvent added in v0.27.0

func (_m *Span) AddEvent(name string, options ...trace.EventOption)

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

func (*Span) End added in v0.27.0

func (_m *Span) End(options ...trace.SpanEndOption)

End provides a mock function with given fields: options

func (*Span) IsRecording added in v0.27.0

func (_m *Span) IsRecording() bool

IsRecording provides a mock function with given fields:

func (*Span) RecordError added in v0.27.0

func (_m *Span) RecordError(err error, options ...trace.EventOption)

RecordError provides a mock function with given fields: err, options

func (*Span) SetAttributes added in v0.27.0

func (_m *Span) SetAttributes(kv ...attribute.KeyValue)

SetAttributes provides a mock function with given fields: kv

func (*Span) SetName added in v0.27.0

func (_m *Span) SetName(name string)

SetName provides a mock function with given fields: name

func (*Span) SetStatus added in v0.27.0

func (_m *Span) SetStatus(code codes.Code, description string)

SetStatus provides a mock function with given fields: code, description

func (*Span) SpanContext added in v0.27.0

func (_m *Span) SpanContext() trace.SpanContext

SpanContext provides a mock function with given fields:

func (*Span) TracerProvider added in v0.27.0

func (_m *Span) TracerProvider() trace.TracerProvider

TracerProvider provides a mock function with given fields:

type StandardLibraryInterface added in v0.28.0

type StandardLibraryInterface struct {
	mock.Mock
}

StandardLibraryInterface is an autogenerated mock type for the StandardLibraryInterface type

func NewStandardLibraryInterface added in v0.28.0

func NewStandardLibraryInterface(t mockConstructorTestingTNewStandardLibraryInterface) *StandardLibraryInterface

NewStandardLibraryInterface creates a new instance of StandardLibraryInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*StandardLibraryInterface) SetAccountFrozen added in v0.28.0

func (_m *StandardLibraryInterface) SetAccountFrozen(address common.Address, frozen bool) error

SetAccountFrozen provides a mock function with given fields: address, frozen

type TransactionProcessor

type TransactionProcessor struct {
	mock.Mock
}

TransactionProcessor is an autogenerated mock type for the TransactionProcessor type

func NewTransactionProcessor added in v0.26.1

func NewTransactionProcessor(t mockConstructorTestingTNewTransactionProcessor) *TransactionProcessor

NewTransactionProcessor creates a new instance of TransactionProcessor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TransactionProcessor) Process

Process provides a mock function with given fields: _a0, _a1, _a2, _a3

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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