Documentation ¶
Index ¶
- type Database
- type DatabaseDriver
- func (_m *DatabaseDriver) Build() error
- func (_m *DatabaseDriver) Config() testing.DatabaseConfig
- func (_m *DatabaseDriver) EXPECT() *DatabaseDriver_Expecter
- func (_m *DatabaseDriver) Fresh() error
- func (_m *DatabaseDriver) Image(image testing.Image)
- func (_m *DatabaseDriver) Name() orm.Driver
- func (_m *DatabaseDriver) Stop() error
- type DatabaseDriver_Build_Call
- type DatabaseDriver_Config_Call
- type DatabaseDriver_Expecter
- func (_e *DatabaseDriver_Expecter) Build() *DatabaseDriver_Build_Call
- func (_e *DatabaseDriver_Expecter) Config() *DatabaseDriver_Config_Call
- func (_e *DatabaseDriver_Expecter) Fresh() *DatabaseDriver_Fresh_Call
- func (_e *DatabaseDriver_Expecter) Image(image interface{}) *DatabaseDriver_Image_Call
- func (_e *DatabaseDriver_Expecter) Name() *DatabaseDriver_Name_Call
- func (_e *DatabaseDriver_Expecter) Stop() *DatabaseDriver_Stop_Call
- type DatabaseDriver_Fresh_Call
- type DatabaseDriver_Image_Call
- type DatabaseDriver_Name_Call
- type DatabaseDriver_Stop_Call
- type Database_Build_Call
- type Database_Clear_Call
- type Database_Config_Call
- type Database_Expecter
- func (_e *Database_Expecter) Build() *Database_Build_Call
- func (_e *Database_Expecter) Clear() *Database_Clear_Call
- func (_e *Database_Expecter) Config() *Database_Config_Call
- func (_e *Database_Expecter) Image(_a0 interface{}) *Database_Image_Call
- func (_e *Database_Expecter) Seed(seeds ...interface{}) *Database_Seed_Call
- func (_e *Database_Expecter) Stop() *Database_Stop_Call
- type Database_Image_Call
- type Database_Seed_Call
- type Database_Stop_Call
- type Docker
- type Docker_Database_Call
- type Docker_Expecter
- type Testing
- type Testing_Docker_Call
- type Testing_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
Database is an autogenerated mock type for the Database type
func NewDatabase ¶
NewDatabase creates a new instance of Database. 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 (*Database) Config ¶
func (_m *Database) Config() testing.DatabaseConfig
Config provides a mock function with given fields:
func (*Database) EXPECT ¶
func (_m *Database) EXPECT() *Database_Expecter
type DatabaseDriver ¶
DatabaseDriver is an autogenerated mock type for the DatabaseDriver type
func NewDatabaseDriver ¶
func NewDatabaseDriver(t interface { mock.TestingT Cleanup(func()) }) *DatabaseDriver
NewDatabaseDriver creates a new instance of DatabaseDriver. 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 (*DatabaseDriver) Build ¶
func (_m *DatabaseDriver) Build() error
Build provides a mock function with given fields:
func (*DatabaseDriver) Config ¶
func (_m *DatabaseDriver) Config() testing.DatabaseConfig
Config provides a mock function with given fields:
func (*DatabaseDriver) EXPECT ¶
func (_m *DatabaseDriver) EXPECT() *DatabaseDriver_Expecter
func (*DatabaseDriver) Fresh ¶
func (_m *DatabaseDriver) Fresh() error
Fresh provides a mock function with given fields:
func (*DatabaseDriver) Image ¶
func (_m *DatabaseDriver) Image(image testing.Image)
Image provides a mock function with given fields: image
func (*DatabaseDriver) Name ¶
func (_m *DatabaseDriver) Name() orm.Driver
Name provides a mock function with given fields:
func (*DatabaseDriver) Stop ¶
func (_m *DatabaseDriver) Stop() error
Stop provides a mock function with given fields:
type DatabaseDriver_Build_Call ¶
DatabaseDriver_Build_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Build'
func (*DatabaseDriver_Build_Call) Return ¶
func (_c *DatabaseDriver_Build_Call) Return(_a0 error) *DatabaseDriver_Build_Call
func (*DatabaseDriver_Build_Call) Run ¶
func (_c *DatabaseDriver_Build_Call) Run(run func()) *DatabaseDriver_Build_Call
func (*DatabaseDriver_Build_Call) RunAndReturn ¶
func (_c *DatabaseDriver_Build_Call) RunAndReturn(run func() error) *DatabaseDriver_Build_Call
type DatabaseDriver_Config_Call ¶
DatabaseDriver_Config_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Config'
func (*DatabaseDriver_Config_Call) Return ¶
func (_c *DatabaseDriver_Config_Call) Return(_a0 testing.DatabaseConfig) *DatabaseDriver_Config_Call
func (*DatabaseDriver_Config_Call) Run ¶
func (_c *DatabaseDriver_Config_Call) Run(run func()) *DatabaseDriver_Config_Call
func (*DatabaseDriver_Config_Call) RunAndReturn ¶
func (_c *DatabaseDriver_Config_Call) RunAndReturn(run func() testing.DatabaseConfig) *DatabaseDriver_Config_Call
type DatabaseDriver_Expecter ¶
type DatabaseDriver_Expecter struct {
// contains filtered or unexported fields
}
func (*DatabaseDriver_Expecter) Build ¶
func (_e *DatabaseDriver_Expecter) Build() *DatabaseDriver_Build_Call
Build is a helper method to define mock.On call
func (*DatabaseDriver_Expecter) Config ¶
func (_e *DatabaseDriver_Expecter) Config() *DatabaseDriver_Config_Call
Config is a helper method to define mock.On call
func (*DatabaseDriver_Expecter) Fresh ¶
func (_e *DatabaseDriver_Expecter) Fresh() *DatabaseDriver_Fresh_Call
Fresh is a helper method to define mock.On call
func (*DatabaseDriver_Expecter) Image ¶
func (_e *DatabaseDriver_Expecter) Image(image interface{}) *DatabaseDriver_Image_Call
Image is a helper method to define mock.On call
- image testing.Image
func (*DatabaseDriver_Expecter) Name ¶
func (_e *DatabaseDriver_Expecter) Name() *DatabaseDriver_Name_Call
Name is a helper method to define mock.On call
func (*DatabaseDriver_Expecter) Stop ¶
func (_e *DatabaseDriver_Expecter) Stop() *DatabaseDriver_Stop_Call
Stop is a helper method to define mock.On call
type DatabaseDriver_Fresh_Call ¶
DatabaseDriver_Fresh_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Fresh'
func (*DatabaseDriver_Fresh_Call) Return ¶
func (_c *DatabaseDriver_Fresh_Call) Return(_a0 error) *DatabaseDriver_Fresh_Call
func (*DatabaseDriver_Fresh_Call) Run ¶
func (_c *DatabaseDriver_Fresh_Call) Run(run func()) *DatabaseDriver_Fresh_Call
func (*DatabaseDriver_Fresh_Call) RunAndReturn ¶
func (_c *DatabaseDriver_Fresh_Call) RunAndReturn(run func() error) *DatabaseDriver_Fresh_Call
type DatabaseDriver_Image_Call ¶
DatabaseDriver_Image_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Image'
func (*DatabaseDriver_Image_Call) Return ¶
func (_c *DatabaseDriver_Image_Call) Return() *DatabaseDriver_Image_Call
func (*DatabaseDriver_Image_Call) Run ¶
func (_c *DatabaseDriver_Image_Call) Run(run func(image testing.Image)) *DatabaseDriver_Image_Call
func (*DatabaseDriver_Image_Call) RunAndReturn ¶
func (_c *DatabaseDriver_Image_Call) RunAndReturn(run func(testing.Image)) *DatabaseDriver_Image_Call
type DatabaseDriver_Name_Call ¶
DatabaseDriver_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
func (*DatabaseDriver_Name_Call) Return ¶
func (_c *DatabaseDriver_Name_Call) Return(_a0 orm.Driver) *DatabaseDriver_Name_Call
func (*DatabaseDriver_Name_Call) Run ¶
func (_c *DatabaseDriver_Name_Call) Run(run func()) *DatabaseDriver_Name_Call
func (*DatabaseDriver_Name_Call) RunAndReturn ¶
func (_c *DatabaseDriver_Name_Call) RunAndReturn(run func() orm.Driver) *DatabaseDriver_Name_Call
type DatabaseDriver_Stop_Call ¶
DatabaseDriver_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*DatabaseDriver_Stop_Call) Return ¶
func (_c *DatabaseDriver_Stop_Call) Return(_a0 error) *DatabaseDriver_Stop_Call
func (*DatabaseDriver_Stop_Call) Run ¶
func (_c *DatabaseDriver_Stop_Call) Run(run func()) *DatabaseDriver_Stop_Call
func (*DatabaseDriver_Stop_Call) RunAndReturn ¶
func (_c *DatabaseDriver_Stop_Call) RunAndReturn(run func() error) *DatabaseDriver_Stop_Call
type Database_Build_Call ¶
Database_Build_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Build'
func (*Database_Build_Call) Return ¶
func (_c *Database_Build_Call) Return(_a0 error) *Database_Build_Call
func (*Database_Build_Call) Run ¶
func (_c *Database_Build_Call) Run(run func()) *Database_Build_Call
func (*Database_Build_Call) RunAndReturn ¶
func (_c *Database_Build_Call) RunAndReturn(run func() error) *Database_Build_Call
type Database_Clear_Call ¶
Database_Clear_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clear'
func (*Database_Clear_Call) Return ¶
func (_c *Database_Clear_Call) Return(_a0 error) *Database_Clear_Call
func (*Database_Clear_Call) Run ¶
func (_c *Database_Clear_Call) Run(run func()) *Database_Clear_Call
func (*Database_Clear_Call) RunAndReturn ¶
func (_c *Database_Clear_Call) RunAndReturn(run func() error) *Database_Clear_Call
type Database_Config_Call ¶
Database_Config_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Config'
func (*Database_Config_Call) Return ¶
func (_c *Database_Config_Call) Return(_a0 testing.DatabaseConfig) *Database_Config_Call
func (*Database_Config_Call) Run ¶
func (_c *Database_Config_Call) Run(run func()) *Database_Config_Call
func (*Database_Config_Call) RunAndReturn ¶
func (_c *Database_Config_Call) RunAndReturn(run func() testing.DatabaseConfig) *Database_Config_Call
type Database_Expecter ¶
type Database_Expecter struct {
// contains filtered or unexported fields
}
func (*Database_Expecter) Build ¶
func (_e *Database_Expecter) Build() *Database_Build_Call
Build is a helper method to define mock.On call
func (*Database_Expecter) Clear ¶
func (_e *Database_Expecter) Clear() *Database_Clear_Call
Clear is a helper method to define mock.On call
func (*Database_Expecter) Config ¶
func (_e *Database_Expecter) Config() *Database_Config_Call
Config is a helper method to define mock.On call
func (*Database_Expecter) Image ¶
func (_e *Database_Expecter) Image(_a0 interface{}) *Database_Image_Call
Image is a helper method to define mock.On call
- _a0 testing.Image
func (*Database_Expecter) Seed ¶
func (_e *Database_Expecter) Seed(seeds ...interface{}) *Database_Seed_Call
Seed is a helper method to define mock.On call
- seeds ...seeder.Seeder
func (*Database_Expecter) Stop ¶
func (_e *Database_Expecter) Stop() *Database_Stop_Call
Stop is a helper method to define mock.On call
type Database_Image_Call ¶
Database_Image_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Image'
func (*Database_Image_Call) Return ¶
func (_c *Database_Image_Call) Return() *Database_Image_Call
func (*Database_Image_Call) Run ¶
func (_c *Database_Image_Call) Run(run func(_a0 testing.Image)) *Database_Image_Call
func (*Database_Image_Call) RunAndReturn ¶
func (_c *Database_Image_Call) RunAndReturn(run func(testing.Image)) *Database_Image_Call
type Database_Seed_Call ¶
Database_Seed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Seed'
func (*Database_Seed_Call) Return ¶
func (_c *Database_Seed_Call) Return() *Database_Seed_Call
func (*Database_Seed_Call) Run ¶
func (_c *Database_Seed_Call) Run(run func(seeds ...seeder.Seeder)) *Database_Seed_Call
func (*Database_Seed_Call) RunAndReturn ¶
func (_c *Database_Seed_Call) RunAndReturn(run func(...seeder.Seeder)) *Database_Seed_Call
type Database_Stop_Call ¶
Database_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*Database_Stop_Call) Return ¶
func (_c *Database_Stop_Call) Return(_a0 error) *Database_Stop_Call
func (*Database_Stop_Call) Run ¶
func (_c *Database_Stop_Call) Run(run func()) *Database_Stop_Call
func (*Database_Stop_Call) RunAndReturn ¶
func (_c *Database_Stop_Call) RunAndReturn(run func() error) *Database_Stop_Call
type Docker ¶
Docker is an autogenerated mock type for the Docker type
func NewDocker ¶
NewDocker creates a new instance of Docker. 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 (*Docker) EXPECT ¶
func (_m *Docker) EXPECT() *Docker_Expecter
type Docker_Database_Call ¶
Docker_Database_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Database'
func (*Docker_Database_Call) Return ¶
func (_c *Docker_Database_Call) Return(_a0 testing.Database, _a1 error) *Docker_Database_Call
func (*Docker_Database_Call) Run ¶
func (_c *Docker_Database_Call) Run(run func(connection ...string)) *Docker_Database_Call
func (*Docker_Database_Call) RunAndReturn ¶
func (_c *Docker_Database_Call) RunAndReturn(run func(...string) (testing.Database, error)) *Docker_Database_Call
type Docker_Expecter ¶
type Docker_Expecter struct {
// contains filtered or unexported fields
}
func (*Docker_Expecter) Database ¶
func (_e *Docker_Expecter) Database(connection ...interface{}) *Docker_Database_Call
Database is a helper method to define mock.On call
- connection ...string
type Testing ¶
Testing is an autogenerated mock type for the Testing type
func NewTesting ¶
NewTesting creates a new instance of Testing. 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 (*Testing) EXPECT ¶
func (_m *Testing) EXPECT() *Testing_Expecter
type Testing_Docker_Call ¶
Testing_Docker_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Docker'
func (*Testing_Docker_Call) Return ¶
func (_c *Testing_Docker_Call) Return(_a0 testing.Docker) *Testing_Docker_Call
func (*Testing_Docker_Call) Run ¶
func (_c *Testing_Docker_Call) Run(run func()) *Testing_Docker_Call
func (*Testing_Docker_Call) RunAndReturn ¶
func (_c *Testing_Docker_Call) RunAndReturn(run func() testing.Docker) *Testing_Docker_Call
type Testing_Expecter ¶
type Testing_Expecter struct {
// contains filtered or unexported fields
}
func (*Testing_Expecter) Docker ¶
func (_e *Testing_Expecter) Docker() *Testing_Docker_Call
Docker is a helper method to define mock.On call