mocks

package
v2.23.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mapper

type Mapper struct {
	mock.Mock
}

Mapper is an autogenerated mock type for the Mapper type

func NewMapper

func NewMapper(t interface {
	mock.TestingT
	Cleanup(func())
}) *Mapper

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

func (_m *Mapper) RunInBaseScope(f func() error) error

RunInBaseScope provides a mock function with given fields: f

func (*Mapper) ScopeBase

func (_m *Mapper) ScopeBase() (func() error, error)

ScopeBase provides a mock function with given fields:

func (*Mapper) ScopeUser

func (_m *Mapper) ScopeUser(ctx context.Context) (func() error, error)

ScopeUser provides a mock function with given fields: ctx

func (*Mapper) ScopeUserByIds

func (_m *Mapper) ScopeUserByIds(uid int, gid int) (func() error, error)

ScopeUserByIds provides a mock function with given fields: uid, gid

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

type Mapper_RunInBaseScope_Call struct {
	*mock.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 (*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

type Mapper_ScopeBase_Call struct {
	*mock.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

type Mapper_ScopeUserByIds_Call struct {
	*mock.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 (*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

type Mapper_ScopeUser_Call struct {
	*mock.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 (*Mapper_ScopeUser_Call) RunAndReturn

func (_c *Mapper_ScopeUser_Call) RunAndReturn(run func(context.Context) (func() error, error)) *Mapper_ScopeUser_Call

type UserMapper

type UserMapper struct {
	mock.Mock
}

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

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

type UserMapper_RunInBaseScope_Call struct {
	*mock.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 (*UserMapper_RunInBaseScope_Call) Run

func (*UserMapper_RunInBaseScope_Call) RunAndReturn

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

type UserMapper_ScopeBase_Call

type UserMapper_ScopeBase_Call struct {
	*mock.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 (*UserMapper_ScopeBase_Call) RunAndReturn

func (_c *UserMapper_ScopeBase_Call) RunAndReturn(run func() (func() error, error)) *UserMapper_ScopeBase_Call

type UserMapper_ScopeUserByIds_Call

type UserMapper_ScopeUserByIds_Call struct {
	*mock.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 (*UserMapper_ScopeUserByIds_Call) Run

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

type UserMapper_ScopeUser_Call struct {
	*mock.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 (*UserMapper_ScopeUser_Call) RunAndReturn

func (_c *UserMapper_ScopeUser_Call) RunAndReturn(run func(context.Context) (func() error, error)) *UserMapper_ScopeUser_Call

Jump to

Keyboard shortcuts

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