mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTxManager

type MockTxManager struct {
	mock.Mock
}

MockTxManager is an autogenerated mock type for the TxManager type

func NewMockTxManager

func NewMockTxManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTxManager

NewMockTxManager creates a new instance of MockTxManager. 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 (*MockTxManager) EXPECT

func (_m *MockTxManager) EXPECT() *MockTxManager_Expecter

func (*MockTxManager) WithTx

func (_mock *MockTxManager) WithTx(ctx context.Context, fn func(ctx context.Context) error) error

WithTx provides a mock function for the type MockTxManager

type MockTxManager_Expecter

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

func (*MockTxManager_Expecter) WithTx

func (_e *MockTxManager_Expecter) WithTx(ctx interface{}, fn interface{}) *MockTxManager_WithTx_Call

WithTx is a helper method to define mock.On call

  • ctx context.Context
  • fn func(ctx context.Context) error

type MockTxManager_WithTx_Call

type MockTxManager_WithTx_Call struct {
	*mock.Call
}

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

func (*MockTxManager_WithTx_Call) Return

func (*MockTxManager_WithTx_Call) Run

func (*MockTxManager_WithTx_Call) RunAndReturn

func (_c *MockTxManager_WithTx_Call) RunAndReturn(run func(ctx context.Context, fn func(ctx context.Context) error) error) *MockTxManager_WithTx_Call

Jump to

Keyboard shortcuts

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