mock

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockComputer

type BlockComputer struct {
	mock.Mock
}

BlockComputer is an autogenerated mock type for the BlockComputer type

func NewBlockComputer added in v0.26.1

func NewBlockComputer(t interface {
	mock.TestingT
	Cleanup(func())
}) *BlockComputer

NewBlockComputer creates a new instance of BlockComputer. 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 (*BlockComputer) ExecuteBlock

func (_m *BlockComputer) ExecuteBlock(ctx context.Context, parentBlockExecutionResultID flow.Identifier, block *entity.ExecutableBlock, _a3 snapshot.StorageSnapshot, derivedBlockData *derived.DerivedBlockData) (*execution.ComputationResult, error)

ExecuteBlock provides a mock function with given fields: ctx, parentBlockExecutionResultID, block, _a3, derivedBlockData

type TransactionWriteBehindLogger added in v0.32.0

type TransactionWriteBehindLogger struct {
	mock.Mock
}

TransactionWriteBehindLogger is an autogenerated mock type for the TransactionWriteBehindLogger type

func NewTransactionWriteBehindLogger added in v0.32.0

func NewTransactionWriteBehindLogger(t interface {
	mock.TestingT
	Cleanup(func())
}) *TransactionWriteBehindLogger

NewTransactionWriteBehindLogger creates a new instance of TransactionWriteBehindLogger. 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 (*TransactionWriteBehindLogger) AddTransactionResult added in v0.32.0

func (_m *TransactionWriteBehindLogger) AddTransactionResult(txn computer.TransactionRequest, _a1 *snapshot.ExecutionSnapshot, output fvm.ProcedureOutput, timeSpent time.Duration, numTxnConflictRetries int)

AddTransactionResult provides a mock function with given fields: txn, _a1, output, timeSpent, numTxnConflictRetries

type ViewCommitter added in v0.16.0

type ViewCommitter struct {
	mock.Mock
}

ViewCommitter is an autogenerated mock type for the ViewCommitter type

func NewViewCommitter added in v0.26.1

func NewViewCommitter(t interface {
	mock.TestingT
	Cleanup(func())
}) *ViewCommitter

NewViewCommitter creates a new instance of ViewCommitter. 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 (*ViewCommitter) CommitView added in v0.16.0

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

Jump to

Keyboard shortcuts

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