testing

package
v1.15.12 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) Cache added in v1.15.12

func (_m *Docker) Cache(store ...string) (docker.CacheDriver, error)

Cache provides a mock function with given fields: store

func (*Docker) Database

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

Database provides a mock function with given fields: connection

func (*Docker) EXPECT

func (_m *Docker) EXPECT() *Docker_Expecter

func (*Docker) Image added in v1.15.12

func (_m *Docker) Image(image docker.Image) docker.ImageDriver

Image provides a mock function with given fields: image

type Docker_Cache_Call added in v1.15.12

type Docker_Cache_Call struct {
	*mock.Call
}

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

func (*Docker_Cache_Call) Return added in v1.15.12

func (*Docker_Cache_Call) Run added in v1.15.12

func (_c *Docker_Cache_Call) Run(run func(store ...string)) *Docker_Cache_Call

func (*Docker_Cache_Call) RunAndReturn added in v1.15.12

func (_c *Docker_Cache_Call) RunAndReturn(run func(...string) (docker.CacheDriver, error)) *Docker_Cache_Call

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) (docker.Database, error)) *Docker_Database_Call

type Docker_Expecter

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

func (*Docker_Expecter) Cache added in v1.15.12

func (_e *Docker_Expecter) Cache(store ...interface{}) *Docker_Cache_Call

Cache is a helper method to define mock.On call

  • store ...string

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

func (*Docker_Expecter) Image added in v1.15.12

func (_e *Docker_Expecter) Image(image interface{}) *Docker_Image_Call

Image is a helper method to define mock.On call

  • image docker.Image

type Docker_Image_Call added in v1.15.12

type Docker_Image_Call struct {
	*mock.Call
}

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

func (*Docker_Image_Call) Return added in v1.15.12

func (*Docker_Image_Call) Run added in v1.15.12

func (_c *Docker_Image_Call) Run(run func(image docker.Image)) *Docker_Image_Call

func (*Docker_Image_Call) RunAndReturn added in v1.15.12

func (_c *Docker_Image_Call) RunAndReturn(run func(docker.Image) docker.ImageDriver) *Docker_Image_Call

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 no 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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