mock

package
v0.14.10 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: AGPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressState

type AddressState struct {
	mock.Mock
}

AddressState is an autogenerated mock type for the AddressState type

func (*AddressState) Bytes

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

Bytes provides a mock function with given fields:

func (*AddressState) CurrentAddress

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

CurrentAddress provides a mock function with given fields:

func (*AddressState) NextAddress

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

NextAddress 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 (*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 Error

type Error struct {
	mock.Mock
}

Error is an autogenerated mock type for the Error type

func (*Error) Code

func (_m *Error) Code() uint32

Code provides a mock function with given fields:

func (*Error) Error

func (_m *Error) Error() string

Error provides a mock function with given fields:

type FlowError

type FlowError struct {
	mock.Mock
}

FlowError is an autogenerated mock type for the FlowError type

func (*FlowError) ErrorMessage

func (_m *FlowError) ErrorMessage() string

ErrorMessage provides a mock function with given fields:

func (*FlowError) StatusCode

func (_m *FlowError) StatusCode() uint32

StatusCode provides a mock function with given fields:

type Ledger

type Ledger struct {
	mock.Mock
}

Ledger is an autogenerated mock type for the Ledger type

func (*Ledger) Delete

func (_m *Ledger) Delete(key []byte)

Delete provides a mock function with given fields: key

func (*Ledger) Get

func (_m *Ledger) Get(key []byte) ([]byte, error)

Get provides a mock function with given fields: key

func (*Ledger) Set

func (_m *Ledger) Set(key []byte, value []byte)

Set provides a mock function with given fields: key, value

func (*Ledger) Touch

func (_m *Ledger) Touch(key []byte)

Touch provides a mock function with given fields: key

type Procedure

type Procedure struct {
	mock.Mock
}

Procedure is an autogenerated mock type for the Procedure type

func (*Procedure) Run

func (_m *Procedure) Run(vm *fvm.VirtualMachine, ctx fvm.Context, st *state.State, programs *fvm.Programs) error

Run provides a mock function with given fields: vm, ctx, st, programs

type ScriptProcessor

type ScriptProcessor struct {
	mock.Mock
}

ScriptProcessor is an autogenerated mock type for the ScriptProcessor type

func (*ScriptProcessor) Process

func (_m *ScriptProcessor) Process(_a0 *fvm.VirtualMachine, _a1 fvm.Context, _a2 *fvm.ScriptProcedure, _a3 *state.State, _a4 *fvm.Programs) error

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

type SignatureVerifier

type SignatureVerifier struct {
	mock.Mock
}

SignatureVerifier is an autogenerated mock type for the SignatureVerifier type

func (*SignatureVerifier) Verify

func (_m *SignatureVerifier) Verify(signature []byte, tag []byte, message []byte, publicKey crypto.PublicKey, hashAlgo hash.HashingAlgorithm) (bool, error)

Verify provides a mock function with given fields: signature, tag, message, publicKey, hashAlgo

type TransactionProcessor

type TransactionProcessor struct {
	mock.Mock
}

TransactionProcessor is an autogenerated mock type for the TransactionProcessor type

func (*TransactionProcessor) Process

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

Jump to

Keyboard shortcuts

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