mocks

package
v0.0.0-...-cb886e6 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: GPL-3.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 Transformer

type Transformer struct {
	mock.Mock
}

Transformer is an autogenerated mock type for the Transformer type

func NewTransformer

func NewTransformer(t mockConstructorTestingTNewTransformer) *Transformer

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

func (*Transformer) EXPECT

func (_m *Transformer) EXPECT() *Transformer_Expecter

func (*Transformer) Transform

func (_m *Transformer) Transform(ctx context.Context, namespace string) (*cluster.ClusterEnv, *transformer.Environment, error)

Transform provides a mock function with given fields: ctx, namespace

type Transformer_Expecter

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

func (*Transformer_Expecter) Transform

func (_e *Transformer_Expecter) Transform(ctx interface{}, namespace interface{}) *Transformer_Transform_Call

Transform is a helper method to define mock.On call

  • ctx context.Context
  • namespace string

type Transformer_Transform_Call

type Transformer_Transform_Call struct {
	*mock.Call
}

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

func (*Transformer_Transform_Call) Return

func (*Transformer_Transform_Call) Run

func (_c *Transformer_Transform_Call) Run(run func(ctx context.Context, namespace string)) *Transformer_Transform_Call

func (*Transformer_Transform_Call) RunAndReturn

Jump to

Keyboard shortcuts

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