mock

package
v0.10.1-consensus-desr... Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: AGPL-3.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASTCache

type ASTCache struct {
	mock.Mock
}

ASTCache is an autogenerated mock type for the ASTCache type

func (*ASTCache) GetProgram

func (_m *ASTCache) GetProgram(_a0 ast.Location) (*ast.Program, error)

GetProgram provides a mock function with given fields: _a0

func (*ASTCache) SetProgram

func (_m *ASTCache) SetProgram(_a0 ast.Location, _a1 *ast.Program) error

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

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) ByHeight

func (_m *Blocks) ByHeight(height uint64) (*flow.Block, error)

ByHeight provides a mock function with given fields: height

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, ledger state.Ledger) error

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

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.Ledger) error

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

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

Jump to

Keyboard shortcuts

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