mocks

package
v0.0.0-...-20f649f Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTransactor

type MockTransactor struct {
	mock.Mock
}

MockTransactor is an autogenerated mock type for the Transactor type

func NewMockTransactor

func NewMockTransactor(t mockConstructorTestingTNewMockTransactor) *MockTransactor

NewMockTransactor creates a new instance of MockTransactor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockTransactor) EXPECT

func (*MockTransactor) WithTx

func (_m *MockTransactor) WithTx(_a0 context.Context, _a1 func(context.Context) (interface{}, error)) (interface{}, error)

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

type MockTransactor_Expecter

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

func (*MockTransactor_Expecter) WithTx

func (_e *MockTransactor_Expecter) WithTx(_a0 interface{}, _a1 interface{}) *MockTransactor_WithTx_Call

WithTx is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 func(context.Context)(interface{} , error)

type MockTransactor_WithTx_Call

type MockTransactor_WithTx_Call struct {
	*mock.Call
}

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

func (*MockTransactor_WithTx_Call) Return

func (_c *MockTransactor_WithTx_Call) Return(_a0 interface{}, _a1 error) *MockTransactor_WithTx_Call

func (*MockTransactor_WithTx_Call) Run

func (_c *MockTransactor_WithTx_Call) Run(run func(_a0 context.Context, _a1 func(context.Context) (interface{}, error))) *MockTransactor_WithTx_Call

func (*MockTransactor_WithTx_Call) RunAndReturn

func (_c *MockTransactor_WithTx_Call) RunAndReturn(run func(context.Context, func(context.Context) (interface{}, error)) (interface{}, error)) *MockTransactor_WithTx_Call

Jump to

Keyboard shortcuts

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