mocks

package
v0.15.4 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 6 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) EXPECT

func (_m *ClientMock) EXPECT() *ClientMock_Expecter

func (*ClientMock) RuleSetRepository

func (_m *ClientMock) RuleSetRepository(namespace string) v1alpha4.RuleSetRepository

RuleSetRepository provides a mock function with given fields: namespace

type ClientMock_Expecter

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

func (*ClientMock_Expecter) RuleSetRepository

func (_e *ClientMock_Expecter) RuleSetRepository(namespace interface{}) *ClientMock_RuleSetRepository_Call

RuleSetRepository is a helper method to define mock.On call

  • namespace string

type ClientMock_RuleSetRepository_Call

type ClientMock_RuleSetRepository_Call struct {
	*mock.Call
}

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

func (*ClientMock_RuleSetRepository_Call) Return

func (*ClientMock_RuleSetRepository_Call) Run

func (*ClientMock_RuleSetRepository_Call) RunAndReturn

type RuleSetRepositoryMock

type RuleSetRepositoryMock struct {
	mock.Mock
}

RuleSetRepositoryMock is an autogenerated mock type for the RuleSetRepository type

func NewRuleSetRepositoryMock

func NewRuleSetRepositoryMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuleSetRepositoryMock

NewRuleSetRepositoryMock creates a new instance of RuleSetRepositoryMock. 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 (*RuleSetRepositoryMock) EXPECT

func (*RuleSetRepositoryMock) Get

Get provides a mock function with given fields: ctx, key, opts

func (*RuleSetRepositoryMock) List

List provides a mock function with given fields: ctx, opts

func (*RuleSetRepositoryMock) PatchStatus

func (_m *RuleSetRepositoryMock) PatchStatus(ctx context.Context, patch v1alpha4.Patch, opts v1.PatchOptions) (*v1alpha4.RuleSet, error)

PatchStatus provides a mock function with given fields: ctx, patch, opts

func (*RuleSetRepositoryMock) Watch

Watch provides a mock function with given fields: ctx, opts

type RuleSetRepositoryMock_Expecter

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

func (*RuleSetRepositoryMock_Expecter) Get

func (_e *RuleSetRepositoryMock_Expecter) Get(ctx interface{}, key interface{}, opts interface{}) *RuleSetRepositoryMock_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • key types.NamespacedName
  • opts v1.GetOptions

func (*RuleSetRepositoryMock_Expecter) List

func (_e *RuleSetRepositoryMock_Expecter) List(ctx interface{}, opts interface{}) *RuleSetRepositoryMock_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • opts v1.ListOptions

func (*RuleSetRepositoryMock_Expecter) PatchStatus

func (_e *RuleSetRepositoryMock_Expecter) PatchStatus(ctx interface{}, patch interface{}, opts interface{}) *RuleSetRepositoryMock_PatchStatus_Call

PatchStatus is a helper method to define mock.On call

  • ctx context.Context
  • patch v1alpha4.Patch
  • opts v1.PatchOptions

func (*RuleSetRepositoryMock_Expecter) Watch

func (_e *RuleSetRepositoryMock_Expecter) Watch(ctx interface{}, opts interface{}) *RuleSetRepositoryMock_Watch_Call

Watch is a helper method to define mock.On call

  • ctx context.Context
  • opts v1.ListOptions

type RuleSetRepositoryMock_Get_Call

type RuleSetRepositoryMock_Get_Call struct {
	*mock.Call
}

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

func (*RuleSetRepositoryMock_Get_Call) Return

func (*RuleSetRepositoryMock_Get_Call) Run

func (*RuleSetRepositoryMock_Get_Call) RunAndReturn

type RuleSetRepositoryMock_List_Call

type RuleSetRepositoryMock_List_Call struct {
	*mock.Call
}

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

func (*RuleSetRepositoryMock_List_Call) Return

func (*RuleSetRepositoryMock_List_Call) Run

func (*RuleSetRepositoryMock_List_Call) RunAndReturn

type RuleSetRepositoryMock_PatchStatus_Call

type RuleSetRepositoryMock_PatchStatus_Call struct {
	*mock.Call
}

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

func (*RuleSetRepositoryMock_PatchStatus_Call) Return

func (*RuleSetRepositoryMock_PatchStatus_Call) Run

func (*RuleSetRepositoryMock_PatchStatus_Call) RunAndReturn

type RuleSetRepositoryMock_Watch_Call

type RuleSetRepositoryMock_Watch_Call struct {
	*mock.Call
}

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

func (*RuleSetRepositoryMock_Watch_Call) Return

func (*RuleSetRepositoryMock_Watch_Call) Run

func (*RuleSetRepositoryMock_Watch_Call) RunAndReturn

Jump to

Keyboard shortcuts

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