mock

package
v0.46.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	mock.Mock
}

Backend is an autogenerated mock type for the Backend type

func NewBackend added in v0.26.1

func NewBackend(t interface {
	mock.TestingT
	Cleanup(func())
}) *Backend

NewBackend creates a new instance of Backend. 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 (*Backend) EXPECT added in v0.46.0

func (_m *Backend) EXPECT() *Backend_Expecter

func (*Backend) ProcessTransaction

func (_mock *Backend) ProcessTransaction(transactionBody *flow.TransactionBody) error

ProcessTransaction provides a mock function for the type Backend

type Backend_Expecter added in v0.46.0

type Backend_Expecter struct {
	// contains filtered or unexported fields
}

func (*Backend_Expecter) ProcessTransaction added in v0.46.0

func (_e *Backend_Expecter) ProcessTransaction(transactionBody interface{}) *Backend_ProcessTransaction_Call

ProcessTransaction is a helper method to define mock.On call

  • transactionBody *flow.TransactionBody

type Backend_ProcessTransaction_Call added in v0.46.0

type Backend_ProcessTransaction_Call struct {
	*mock.Call
}

Backend_ProcessTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessTransaction'

func (*Backend_ProcessTransaction_Call) Return added in v0.46.0

func (*Backend_ProcessTransaction_Call) Run added in v0.46.0

func (*Backend_ProcessTransaction_Call) RunAndReturn added in v0.46.0

func (_c *Backend_ProcessTransaction_Call) RunAndReturn(run func(transactionBody *flow.TransactionBody) error) *Backend_ProcessTransaction_Call

Jump to

Keyboard shortcuts

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