mocks

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 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 ResourceRewriter

type ResourceRewriter struct {
	mock.Mock
}

ResourceRewriter is an autogenerated mock type for the ResourceRewriter type

func NewResourceRewriter

func NewResourceRewriter(t mockConstructorTestingTNewResourceRewriter) *ResourceRewriter

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

func (*ResourceRewriter) BeforeImport

func (_m *ResourceRewriter) BeforeImport(u *unstructured.Unstructured) error

BeforeImport provides a mock function with given fields: u

func (*ResourceRewriter) BeforeServing

func (_m *ResourceRewriter) BeforeServing(u *unstructured.Unstructured) error

BeforeServing provides a mock function with given fields: u

func (*ResourceRewriter) EXPECT

type ResourceRewriter_BeforeImport_Call

type ResourceRewriter_BeforeImport_Call struct {
	*mock.Call
}

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

func (*ResourceRewriter_BeforeImport_Call) Return

func (*ResourceRewriter_BeforeImport_Call) Run

func (*ResourceRewriter_BeforeImport_Call) RunAndReturn

type ResourceRewriter_BeforeServing_Call

type ResourceRewriter_BeforeServing_Call struct {
	*mock.Call
}

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

func (*ResourceRewriter_BeforeServing_Call) Return

func (*ResourceRewriter_BeforeServing_Call) Run

func (*ResourceRewriter_BeforeServing_Call) RunAndReturn

type ResourceRewriter_Expecter

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

func (*ResourceRewriter_Expecter) BeforeImport

func (_e *ResourceRewriter_Expecter) BeforeImport(u interface{}) *ResourceRewriter_BeforeImport_Call

BeforeImport is a helper method to define mock.On call

  • u *unstructured.Unstructured

func (*ResourceRewriter_Expecter) BeforeServing

func (_e *ResourceRewriter_Expecter) BeforeServing(u interface{}) *ResourceRewriter_BeforeServing_Call

BeforeServing is a helper method to define mock.On call

  • u *unstructured.Unstructured

Jump to

Keyboard shortcuts

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