mocks

package
v1.8.9 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 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 Renderer

type Renderer struct {
	mock.Mock
}

Renderer is an autogenerated mock type for the Renderer type

func NewRenderer

func NewRenderer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Renderer

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

func (_m *Renderer) EXPECT() *Renderer_Expecter

func (*Renderer) RenderTemplateParams

func (_mock *Renderer) RenderTemplateParams(tmpl *v1alpha1.Application, syncPolicy *v1alpha1.ApplicationSetSyncPolicy, params map[string]any, useGoTemplate bool, goTemplateOptions []string) (*v1alpha1.Application, error)

RenderTemplateParams provides a mock function for the type Renderer

func (*Renderer) Replace

func (_mock *Renderer) Replace(tmpl string, replaceMap map[string]any, useGoTemplate bool, goTemplateOptions []string) (string, error)

Replace provides a mock function for the type Renderer

type Renderer_Expecter

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

func (*Renderer_Expecter) RenderTemplateParams

func (_e *Renderer_Expecter) RenderTemplateParams(tmpl any, syncPolicy any, params any, useGoTemplate any, goTemplateOptions any) *Renderer_RenderTemplateParams_Call

RenderTemplateParams is a helper method to define mock.On call

  • tmpl *v1alpha1.Application
  • syncPolicy *v1alpha1.ApplicationSetSyncPolicy
  • params map[string]any
  • useGoTemplate bool
  • goTemplateOptions []string

func (*Renderer_Expecter) Replace

func (_e *Renderer_Expecter) Replace(tmpl any, replaceMap any, useGoTemplate any, goTemplateOptions any) *Renderer_Replace_Call

Replace is a helper method to define mock.On call

  • tmpl string
  • replaceMap map[string]any
  • useGoTemplate bool
  • goTemplateOptions []string

type Renderer_RenderTemplateParams_Call

type Renderer_RenderTemplateParams_Call struct {
	*mock.Call
}

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

func (*Renderer_RenderTemplateParams_Call) Return

func (*Renderer_RenderTemplateParams_Call) Run

func (_c *Renderer_RenderTemplateParams_Call) Run(run func(tmpl *v1alpha1.Application, syncPolicy *v1alpha1.ApplicationSetSyncPolicy, params map[string]any, useGoTemplate bool, goTemplateOptions []string)) *Renderer_RenderTemplateParams_Call

func (*Renderer_RenderTemplateParams_Call) RunAndReturn

func (_c *Renderer_RenderTemplateParams_Call) RunAndReturn(run func(tmpl *v1alpha1.Application, syncPolicy *v1alpha1.ApplicationSetSyncPolicy, params map[string]any, useGoTemplate bool, goTemplateOptions []string) (*v1alpha1.Application, error)) *Renderer_RenderTemplateParams_Call

type Renderer_Replace_Call

type Renderer_Replace_Call struct {
	*mock.Call
}

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

func (*Renderer_Replace_Call) Return

func (*Renderer_Replace_Call) Run

func (_c *Renderer_Replace_Call) Run(run func(tmpl string, replaceMap map[string]any, useGoTemplate bool, goTemplateOptions []string)) *Renderer_Replace_Call

func (*Renderer_Replace_Call) RunAndReturn

func (_c *Renderer_Replace_Call) RunAndReturn(run func(tmpl string, replaceMap map[string]any, useGoTemplate bool, goTemplateOptions []string) (string, error)) *Renderer_Replace_Call

Jump to

Keyboard shortcuts

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