gorm

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gorm

type Gorm struct {
	mock.Mock
}

Gorm is an autogenerated mock type for the Gorm type

func NewGorm

func NewGorm(t interface {
	mock.TestingT
	Cleanup(func())
}) *Gorm

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

func (*Gorm) Make

func (_m *Gorm) Make() (*gorm.DB, error)

Make provides a mock function with given fields:

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

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

type Initialize struct {
	mock.Mock
}

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

func (_m *Initialize) InitializeGorm(_a0 config.Config, connection string) gorm.Gorm

InitializeGorm provides a mock function with given fields: _a0, connection

func (*Initialize) InitializeQuery

func (_m *Initialize) InitializeQuery(ctx context.Context, _a1 config.Config, connection string) (orm.Query, error)

InitializeQuery provides a mock function with given fields: ctx, _a1, 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

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

func (*Initialize_InitializeGorm_Call) RunAndReturn

type Initialize_InitializeQuery_Call

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

func (*Initialize_InitializeQuery_Call) RunAndReturn

Jump to

Keyboard shortcuts

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