mocks_repository_tx

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TxMock

type TxMock struct {
	mock.Mock
}

TxMock is an autogenerated mock type for the TxInterface type

func NewTxMock

func NewTxMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *TxMock

NewTxMock creates a new instance of TxMock. 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 (*TxMock) Client

func (_m *TxMock) Client() *ent.Client

Client provides a mock function with no fields

func (*TxMock) Commit

func (_m *TxMock) Commit() error

Commit provides a mock function with no fields

func (*TxMock) EXPECT

func (_m *TxMock) EXPECT() *TxMock_Expecter

func (*TxMock) Rollback

func (_m *TxMock) Rollback() error

Rollback provides a mock function with no fields

type TxMock_Client_Call

type TxMock_Client_Call struct {
	*mock.Call
}

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

func (*TxMock_Client_Call) Return

func (_c *TxMock_Client_Call) Return(_a0 *ent.Client) *TxMock_Client_Call

func (*TxMock_Client_Call) Run

func (_c *TxMock_Client_Call) Run(run func()) *TxMock_Client_Call

func (*TxMock_Client_Call) RunAndReturn

func (_c *TxMock_Client_Call) RunAndReturn(run func() *ent.Client) *TxMock_Client_Call

type TxMock_Commit_Call

type TxMock_Commit_Call struct {
	*mock.Call
}

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

func (*TxMock_Commit_Call) Return

func (_c *TxMock_Commit_Call) Return(_a0 error) *TxMock_Commit_Call

func (*TxMock_Commit_Call) Run

func (_c *TxMock_Commit_Call) Run(run func()) *TxMock_Commit_Call

func (*TxMock_Commit_Call) RunAndReturn

func (_c *TxMock_Commit_Call) RunAndReturn(run func() error) *TxMock_Commit_Call

type TxMock_Expecter

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

func (*TxMock_Expecter) Client

func (_e *TxMock_Expecter) Client() *TxMock_Client_Call

Client is a helper method to define mock.On call

func (*TxMock_Expecter) Commit

func (_e *TxMock_Expecter) Commit() *TxMock_Commit_Call

Commit is a helper method to define mock.On call

func (*TxMock_Expecter) Rollback

func (_e *TxMock_Expecter) Rollback() *TxMock_Rollback_Call

Rollback is a helper method to define mock.On call

type TxMock_Rollback_Call

type TxMock_Rollback_Call struct {
	*mock.Call
}

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

func (*TxMock_Rollback_Call) Return

func (*TxMock_Rollback_Call) Run

func (_c *TxMock_Rollback_Call) Run(run func()) *TxMock_Rollback_Call

func (*TxMock_Rollback_Call) RunAndReturn

func (_c *TxMock_Rollback_Call) RunAndReturn(run func() error) *TxMock_Rollback_Call

Jump to

Keyboard shortcuts

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