testutils

package
v0.0.0-...-2a127b5 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientMock

type ClientMock struct {
	mock.Mock
}

ClientMock is an autogenerated mock type for the Client type

func NewClientMock

func NewClientMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClientMock

NewClientMock creates a new instance of ClientMock. 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 (*ClientMock) CreateGatewaySecret

func (_m *ClientMock) CreateGatewaySecret(ctx context.Context, secret *v1.Secret) error

CreateGatewaySecret provides a mock function with given fields: ctx, secret

func (*ClientMock) EXPECT

func (_m *ClientMock) EXPECT() *ClientMock_Expecter

func (*ClientMock) GetGatewaySecret

func (_m *ClientMock) GetGatewaySecret(ctx context.Context) (*v1.Secret, error)

GetGatewaySecret provides a mock function with given fields: ctx

func (*ClientMock) GetWatcherServingCert

func (_m *ClientMock) GetWatcherServingCert(ctx context.Context) (*certmanagerv1.Certificate, error)

GetWatcherServingCert provides a mock function with given fields: ctx

func (*ClientMock) UpdateGatewaySecret

func (_m *ClientMock) UpdateGatewaySecret(ctx context.Context, secret *v1.Secret) error

UpdateGatewaySecret provides a mock function with given fields: ctx, secret

type ClientMock_CreateGatewaySecret_Call

type ClientMock_CreateGatewaySecret_Call struct {
	*mock.Call
}

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

func (*ClientMock_CreateGatewaySecret_Call) Return

func (*ClientMock_CreateGatewaySecret_Call) Run

func (*ClientMock_CreateGatewaySecret_Call) RunAndReturn

type ClientMock_Expecter

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

func (*ClientMock_Expecter) CreateGatewaySecret

func (_e *ClientMock_Expecter) CreateGatewaySecret(ctx interface{}, secret interface{}) *ClientMock_CreateGatewaySecret_Call

CreateGatewaySecret is a helper method to define mock.On call

  • ctx context.Context
  • secret *v1.Secret

func (*ClientMock_Expecter) GetGatewaySecret

func (_e *ClientMock_Expecter) GetGatewaySecret(ctx interface{}) *ClientMock_GetGatewaySecret_Call

GetGatewaySecret is a helper method to define mock.On call

  • ctx context.Context

func (*ClientMock_Expecter) GetWatcherServingCert

func (_e *ClientMock_Expecter) GetWatcherServingCert(ctx interface{}) *ClientMock_GetWatcherServingCert_Call

GetWatcherServingCert is a helper method to define mock.On call

  • ctx context.Context

func (*ClientMock_Expecter) UpdateGatewaySecret

func (_e *ClientMock_Expecter) UpdateGatewaySecret(ctx interface{}, secret interface{}) *ClientMock_UpdateGatewaySecret_Call

UpdateGatewaySecret is a helper method to define mock.On call

  • ctx context.Context
  • secret *v1.Secret

type ClientMock_GetGatewaySecret_Call

type ClientMock_GetGatewaySecret_Call struct {
	*mock.Call
}

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

func (*ClientMock_GetGatewaySecret_Call) Return

func (*ClientMock_GetGatewaySecret_Call) Run

func (*ClientMock_GetGatewaySecret_Call) RunAndReturn

type ClientMock_GetWatcherServingCert_Call

type ClientMock_GetWatcherServingCert_Call struct {
	*mock.Call
}

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

func (*ClientMock_GetWatcherServingCert_Call) Return

func (*ClientMock_GetWatcherServingCert_Call) Run

func (*ClientMock_GetWatcherServingCert_Call) RunAndReturn

type ClientMock_UpdateGatewaySecret_Call

type ClientMock_UpdateGatewaySecret_Call struct {
	*mock.Call
}

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

func (*ClientMock_UpdateGatewaySecret_Call) Return

func (*ClientMock_UpdateGatewaySecret_Call) Run

func (*ClientMock_UpdateGatewaySecret_Call) RunAndReturn

Jump to

Keyboard shortcuts

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