uow

package
v0.0.0-...-cada856 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 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 UnitOfWork

type UnitOfWork[T interface{}] struct {
	mock.Mock
}

UnitOfWork is an autogenerated mock type for the UnitOfWork type

func NewUnitOfWork

func NewUnitOfWork[T interface{}](t interface {
	mock.TestingT
	Cleanup(func())
}) *UnitOfWork[T]

NewUnitOfWork creates a new instance of UnitOfWork. 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 (*UnitOfWork[T]) Commit

func (_m *UnitOfWork[T]) Commit(ctx context.Context) error

Commit provides a mock function with given fields: ctx

func (*UnitOfWork[T]) EXPECT

func (_m *UnitOfWork[T]) EXPECT() *UnitOfWork_Expecter[T]

func (*UnitOfWork[T]) RegisterClean

func (_m *UnitOfWork[T]) RegisterClean(in ...T) error

RegisterClean provides a mock function with given fields: in

func (*UnitOfWork[T]) RegisterDeleted

func (_m *UnitOfWork[T]) RegisterDeleted(in ...T) error

RegisterDeleted provides a mock function with given fields: in

func (*UnitOfWork[T]) RegisterDirty

func (_m *UnitOfWork[T]) RegisterDirty(in ...T) error

RegisterDirty provides a mock function with given fields: in

func (*UnitOfWork[T]) RegisterNew

func (_m *UnitOfWork[T]) RegisterNew(in ...T) error

RegisterNew provides a mock function with given fields: in

func (*UnitOfWork[T]) Rollback

func (_m *UnitOfWork[T]) Rollback(ctx context.Context) error

Rollback provides a mock function with given fields: ctx

type UnitOfWork_Commit_Call

type UnitOfWork_Commit_Call[T interface{}] struct {
	*mock.Call
}

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

func (*UnitOfWork_Commit_Call[T]) Return

func (_c *UnitOfWork_Commit_Call[T]) Return(_a0 error) *UnitOfWork_Commit_Call[T]

func (*UnitOfWork_Commit_Call[T]) Run

func (_c *UnitOfWork_Commit_Call[T]) Run(run func(ctx context.Context)) *UnitOfWork_Commit_Call[T]

func (*UnitOfWork_Commit_Call[T]) RunAndReturn

func (_c *UnitOfWork_Commit_Call[T]) RunAndReturn(run func(context.Context) error) *UnitOfWork_Commit_Call[T]

type UnitOfWork_Expecter

type UnitOfWork_Expecter[T interface{}] struct {
	// contains filtered or unexported fields
}

func (*UnitOfWork_Expecter[T]) Commit

func (_e *UnitOfWork_Expecter[T]) Commit(ctx interface{}) *UnitOfWork_Commit_Call[T]

Commit is a helper method to define mock.On call

  • ctx context.Context

func (*UnitOfWork_Expecter[T]) RegisterClean

func (_e *UnitOfWork_Expecter[T]) RegisterClean(in ...interface{}) *UnitOfWork_RegisterClean_Call[T]

RegisterClean is a helper method to define mock.On call

  • in ...T

func (*UnitOfWork_Expecter[T]) RegisterDeleted

func (_e *UnitOfWork_Expecter[T]) RegisterDeleted(in ...interface{}) *UnitOfWork_RegisterDeleted_Call[T]

RegisterDeleted is a helper method to define mock.On call

  • in ...T

func (*UnitOfWork_Expecter[T]) RegisterDirty

func (_e *UnitOfWork_Expecter[T]) RegisterDirty(in ...interface{}) *UnitOfWork_RegisterDirty_Call[T]

RegisterDirty is a helper method to define mock.On call

  • in ...T

func (*UnitOfWork_Expecter[T]) RegisterNew

func (_e *UnitOfWork_Expecter[T]) RegisterNew(in ...interface{}) *UnitOfWork_RegisterNew_Call[T]

RegisterNew is a helper method to define mock.On call

  • in ...T

func (*UnitOfWork_Expecter[T]) Rollback

func (_e *UnitOfWork_Expecter[T]) Rollback(ctx interface{}) *UnitOfWork_Rollback_Call[T]

Rollback is a helper method to define mock.On call

  • ctx context.Context

type UnitOfWork_RegisterClean_Call

type UnitOfWork_RegisterClean_Call[T interface{}] struct {
	*mock.Call
}

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

func (*UnitOfWork_RegisterClean_Call[T]) Return

func (*UnitOfWork_RegisterClean_Call[T]) Run

func (_c *UnitOfWork_RegisterClean_Call[T]) Run(run func(in ...T)) *UnitOfWork_RegisterClean_Call[T]

func (*UnitOfWork_RegisterClean_Call[T]) RunAndReturn

func (_c *UnitOfWork_RegisterClean_Call[T]) RunAndReturn(run func(...T) error) *UnitOfWork_RegisterClean_Call[T]

type UnitOfWork_RegisterDeleted_Call

type UnitOfWork_RegisterDeleted_Call[T interface{}] struct {
	*mock.Call
}

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

func (*UnitOfWork_RegisterDeleted_Call[T]) Return

func (*UnitOfWork_RegisterDeleted_Call[T]) Run

func (_c *UnitOfWork_RegisterDeleted_Call[T]) Run(run func(in ...T)) *UnitOfWork_RegisterDeleted_Call[T]

func (*UnitOfWork_RegisterDeleted_Call[T]) RunAndReturn

func (_c *UnitOfWork_RegisterDeleted_Call[T]) RunAndReturn(run func(...T) error) *UnitOfWork_RegisterDeleted_Call[T]

type UnitOfWork_RegisterDirty_Call

type UnitOfWork_RegisterDirty_Call[T interface{}] struct {
	*mock.Call
}

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

func (*UnitOfWork_RegisterDirty_Call[T]) Return

func (*UnitOfWork_RegisterDirty_Call[T]) Run

func (_c *UnitOfWork_RegisterDirty_Call[T]) Run(run func(in ...T)) *UnitOfWork_RegisterDirty_Call[T]

func (*UnitOfWork_RegisterDirty_Call[T]) RunAndReturn

func (_c *UnitOfWork_RegisterDirty_Call[T]) RunAndReturn(run func(...T) error) *UnitOfWork_RegisterDirty_Call[T]

type UnitOfWork_RegisterNew_Call

type UnitOfWork_RegisterNew_Call[T interface{}] struct {
	*mock.Call
}

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

func (*UnitOfWork_RegisterNew_Call[T]) Return

func (*UnitOfWork_RegisterNew_Call[T]) Run

func (_c *UnitOfWork_RegisterNew_Call[T]) Run(run func(in ...T)) *UnitOfWork_RegisterNew_Call[T]

func (*UnitOfWork_RegisterNew_Call[T]) RunAndReturn

func (_c *UnitOfWork_RegisterNew_Call[T]) RunAndReturn(run func(...T) error) *UnitOfWork_RegisterNew_Call[T]

type UnitOfWork_Rollback_Call

type UnitOfWork_Rollback_Call[T interface{}] struct {
	*mock.Call
}

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

func (*UnitOfWork_Rollback_Call[T]) Return

func (*UnitOfWork_Rollback_Call[T]) Run

func (_c *UnitOfWork_Rollback_Call[T]) Run(run func(ctx context.Context)) *UnitOfWork_Rollback_Call[T]

func (*UnitOfWork_Rollback_Call[T]) RunAndReturn

func (_c *UnitOfWork_Rollback_Call[T]) RunAndReturn(run func(context.Context) error) *UnitOfWork_Rollback_Call[T]

Jump to

Keyboard shortcuts

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