mocks

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 2 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Provider) EXPECT

func (_m *Provider) EXPECT() *Provider_Expecter

func (*Provider) GetConfig

func (_m *Provider) GetConfig() (*rest.Config, error)

GetConfig provides a mock function with given fields:

type Provider_Expecter

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

func (*Provider_Expecter) GetConfig

func (_e *Provider_Expecter) GetConfig() *Provider_GetConfig_Call

GetConfig is a helper method to define mock.On call

type Provider_GetConfig_Call

type Provider_GetConfig_Call struct {
	*mock.Call
}

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

func (*Provider_GetConfig_Call) Return

func (*Provider_GetConfig_Call) Run

func (_c *Provider_GetConfig_Call) Run(run func()) *Provider_GetConfig_Call

func (*Provider_GetConfig_Call) RunAndReturn

func (_c *Provider_GetConfig_Call) RunAndReturn(run func() (*rest.Config, error)) *Provider_GetConfig_Call

Jump to

Keyboard shortcuts

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