Documentation ¶
Index ¶
- type Gorm
- type Gorm_Expecter
- type Gorm_Make_Call
- type Initialize
- type Initialize_Expecter
- type Initialize_InitializeGorm_Call
- func (_c *Initialize_InitializeGorm_Call) Return(_a0 gorm.Gorm) *Initialize_InitializeGorm_Call
- func (_c *Initialize_InitializeGorm_Call) Run(run func(_a0 config.Config, connection string)) *Initialize_InitializeGorm_Call
- func (_c *Initialize_InitializeGorm_Call) RunAndReturn(run func(config.Config, string) gorm.Gorm) *Initialize_InitializeGorm_Call
- type Initialize_InitializeQuery_Call
- func (_c *Initialize_InitializeQuery_Call) Return(_a0 orm.Query, _a1 error) *Initialize_InitializeQuery_Call
- func (_c *Initialize_InitializeQuery_Call) Run(run func(ctx context.Context, _a1 config.Config, connection string)) *Initialize_InitializeQuery_Call
- func (_c *Initialize_InitializeQuery_Call) RunAndReturn(run func(context.Context, config.Config, string) (orm.Query, error)) *Initialize_InitializeQuery_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gorm ¶
Gorm is an autogenerated mock type for the Gorm type
func NewGorm ¶
NewGorm creates a new instance of Gorm. 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 (*Gorm) EXPECT ¶
func (_m *Gorm) EXPECT() *Gorm_Expecter
type Gorm_Expecter ¶
type Gorm_Expecter struct {
// contains filtered or unexported fields
}
func (*Gorm_Expecter) Make ¶
func (_e *Gorm_Expecter) Make() *Gorm_Make_Call
Make is a helper method to define mock.On call
type Gorm_Make_Call ¶
Gorm_Make_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Make'
func (*Gorm_Make_Call) Return ¶
func (_c *Gorm_Make_Call) Return(_a0 *gorm.DB, _a1 error) *Gorm_Make_Call
func (*Gorm_Make_Call) Run ¶
func (_c *Gorm_Make_Call) Run(run func()) *Gorm_Make_Call
func (*Gorm_Make_Call) RunAndReturn ¶
func (_c *Gorm_Make_Call) RunAndReturn(run func() (*gorm.DB, error)) *Gorm_Make_Call
type Initialize ¶
Initialize is an autogenerated mock type for the Initialize type
func NewInitialize ¶
func NewInitialize(t interface { mock.TestingT Cleanup(func()) }) *Initialize
NewInitialize creates a new instance of Initialize. 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 (*Initialize) EXPECT ¶
func (_m *Initialize) EXPECT() *Initialize_Expecter
func (*Initialize) InitializeGorm ¶
InitializeGorm provides a mock function with given fields: _a0, connection
type Initialize_Expecter ¶
type Initialize_Expecter struct {
// contains filtered or unexported fields
}
func (*Initialize_Expecter) InitializeGorm ¶
func (_e *Initialize_Expecter) InitializeGorm(_a0 interface{}, connection interface{}) *Initialize_InitializeGorm_Call
InitializeGorm is a helper method to define mock.On call
- _a0 config.Config
- connection string
func (*Initialize_Expecter) InitializeQuery ¶
func (_e *Initialize_Expecter) InitializeQuery(ctx interface{}, _a1 interface{}, connection interface{}) *Initialize_InitializeQuery_Call
InitializeQuery is a helper method to define mock.On call
- ctx context.Context
- _a1 config.Config
- connection string
type Initialize_InitializeGorm_Call ¶
Initialize_InitializeGorm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InitializeGorm'
func (*Initialize_InitializeGorm_Call) Return ¶
func (_c *Initialize_InitializeGorm_Call) Return(_a0 gorm.Gorm) *Initialize_InitializeGorm_Call
func (*Initialize_InitializeGorm_Call) Run ¶
func (_c *Initialize_InitializeGorm_Call) Run(run func(_a0 config.Config, connection string)) *Initialize_InitializeGorm_Call
func (*Initialize_InitializeGorm_Call) RunAndReturn ¶
func (_c *Initialize_InitializeGorm_Call) RunAndReturn(run func(config.Config, string) gorm.Gorm) *Initialize_InitializeGorm_Call
type Initialize_InitializeQuery_Call ¶
Initialize_InitializeQuery_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InitializeQuery'
func (*Initialize_InitializeQuery_Call) Return ¶
func (_c *Initialize_InitializeQuery_Call) Return(_a0 orm.Query, _a1 error) *Initialize_InitializeQuery_Call
func (*Initialize_InitializeQuery_Call) Run ¶
func (_c *Initialize_InitializeQuery_Call) Run(run func(ctx context.Context, _a1 config.Config, connection string)) *Initialize_InitializeQuery_Call
func (*Initialize_InitializeQuery_Call) RunAndReturn ¶
func (_c *Initialize_InitializeQuery_Call) RunAndReturn(run func(context.Context, config.Config, string) (orm.Query, error)) *Initialize_InitializeQuery_Call