mocks

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 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 Builder

type Builder struct {
	mock.Mock
}

Builder is an autogenerated mock type for the Builder type

func NewBuilder

func NewBuilder(t interface {
	mock.TestingT
	Cleanup(func())
}) *Builder

NewBuilder creates a new instance of Builder. 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 (*Builder) Build

func (_m *Builder) Build() (dynatrace.Client, error)

Build provides a mock function with given fields:

func (*Builder) BuildWithTokenVerification

func (_m *Builder) BuildWithTokenVerification(dynaKubeStatus *dynakube.DynaKubeStatus) (dynatrace.Client, error)

BuildWithTokenVerification provides a mock function with given fields: dynaKubeStatus

func (*Builder) EXPECT

func (_m *Builder) EXPECT() *Builder_Expecter

func (*Builder) SetContext

func (_m *Builder) SetContext(ctx context.Context) dynatraceclient.Builder

SetContext provides a mock function with given fields: ctx

func (*Builder) SetDynakube

func (_m *Builder) SetDynakube(_a0 dynakube.DynaKube) dynatraceclient.Builder

SetDynakube provides a mock function with given fields: _a0

func (*Builder) SetTokens

func (_m *Builder) SetTokens(tokens token.Tokens) dynatraceclient.Builder

SetTokens provides a mock function with given fields: tokens

type Builder_BuildWithTokenVerification_Call

type Builder_BuildWithTokenVerification_Call struct {
	*mock.Call
}

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

func (*Builder_BuildWithTokenVerification_Call) Return

func (*Builder_BuildWithTokenVerification_Call) Run

func (*Builder_BuildWithTokenVerification_Call) RunAndReturn

type Builder_Build_Call

type Builder_Build_Call struct {
	*mock.Call
}

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

func (*Builder_Build_Call) Return

func (*Builder_Build_Call) Run

func (_c *Builder_Build_Call) Run(run func()) *Builder_Build_Call

func (*Builder_Build_Call) RunAndReturn

func (_c *Builder_Build_Call) RunAndReturn(run func() (dynatrace.Client, error)) *Builder_Build_Call

type Builder_Expecter

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

func (*Builder_Expecter) Build

func (_e *Builder_Expecter) Build() *Builder_Build_Call

Build is a helper method to define mock.On call

func (*Builder_Expecter) BuildWithTokenVerification

func (_e *Builder_Expecter) BuildWithTokenVerification(dynaKubeStatus interface{}) *Builder_BuildWithTokenVerification_Call

BuildWithTokenVerification is a helper method to define mock.On call

  • dynaKubeStatus *dynakube.DynaKubeStatus

func (*Builder_Expecter) SetContext

func (_e *Builder_Expecter) SetContext(ctx interface{}) *Builder_SetContext_Call

SetContext is a helper method to define mock.On call

  • ctx context.Context

func (*Builder_Expecter) SetDynakube

func (_e *Builder_Expecter) SetDynakube(_a0 interface{}) *Builder_SetDynakube_Call

SetDynakube is a helper method to define mock.On call

  • _a0 dynakube.DynaKube

func (*Builder_Expecter) SetTokens

func (_e *Builder_Expecter) SetTokens(tokens interface{}) *Builder_SetTokens_Call

SetTokens is a helper method to define mock.On call

  • tokens token.Tokens

type Builder_SetContext_Call

type Builder_SetContext_Call struct {
	*mock.Call
}

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

func (*Builder_SetContext_Call) Return

func (*Builder_SetContext_Call) Run

func (*Builder_SetContext_Call) RunAndReturn

type Builder_SetDynakube_Call

type Builder_SetDynakube_Call struct {
	*mock.Call
}

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

func (*Builder_SetDynakube_Call) Return

func (*Builder_SetDynakube_Call) Run

func (*Builder_SetDynakube_Call) RunAndReturn

type Builder_SetTokens_Call

type Builder_SetTokens_Call struct {
	*mock.Call
}

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

func (*Builder_SetTokens_Call) Return

func (*Builder_SetTokens_Call) Run

func (_c *Builder_SetTokens_Call) Run(run func(tokens token.Tokens)) *Builder_SetTokens_Call

func (*Builder_SetTokens_Call) RunAndReturn

Jump to

Keyboard shortcuts

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