testing

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	mock.Mock
}

Database is an autogenerated mock type for the Database type

func NewDatabase

func NewDatabase(t interface {
	mock.TestingT
	Cleanup(func())
}) *Database

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) Build

func (_m *Database) Build() error

Build provides a mock function with given fields:

func (*Database) Clear

func (_m *Database) Clear() error

Clear provides a mock function with given fields:

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

func (*Database) Image

func (_m *Database) Image(_a0 testing.Image)

Image provides a mock function with given fields: _a0

func (*Database) Seed

func (_m *Database) Seed(seeds ...seeder.Seeder)

Seed provides a mock function with given fields: seeds

func (*Database) Stop

func (_m *Database) Stop() error

Stop provides a mock function with given fields:

type DatabaseDriver

type DatabaseDriver struct {
	mock.Mock
}

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 (*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

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

func (*DatabaseDriver_Build_Call) RunAndReturn

func (_c *DatabaseDriver_Build_Call) RunAndReturn(run func() error) *DatabaseDriver_Build_Call

type DatabaseDriver_Config_Call

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

func (*DatabaseDriver_Config_Call) RunAndReturn

type DatabaseDriver_Expecter

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

func (*DatabaseDriver_Expecter) Build

Build is a helper method to define mock.On call

func (*DatabaseDriver_Expecter) Config

Config is a helper method to define mock.On call

func (*DatabaseDriver_Expecter) Fresh

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

Name is a helper method to define mock.On call

func (*DatabaseDriver_Expecter) Stop

Stop is a helper method to define mock.On call

type DatabaseDriver_Fresh_Call

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

func (*DatabaseDriver_Fresh_Call) RunAndReturn

func (_c *DatabaseDriver_Fresh_Call) RunAndReturn(run func() error) *DatabaseDriver_Fresh_Call

type DatabaseDriver_Image_Call

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

func (*DatabaseDriver_Image_Call) RunAndReturn

type DatabaseDriver_Name_Call

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

func (*DatabaseDriver_Name_Call) RunAndReturn

func (_c *DatabaseDriver_Name_Call) RunAndReturn(run func() orm.Driver) *DatabaseDriver_Name_Call

type DatabaseDriver_Stop_Call

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

func (*DatabaseDriver_Stop_Call) RunAndReturn

func (_c *DatabaseDriver_Stop_Call) RunAndReturn(run func() error) *DatabaseDriver_Stop_Call

type Database_Build_Call

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

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

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

Build is a helper method to define mock.On call

func (*Database_Expecter) Clear

Clear is a helper method to define mock.On call

func (*Database_Expecter) Config

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

Stop is a helper method to define mock.On call

type Database_Image_Call

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

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

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

type Docker struct {
	mock.Mock
}

Docker is an autogenerated mock type for the Docker type

func NewDocker

func NewDocker(t interface {
	mock.TestingT
	Cleanup(func())
}) *Docker

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) Database

func (_m *Docker) Database(connection ...string) (testing.Database, error)

Database provides a mock function with given fields: connection

func (*Docker) EXPECT

func (_m *Docker) EXPECT() *Docker_Expecter

type Docker_Database_Call

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

type Testing struct {
	mock.Mock
}

Testing is an autogenerated mock type for the Testing type

func NewTesting

func NewTesting(t interface {
	mock.TestingT
	Cleanup(func())
}) *Testing

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) Docker

func (_m *Testing) Docker() testing.Docker

Docker provides a mock function with given fields:

func (*Testing) EXPECT

func (_m *Testing) EXPECT() *Testing_Expecter

type Testing_Docker_Call

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

Jump to

Keyboard shortcuts

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