mocks

package
v1.0.87 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func NewProvider

func NewProvider(t mockConstructorTestingTNewProvider) *Provider

NewProvider creates a new instance of Provider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Provider) ClientSettings

func (_m *Provider) ClientSettings(_a0 ...provider.ConnectionOverride) (dbms.ClientSettings, error)

ClientSettings provides a mock function with given fields: _a0

func (*Provider) DetectDBMS

func (_m *Provider) DetectDBMS() (api.DBMS, error)

DetectDBMS provides a mock function with given fields:

func (*Provider) EXPECT

func (_m *Provider) EXPECT() *Provider_Expecter

func (*Provider) Initialize

func (_m *Provider) Initialize() error

Initialize provides a mock function with given fields:

func (*Provider) Initialized

func (_m *Provider) Initialized() (bool, error)

Initialized provides a mock function with given fields:

func (*Provider) PodSpec

PodSpec provides a mock function with given fields: _a0

type Provider_ClientSettings_Call

type Provider_ClientSettings_Call struct {
	*mock.Call
}

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

func (*Provider_ClientSettings_Call) Return

func (*Provider_ClientSettings_Call) Run

func (*Provider_ClientSettings_Call) RunAndReturn added in v1.0.73

type Provider_DetectDBMS_Call

type Provider_DetectDBMS_Call struct {
	*mock.Call
}

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

func (*Provider_DetectDBMS_Call) Return

func (*Provider_DetectDBMS_Call) Run

func (*Provider_DetectDBMS_Call) RunAndReturn added in v1.0.73

func (_c *Provider_DetectDBMS_Call) RunAndReturn(run func() (api.DBMS, error)) *Provider_DetectDBMS_Call

type Provider_Expecter

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

func (*Provider_Expecter) ClientSettings

func (_e *Provider_Expecter) ClientSettings(_a0 ...interface{}) *Provider_ClientSettings_Call

ClientSettings is a helper method to define mock.On call

  • _a0 ...provider.ConnectionOverride

func (*Provider_Expecter) DetectDBMS

func (_e *Provider_Expecter) DetectDBMS() *Provider_DetectDBMS_Call

DetectDBMS is a helper method to define mock.On call

func (*Provider_Expecter) Initialize

func (_e *Provider_Expecter) Initialize() *Provider_Initialize_Call

Initialize is a helper method to define mock.On call

func (*Provider_Expecter) Initialized

func (_e *Provider_Expecter) Initialized() *Provider_Initialized_Call

Initialized is a helper method to define mock.On call

func (*Provider_Expecter) PodSpec

func (_e *Provider_Expecter) PodSpec(_a0 ...interface{}) *Provider_PodSpec_Call

PodSpec is a helper method to define mock.On call

  • _a0 ...provider.ConnectionOverride

type Provider_Initialize_Call

type Provider_Initialize_Call struct {
	*mock.Call
}

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

func (*Provider_Initialize_Call) Return

func (*Provider_Initialize_Call) Run

func (*Provider_Initialize_Call) RunAndReturn added in v1.0.73

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

type Provider_Initialized_Call

type Provider_Initialized_Call struct {
	*mock.Call
}

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

func (*Provider_Initialized_Call) Return

func (*Provider_Initialized_Call) Run

func (*Provider_Initialized_Call) RunAndReturn added in v1.0.73

func (_c *Provider_Initialized_Call) RunAndReturn(run func() (bool, error)) *Provider_Initialized_Call

type Provider_PodSpec_Call

type Provider_PodSpec_Call struct {
	*mock.Call
}

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

func (*Provider_PodSpec_Call) Return

func (*Provider_PodSpec_Call) Run

func (*Provider_PodSpec_Call) RunAndReturn added in v1.0.73

Jump to

Keyboard shortcuts

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