migration

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blueprint

type Blueprint struct {
	mock.Mock
}

Blueprint is an autogenerated mock type for the Blueprint type

func NewBlueprint

func NewBlueprint(t interface {
	mock.TestingT
	Cleanup(func())
}) *Blueprint

NewBlueprint creates a new instance of Blueprint. 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 (*Blueprint) EXPECT

func (_m *Blueprint) EXPECT() *Blueprint_Expecter

type Blueprint_Expecter

type Blueprint_Expecter struct {
	// contains filtered or unexported fields
}

type Driver

type Driver struct {
	mock.Mock
}

Driver is an autogenerated mock type for the Driver type

func NewDriver

func NewDriver(t interface {
	mock.TestingT
	Cleanup(func())
}) *Driver

NewDriver creates a new instance of Driver. 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 (*Driver) Create

func (_m *Driver) Create(name string) error

Create provides a mock function with given fields: name

func (*Driver) EXPECT

func (_m *Driver) EXPECT() *Driver_Expecter

type Driver_Create_Call

type Driver_Create_Call struct {
	*mock.Call
}

Driver_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*Driver_Create_Call) Return

func (_c *Driver_Create_Call) Return(_a0 error) *Driver_Create_Call

func (*Driver_Create_Call) Run

func (_c *Driver_Create_Call) Run(run func(name string)) *Driver_Create_Call

func (*Driver_Create_Call) RunAndReturn

func (_c *Driver_Create_Call) RunAndReturn(run func(string) error) *Driver_Create_Call

type Driver_Expecter

type Driver_Expecter struct {
	// contains filtered or unexported fields
}

func (*Driver_Expecter) Create

func (_e *Driver_Expecter) Create(name interface{}) *Driver_Create_Call

Create is a helper method to define mock.On call

  • name string

type Migration

type Migration struct {
	mock.Mock
}

Migration is an autogenerated mock type for the Migration type

func NewMigration

func NewMigration(t interface {
	mock.TestingT
	Cleanup(func())
}) *Migration

NewMigration creates a new instance of Migration. 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 (*Migration) Connection

func (_m *Migration) Connection() string

Connection provides a mock function with given fields:

func (*Migration) Down

func (_m *Migration) Down()

Down provides a mock function with given fields:

func (*Migration) EXPECT

func (_m *Migration) EXPECT() *Migration_Expecter

func (*Migration) Signature

func (_m *Migration) Signature() string

Signature provides a mock function with given fields:

func (*Migration) Up

func (_m *Migration) Up()

Up provides a mock function with given fields:

type Migration_Connection_Call

type Migration_Connection_Call struct {
	*mock.Call
}

Migration_Connection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Connection'

func (*Migration_Connection_Call) Return

func (*Migration_Connection_Call) Run

func (*Migration_Connection_Call) RunAndReturn

func (_c *Migration_Connection_Call) RunAndReturn(run func() string) *Migration_Connection_Call

type Migration_Down_Call

type Migration_Down_Call struct {
	*mock.Call
}

Migration_Down_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Down'

func (*Migration_Down_Call) Return

func (*Migration_Down_Call) Run

func (_c *Migration_Down_Call) Run(run func()) *Migration_Down_Call

func (*Migration_Down_Call) RunAndReturn

func (_c *Migration_Down_Call) RunAndReturn(run func()) *Migration_Down_Call

type Migration_Expecter

type Migration_Expecter struct {
	// contains filtered or unexported fields
}

func (*Migration_Expecter) Connection

Connection is a helper method to define mock.On call

func (*Migration_Expecter) Down

Down is a helper method to define mock.On call

func (*Migration_Expecter) Signature

Signature is a helper method to define mock.On call

func (*Migration_Expecter) Up

Up is a helper method to define mock.On call

type Migration_Signature_Call

type Migration_Signature_Call struct {
	*mock.Call
}

Migration_Signature_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Signature'

func (*Migration_Signature_Call) Return

func (*Migration_Signature_Call) Run

func (*Migration_Signature_Call) RunAndReturn

func (_c *Migration_Signature_Call) RunAndReturn(run func() string) *Migration_Signature_Call

type Migration_Up_Call

type Migration_Up_Call struct {
	*mock.Call
}

Migration_Up_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Up'

func (*Migration_Up_Call) Return

func (_c *Migration_Up_Call) Return() *Migration_Up_Call

func (*Migration_Up_Call) Run

func (_c *Migration_Up_Call) Run(run func()) *Migration_Up_Call

func (*Migration_Up_Call) RunAndReturn

func (_c *Migration_Up_Call) RunAndReturn(run func()) *Migration_Up_Call

type Schema

type Schema struct {
	mock.Mock
}

Schema is an autogenerated mock type for the Schema type

func NewSchema

func NewSchema(t interface {
	mock.TestingT
	Cleanup(func())
}) *Schema

NewSchema creates a new instance of Schema. 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 (*Schema) Connection

func (_m *Schema) Connection(name string) migration.Schema

Connection provides a mock function with given fields: name

func (*Schema) EXPECT

func (_m *Schema) EXPECT() *Schema_Expecter

func (*Schema) Register

func (_m *Schema) Register(_a0 []migration.Migration)

Register provides a mock function with given fields: _a0

func (*Schema) Sql

func (_m *Schema) Sql(sql string)

Sql provides a mock function with given fields: sql

type Schema_Connection_Call

type Schema_Connection_Call struct {
	*mock.Call
}

Schema_Connection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Connection'

func (*Schema_Connection_Call) Return

func (*Schema_Connection_Call) Run

func (_c *Schema_Connection_Call) Run(run func(name string)) *Schema_Connection_Call

func (*Schema_Connection_Call) RunAndReturn

type Schema_Expecter

type Schema_Expecter struct {
	// contains filtered or unexported fields
}

func (*Schema_Expecter) Connection

func (_e *Schema_Expecter) Connection(name interface{}) *Schema_Connection_Call

Connection is a helper method to define mock.On call

  • name string

func (*Schema_Expecter) Register

func (_e *Schema_Expecter) Register(_a0 interface{}) *Schema_Register_Call

Register is a helper method to define mock.On call

  • _a0 []migration.Migration

func (*Schema_Expecter) Sql

func (_e *Schema_Expecter) Sql(sql interface{}) *Schema_Sql_Call

Sql is a helper method to define mock.On call

  • sql string

type Schema_Register_Call

type Schema_Register_Call struct {
	*mock.Call
}

Schema_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'

func (*Schema_Register_Call) Return

func (*Schema_Register_Call) Run

func (*Schema_Register_Call) RunAndReturn

func (_c *Schema_Register_Call) RunAndReturn(run func([]migration.Migration)) *Schema_Register_Call

type Schema_Sql_Call

type Schema_Sql_Call struct {
	*mock.Call
}

Schema_Sql_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sql'

func (*Schema_Sql_Call) Return

func (_c *Schema_Sql_Call) Return() *Schema_Sql_Call

func (*Schema_Sql_Call) Run

func (_c *Schema_Sql_Call) Run(run func(sql string)) *Schema_Sql_Call

func (*Schema_Sql_Call) RunAndReturn

func (_c *Schema_Sql_Call) RunAndReturn(run func(string)) *Schema_Sql_Call

Jump to

Keyboard shortcuts

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