Documentation
¶
Index ¶
- type Blueprint
- type Blueprint_Expecter
- type Driver
- type Driver_Create_Call
- type Driver_Expecter
- type Migration
- type Migration_Connection_Call
- type Migration_Down_Call
- type Migration_Expecter
- type Migration_Signature_Call
- type Migration_Up_Call
- type Schema
- type Schema_Connection_Call
- type Schema_Expecter
- type Schema_Register_Call
- type Schema_Sql_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blueprint ¶
Blueprint is an autogenerated mock type for the Blueprint type
func NewBlueprint ¶
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 ¶
Driver is an autogenerated mock type for the Driver type
func NewDriver ¶
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) EXPECT ¶
func (_m *Driver) EXPECT() *Driver_Expecter
type Driver_Create_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 ¶
Migration is an autogenerated mock type for the Migration type
func NewMigration ¶
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 ¶
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
type Migration_Connection_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 (_c *Migration_Connection_Call) Return(_a0 string) *Migration_Connection_Call
func (*Migration_Connection_Call) Run ¶
func (_c *Migration_Connection_Call) Run(run func()) *Migration_Connection_Call
func (*Migration_Connection_Call) RunAndReturn ¶
func (_c *Migration_Connection_Call) RunAndReturn(run func() string) *Migration_Connection_Call
type Migration_Down_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 (_c *Migration_Down_Call) Return() *Migration_Down_Call
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 ¶
func (_e *Migration_Expecter) Connection() *Migration_Connection_Call
Connection is a helper method to define mock.On call
func (*Migration_Expecter) Down ¶
func (_e *Migration_Expecter) Down() *Migration_Down_Call
Down is a helper method to define mock.On call
func (*Migration_Expecter) Signature ¶
func (_e *Migration_Expecter) Signature() *Migration_Signature_Call
Signature is a helper method to define mock.On call
func (*Migration_Expecter) Up ¶
func (_e *Migration_Expecter) Up() *Migration_Up_Call
Up is a helper method to define mock.On call
type Migration_Signature_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 (_c *Migration_Signature_Call) Return(_a0 string) *Migration_Signature_Call
func (*Migration_Signature_Call) Run ¶
func (_c *Migration_Signature_Call) Run(run func()) *Migration_Signature_Call
func (*Migration_Signature_Call) RunAndReturn ¶
func (_c *Migration_Signature_Call) RunAndReturn(run func() string) *Migration_Signature_Call
type Migration_Up_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 ¶
Schema is an autogenerated mock type for the Schema type
func NewSchema ¶
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 ¶
Connection provides a mock function with given fields: name
func (*Schema) EXPECT ¶
func (_m *Schema) EXPECT() *Schema_Expecter
type Schema_Connection_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 (_c *Schema_Connection_Call) Return(_a0 migration.Schema) *Schema_Connection_Call
func (*Schema_Connection_Call) Run ¶
func (_c *Schema_Connection_Call) Run(run func(name string)) *Schema_Connection_Call
func (*Schema_Connection_Call) RunAndReturn ¶
func (_c *Schema_Connection_Call) RunAndReturn(run func(string) migration.Schema) *Schema_Connection_Call
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 ¶
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 (_c *Schema_Register_Call) Return() *Schema_Register_Call
func (*Schema_Register_Call) Run ¶
func (_c *Schema_Register_Call) Run(run func(_a0 []migration.Migration)) *Schema_Register_Call
func (*Schema_Register_Call) RunAndReturn ¶
func (_c *Schema_Register_Call) RunAndReturn(run func([]migration.Migration)) *Schema_Register_Call
type Schema_Sql_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