Documentation
¶
Index ¶
- type BaseRepositoryMock
- type BaseRepositoryMock_Expecter
- type BaseRepositoryMock_WithTx_Call
- func (_c *BaseRepositoryMock_WithTx_Call) Return(_a0 error) *BaseRepositoryMock_WithTx_Call
- func (_c *BaseRepositoryMock_WithTx_Call) Run(run func(ctx context.Context, fn func(repository.TxInterface) error)) *BaseRepositoryMock_WithTx_Call
- func (_c *BaseRepositoryMock_WithTx_Call) RunAndReturn(run func(context.Context, func(repository.TxInterface) error) error) *BaseRepositoryMock_WithTx_Call
- type RepositoryMock
- type RepositoryMock_Expecter
- type RepositoryMock_WithTx_Call
- func (_c *RepositoryMock_WithTx_Call) Return(_a0 error) *RepositoryMock_WithTx_Call
- func (_c *RepositoryMock_WithTx_Call) Run(run func(ctx context.Context, fn func(*ent.Tx) error)) *RepositoryMock_WithTx_Call
- func (_c *RepositoryMock_WithTx_Call) RunAndReturn(run func(context.Context, func(*ent.Tx) error) error) *RepositoryMock_WithTx_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseRepositoryMock ¶
BaseRepositoryMock is an autogenerated mock type for the BaseRepositoryInterface type
func NewBaseRepositoryMock ¶
func NewBaseRepositoryMock(t interface { mock.TestingT Cleanup(func()) }) *BaseRepositoryMock
NewBaseRepositoryMock creates a new instance of BaseRepositoryMock. 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 (*BaseRepositoryMock) EXPECT ¶
func (_m *BaseRepositoryMock) EXPECT() *BaseRepositoryMock_Expecter
func (*BaseRepositoryMock) WithTx ¶
func (_m *BaseRepositoryMock) WithTx(ctx context.Context, fn func(repository.TxInterface) error) error
WithTx provides a mock function with given fields: ctx, fn
type BaseRepositoryMock_Expecter ¶
type BaseRepositoryMock_Expecter struct {
// contains filtered or unexported fields
}
func (*BaseRepositoryMock_Expecter) WithTx ¶
func (_e *BaseRepositoryMock_Expecter) WithTx(ctx interface{}, fn interface{}) *BaseRepositoryMock_WithTx_Call
WithTx is a helper method to define mock.On call
- ctx context.Context
- fn func(repository.TxInterface) error
type BaseRepositoryMock_WithTx_Call ¶
BaseRepositoryMock_WithTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithTx'
func (*BaseRepositoryMock_WithTx_Call) Return ¶
func (_c *BaseRepositoryMock_WithTx_Call) Return(_a0 error) *BaseRepositoryMock_WithTx_Call
func (*BaseRepositoryMock_WithTx_Call) Run ¶
func (_c *BaseRepositoryMock_WithTx_Call) Run(run func(ctx context.Context, fn func(repository.TxInterface) error)) *BaseRepositoryMock_WithTx_Call
func (*BaseRepositoryMock_WithTx_Call) RunAndReturn ¶
func (_c *BaseRepositoryMock_WithTx_Call) RunAndReturn(run func(context.Context, func(repository.TxInterface) error) error) *BaseRepositoryMock_WithTx_Call
type RepositoryMock ¶
RepositoryMock is an autogenerated mock type for the RepositoryInterface type
func NewRepositoryMock ¶
func NewRepositoryMock(t interface { mock.TestingT Cleanup(func()) }) *RepositoryMock
NewRepositoryMock creates a new instance of RepositoryMock. 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 (*RepositoryMock) EXPECT ¶
func (_m *RepositoryMock) EXPECT() *RepositoryMock_Expecter
type RepositoryMock_Expecter ¶
type RepositoryMock_Expecter struct {
// contains filtered or unexported fields
}
func (*RepositoryMock_Expecter) WithTx ¶
func (_e *RepositoryMock_Expecter) WithTx(ctx interface{}, fn interface{}) *RepositoryMock_WithTx_Call
WithTx is a helper method to define mock.On call
- ctx context.Context
- fn func(*ent.Tx) error
type RepositoryMock_WithTx_Call ¶
RepositoryMock_WithTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithTx'
func (*RepositoryMock_WithTx_Call) Return ¶
func (_c *RepositoryMock_WithTx_Call) Return(_a0 error) *RepositoryMock_WithTx_Call
func (*RepositoryMock_WithTx_Call) Run ¶
func (_c *RepositoryMock_WithTx_Call) Run(run func(ctx context.Context, fn func(*ent.Tx) error)) *RepositoryMock_WithTx_Call
func (*RepositoryMock_WithTx_Call) RunAndReturn ¶
func (_c *RepositoryMock_WithTx_Call) RunAndReturn(run func(context.Context, func(*ent.Tx) error) error) *RepositoryMock_WithTx_Call