Documentation ¶
Index ¶
- type Mapper
- type Mapper_Expecter
- func (_e *Mapper_Expecter) RunInBaseScope(f interface{}) *Mapper_RunInBaseScope_Call
- func (_e *Mapper_Expecter) ScopeBase() *Mapper_ScopeBase_Call
- func (_e *Mapper_Expecter) ScopeUser(ctx interface{}) *Mapper_ScopeUser_Call
- func (_e *Mapper_Expecter) ScopeUserByIds(uid interface{}, gid interface{}) *Mapper_ScopeUserByIds_Call
- type Mapper_RunInBaseScope_Call
- type Mapper_ScopeBase_Call
- type Mapper_ScopeUserByIds_Call
- func (_c *Mapper_ScopeUserByIds_Call) Return(_a0 func() error, _a1 error) *Mapper_ScopeUserByIds_Call
- func (_c *Mapper_ScopeUserByIds_Call) Run(run func(uid int, gid int)) *Mapper_ScopeUserByIds_Call
- func (_c *Mapper_ScopeUserByIds_Call) RunAndReturn(run func(int, int) (func() error, error)) *Mapper_ScopeUserByIds_Call
- type Mapper_ScopeUser_Call
- func (_c *Mapper_ScopeUser_Call) Return(_a0 func() error, _a1 error) *Mapper_ScopeUser_Call
- func (_c *Mapper_ScopeUser_Call) Run(run func(ctx context.Context)) *Mapper_ScopeUser_Call
- func (_c *Mapper_ScopeUser_Call) RunAndReturn(run func(context.Context) (func() error, error)) *Mapper_ScopeUser_Call
- type UserMapper
- func (_m *UserMapper) EXPECT() *UserMapper_Expecter
- func (_m *UserMapper) RunInBaseScope(f func() error) error
- func (_m *UserMapper) ScopeBase() (func() error, error)
- func (_m *UserMapper) ScopeUser(ctx context.Context) (func() error, error)
- func (_m *UserMapper) ScopeUserByIds(uid int, gid int) (func() error, error)
- type UserMapper_Expecter
- func (_e *UserMapper_Expecter) RunInBaseScope(f interface{}) *UserMapper_RunInBaseScope_Call
- func (_e *UserMapper_Expecter) ScopeBase() *UserMapper_ScopeBase_Call
- func (_e *UserMapper_Expecter) ScopeUser(ctx interface{}) *UserMapper_ScopeUser_Call
- func (_e *UserMapper_Expecter) ScopeUserByIds(uid interface{}, gid interface{}) *UserMapper_ScopeUserByIds_Call
- type UserMapper_RunInBaseScope_Call
- func (_c *UserMapper_RunInBaseScope_Call) Return(_a0 error) *UserMapper_RunInBaseScope_Call
- func (_c *UserMapper_RunInBaseScope_Call) Run(run func(f func() error)) *UserMapper_RunInBaseScope_Call
- func (_c *UserMapper_RunInBaseScope_Call) RunAndReturn(run func(func() error) error) *UserMapper_RunInBaseScope_Call
- type UserMapper_ScopeBase_Call
- type UserMapper_ScopeUserByIds_Call
- func (_c *UserMapper_ScopeUserByIds_Call) Return(_a0 func() error, _a1 error) *UserMapper_ScopeUserByIds_Call
- func (_c *UserMapper_ScopeUserByIds_Call) Run(run func(uid int, gid int)) *UserMapper_ScopeUserByIds_Call
- func (_c *UserMapper_ScopeUserByIds_Call) RunAndReturn(run func(int, int) (func() error, error)) *UserMapper_ScopeUserByIds_Call
- type UserMapper_ScopeUser_Call
- func (_c *UserMapper_ScopeUser_Call) Return(_a0 func() error, _a1 error) *UserMapper_ScopeUser_Call
- func (_c *UserMapper_ScopeUser_Call) Run(run func(ctx context.Context)) *UserMapper_ScopeUser_Call
- func (_c *UserMapper_ScopeUser_Call) RunAndReturn(run func(context.Context) (func() error, error)) *UserMapper_ScopeUser_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mapper ¶
Mapper is an autogenerated mock type for the Mapper type
func NewMapper ¶
NewMapper creates a new instance of Mapper. 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 (*Mapper) EXPECT ¶
func (_m *Mapper) EXPECT() *Mapper_Expecter
func (*Mapper) RunInBaseScope ¶
RunInBaseScope provides a mock function with given fields: f
type Mapper_Expecter ¶
type Mapper_Expecter struct {
// contains filtered or unexported fields
}
func (*Mapper_Expecter) RunInBaseScope ¶
func (_e *Mapper_Expecter) RunInBaseScope(f interface{}) *Mapper_RunInBaseScope_Call
RunInBaseScope is a helper method to define mock.On call
- f func() error
func (*Mapper_Expecter) ScopeBase ¶
func (_e *Mapper_Expecter) ScopeBase() *Mapper_ScopeBase_Call
ScopeBase is a helper method to define mock.On call
func (*Mapper_Expecter) ScopeUser ¶
func (_e *Mapper_Expecter) ScopeUser(ctx interface{}) *Mapper_ScopeUser_Call
ScopeUser is a helper method to define mock.On call
- ctx context.Context
func (*Mapper_Expecter) ScopeUserByIds ¶
func (_e *Mapper_Expecter) ScopeUserByIds(uid interface{}, gid interface{}) *Mapper_ScopeUserByIds_Call
ScopeUserByIds is a helper method to define mock.On call
- uid int
- gid int
type Mapper_RunInBaseScope_Call ¶
Mapper_RunInBaseScope_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunInBaseScope'
func (*Mapper_RunInBaseScope_Call) Return ¶
func (_c *Mapper_RunInBaseScope_Call) Return(_a0 error) *Mapper_RunInBaseScope_Call
func (*Mapper_RunInBaseScope_Call) Run ¶
func (_c *Mapper_RunInBaseScope_Call) Run(run func(f func() error)) *Mapper_RunInBaseScope_Call
func (*Mapper_RunInBaseScope_Call) RunAndReturn ¶
func (_c *Mapper_RunInBaseScope_Call) RunAndReturn(run func(func() error) error) *Mapper_RunInBaseScope_Call
type Mapper_ScopeBase_Call ¶
Mapper_ScopeBase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ScopeBase'
func (*Mapper_ScopeBase_Call) Return ¶
func (_c *Mapper_ScopeBase_Call) Return(_a0 func() error, _a1 error) *Mapper_ScopeBase_Call
func (*Mapper_ScopeBase_Call) Run ¶
func (_c *Mapper_ScopeBase_Call) Run(run func()) *Mapper_ScopeBase_Call
func (*Mapper_ScopeBase_Call) RunAndReturn ¶
func (_c *Mapper_ScopeBase_Call) RunAndReturn(run func() (func() error, error)) *Mapper_ScopeBase_Call
type Mapper_ScopeUserByIds_Call ¶
Mapper_ScopeUserByIds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ScopeUserByIds'
func (*Mapper_ScopeUserByIds_Call) Return ¶
func (_c *Mapper_ScopeUserByIds_Call) Return(_a0 func() error, _a1 error) *Mapper_ScopeUserByIds_Call
func (*Mapper_ScopeUserByIds_Call) Run ¶
func (_c *Mapper_ScopeUserByIds_Call) Run(run func(uid int, gid int)) *Mapper_ScopeUserByIds_Call
func (*Mapper_ScopeUserByIds_Call) RunAndReturn ¶
func (_c *Mapper_ScopeUserByIds_Call) RunAndReturn(run func(int, int) (func() error, error)) *Mapper_ScopeUserByIds_Call
type Mapper_ScopeUser_Call ¶
Mapper_ScopeUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ScopeUser'
func (*Mapper_ScopeUser_Call) Return ¶
func (_c *Mapper_ScopeUser_Call) Return(_a0 func() error, _a1 error) *Mapper_ScopeUser_Call
func (*Mapper_ScopeUser_Call) Run ¶
func (_c *Mapper_ScopeUser_Call) Run(run func(ctx context.Context)) *Mapper_ScopeUser_Call
func (*Mapper_ScopeUser_Call) RunAndReturn ¶
func (_c *Mapper_ScopeUser_Call) RunAndReturn(run func(context.Context) (func() error, error)) *Mapper_ScopeUser_Call
type UserMapper ¶
UserMapper is an autogenerated mock type for the UserMapper type
func NewUserMapper ¶
func NewUserMapper(t interface { mock.TestingT Cleanup(func()) }) *UserMapper
NewUserMapper creates a new instance of UserMapper. 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 (*UserMapper) EXPECT ¶
func (_m *UserMapper) EXPECT() *UserMapper_Expecter
func (*UserMapper) RunInBaseScope ¶
func (_m *UserMapper) RunInBaseScope(f func() error) error
RunInBaseScope provides a mock function with given fields: f
func (*UserMapper) ScopeBase ¶
func (_m *UserMapper) ScopeBase() (func() error, error)
ScopeBase provides a mock function with given fields:
func (*UserMapper) ScopeUser ¶
func (_m *UserMapper) ScopeUser(ctx context.Context) (func() error, error)
ScopeUser provides a mock function with given fields: ctx
func (*UserMapper) ScopeUserByIds ¶
func (_m *UserMapper) ScopeUserByIds(uid int, gid int) (func() error, error)
ScopeUserByIds provides a mock function with given fields: uid, gid
type UserMapper_Expecter ¶
type UserMapper_Expecter struct {
// contains filtered or unexported fields
}
func (*UserMapper_Expecter) RunInBaseScope ¶
func (_e *UserMapper_Expecter) RunInBaseScope(f interface{}) *UserMapper_RunInBaseScope_Call
RunInBaseScope is a helper method to define mock.On call
- f func() error
func (*UserMapper_Expecter) ScopeBase ¶
func (_e *UserMapper_Expecter) ScopeBase() *UserMapper_ScopeBase_Call
ScopeBase is a helper method to define mock.On call
func (*UserMapper_Expecter) ScopeUser ¶
func (_e *UserMapper_Expecter) ScopeUser(ctx interface{}) *UserMapper_ScopeUser_Call
ScopeUser is a helper method to define mock.On call
- ctx context.Context
func (*UserMapper_Expecter) ScopeUserByIds ¶
func (_e *UserMapper_Expecter) ScopeUserByIds(uid interface{}, gid interface{}) *UserMapper_ScopeUserByIds_Call
ScopeUserByIds is a helper method to define mock.On call
- uid int
- gid int
type UserMapper_RunInBaseScope_Call ¶
UserMapper_RunInBaseScope_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunInBaseScope'
func (*UserMapper_RunInBaseScope_Call) Return ¶
func (_c *UserMapper_RunInBaseScope_Call) Return(_a0 error) *UserMapper_RunInBaseScope_Call
func (*UserMapper_RunInBaseScope_Call) Run ¶
func (_c *UserMapper_RunInBaseScope_Call) Run(run func(f func() error)) *UserMapper_RunInBaseScope_Call
func (*UserMapper_RunInBaseScope_Call) RunAndReturn ¶
func (_c *UserMapper_RunInBaseScope_Call) RunAndReturn(run func(func() error) error) *UserMapper_RunInBaseScope_Call
type UserMapper_ScopeBase_Call ¶
UserMapper_ScopeBase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ScopeBase'
func (*UserMapper_ScopeBase_Call) Return ¶
func (_c *UserMapper_ScopeBase_Call) Return(_a0 func() error, _a1 error) *UserMapper_ScopeBase_Call
func (*UserMapper_ScopeBase_Call) Run ¶
func (_c *UserMapper_ScopeBase_Call) Run(run func()) *UserMapper_ScopeBase_Call
func (*UserMapper_ScopeBase_Call) RunAndReturn ¶
func (_c *UserMapper_ScopeBase_Call) RunAndReturn(run func() (func() error, error)) *UserMapper_ScopeBase_Call
type UserMapper_ScopeUserByIds_Call ¶
UserMapper_ScopeUserByIds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ScopeUserByIds'
func (*UserMapper_ScopeUserByIds_Call) Return ¶
func (_c *UserMapper_ScopeUserByIds_Call) Return(_a0 func() error, _a1 error) *UserMapper_ScopeUserByIds_Call
func (*UserMapper_ScopeUserByIds_Call) Run ¶
func (_c *UserMapper_ScopeUserByIds_Call) Run(run func(uid int, gid int)) *UserMapper_ScopeUserByIds_Call
func (*UserMapper_ScopeUserByIds_Call) RunAndReturn ¶
func (_c *UserMapper_ScopeUserByIds_Call) RunAndReturn(run func(int, int) (func() error, error)) *UserMapper_ScopeUserByIds_Call
type UserMapper_ScopeUser_Call ¶
UserMapper_ScopeUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ScopeUser'
func (*UserMapper_ScopeUser_Call) Return ¶
func (_c *UserMapper_ScopeUser_Call) Return(_a0 func() error, _a1 error) *UserMapper_ScopeUser_Call
func (*UserMapper_ScopeUser_Call) Run ¶
func (_c *UserMapper_ScopeUser_Call) Run(run func(ctx context.Context)) *UserMapper_ScopeUser_Call
func (*UserMapper_ScopeUser_Call) RunAndReturn ¶
func (_c *UserMapper_ScopeUser_Call) RunAndReturn(run func(context.Context) (func() error, error)) *UserMapper_ScopeUser_Call