mock

package
v0.43.1-rc.1.access-me... Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TransactionProvider

type TransactionProvider struct {
	mock.Mock
}

TransactionProvider is an autogenerated mock type for the TransactionProvider type

func NewTransactionProvider

func NewTransactionProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *TransactionProvider

NewTransactionProvider creates a new instance of TransactionProvider. 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 (*TransactionProvider) SystemTransaction

func (_m *TransactionProvider) SystemTransaction(ctx context.Context, block *flow.GenericBlock[flow.Payload], txID flow.Identifier) (*flow.TransactionBody, error)

SystemTransaction provides a mock function with given fields: ctx, block, txID

func (*TransactionProvider) SystemTransactionResult

func (_m *TransactionProvider) SystemTransactionResult(ctx context.Context, block *flow.GenericBlock[flow.Payload], txID flow.Identifier, requiredEventEncodingVersion entities.EventEncodingVersion) (*access.TransactionResult, error)

SystemTransactionResult provides a mock function with given fields: ctx, block, txID, requiredEventEncodingVersion

func (*TransactionProvider) TransactionResult

func (_m *TransactionProvider) TransactionResult(ctx context.Context, header *flow.Header, txID flow.Identifier, encodingVersion entities.EventEncodingVersion) (*access.TransactionResult, error)

TransactionResult provides a mock function with given fields: ctx, header, txID, encodingVersion

func (*TransactionProvider) TransactionResultByIndex

func (_m *TransactionProvider) TransactionResultByIndex(ctx context.Context, block *flow.GenericBlock[flow.Payload], index uint32, encodingVersion entities.EventEncodingVersion) (*access.TransactionResult, error)

TransactionResultByIndex provides a mock function with given fields: ctx, block, index, encodingVersion

func (*TransactionProvider) TransactionResultsByBlockID

func (_m *TransactionProvider) TransactionResultsByBlockID(ctx context.Context, block *flow.GenericBlock[flow.Payload], encodingVersion entities.EventEncodingVersion) ([]*access.TransactionResult, error)

TransactionResultsByBlockID provides a mock function with given fields: ctx, block, encodingVersion

func (*TransactionProvider) TransactionsByBlockID

func (_m *TransactionProvider) TransactionsByBlockID(ctx context.Context, block *flow.GenericBlock[flow.Payload]) ([]*flow.TransactionBody, error)

TransactionsByBlockID provides a mock function with given fields: ctx, block

Jump to

Keyboard shortcuts

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