mocks

package
v1.0.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 3 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) CreateManager

func (_m *Provider) CreateManager(namespace string, config *rest.Config) (manager.Manager, error)

CreateManager provides a mock function with given fields: namespace, config

func (*Provider) EXPECT

func (_m *Provider) EXPECT() *Provider_Expecter

type Provider_CreateManager_Call

type Provider_CreateManager_Call struct {
	*mock.Call
}

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

func (*Provider_CreateManager_Call) Return

func (*Provider_CreateManager_Call) Run

func (_c *Provider_CreateManager_Call) Run(run func(namespace string, config *rest.Config)) *Provider_CreateManager_Call

func (*Provider_CreateManager_Call) RunAndReturn

type Provider_Expecter

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

func (*Provider_Expecter) CreateManager

func (_e *Provider_Expecter) CreateManager(namespace interface{}, config interface{}) *Provider_CreateManager_Call

CreateManager is a helper method to define mock.On call

  • namespace string
  • config *rest.Config

Jump to

Keyboard shortcuts

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