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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TempPaths

type TempPaths struct {
	mock.Mock
}

TempPaths is an autogenerated mock type for the TempPaths type

func NewTempPaths

func NewTempPaths(t interface {
	mock.TestingT
	Cleanup(func())
}) *TempPaths

NewTempPaths creates a new instance of TempPaths. 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 (*TempPaths) Add

func (_mock *TempPaths) Add(key string, value string)

Add provides a mock function for the type TempPaths

func (*TempPaths) EXPECT

func (_m *TempPaths) EXPECT() *TempPaths_Expecter

func (*TempPaths) GetPath

func (_mock *TempPaths) GetPath(key string) (string, error)

GetPath provides a mock function for the type TempPaths

func (*TempPaths) GetPathIfExists

func (_mock *TempPaths) GetPathIfExists(key string) string

GetPathIfExists provides a mock function for the type TempPaths

func (*TempPaths) GetPaths

func (_mock *TempPaths) GetPaths() map[string]string

GetPaths provides a mock function for the type TempPaths

type TempPaths_Add_Call

type TempPaths_Add_Call struct {
	*mock.Call
}

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

func (*TempPaths_Add_Call) Return

func (_c *TempPaths_Add_Call) Return() *TempPaths_Add_Call

func (*TempPaths_Add_Call) Run

func (_c *TempPaths_Add_Call) Run(run func(key string, value string)) *TempPaths_Add_Call

func (*TempPaths_Add_Call) RunAndReturn

func (_c *TempPaths_Add_Call) RunAndReturn(run func(key string, value string)) *TempPaths_Add_Call

type TempPaths_Expecter

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

func (*TempPaths_Expecter) Add

func (_e *TempPaths_Expecter) Add(key any, value any) *TempPaths_Add_Call

Add is a helper method to define mock.On call

  • key string
  • value string

func (*TempPaths_Expecter) GetPath

func (_e *TempPaths_Expecter) GetPath(key any) *TempPaths_GetPath_Call

GetPath is a helper method to define mock.On call

  • key string

func (*TempPaths_Expecter) GetPathIfExists

func (_e *TempPaths_Expecter) GetPathIfExists(key any) *TempPaths_GetPathIfExists_Call

GetPathIfExists is a helper method to define mock.On call

  • key string

func (*TempPaths_Expecter) GetPaths

GetPaths is a helper method to define mock.On call

type TempPaths_GetPathIfExists_Call

type TempPaths_GetPathIfExists_Call struct {
	*mock.Call
}

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

func (*TempPaths_GetPathIfExists_Call) Return

func (*TempPaths_GetPathIfExists_Call) Run

func (*TempPaths_GetPathIfExists_Call) RunAndReturn

type TempPaths_GetPath_Call

type TempPaths_GetPath_Call struct {
	*mock.Call
}

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

func (*TempPaths_GetPath_Call) Return

func (*TempPaths_GetPath_Call) Run

func (_c *TempPaths_GetPath_Call) Run(run func(key string)) *TempPaths_GetPath_Call

func (*TempPaths_GetPath_Call) RunAndReturn

func (_c *TempPaths_GetPath_Call) RunAndReturn(run func(key string) (string, error)) *TempPaths_GetPath_Call

type TempPaths_GetPaths_Call

type TempPaths_GetPaths_Call struct {
	*mock.Call
}

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

func (*TempPaths_GetPaths_Call) Return

func (_c *TempPaths_GetPaths_Call) Return(stringToString map[string]string) *TempPaths_GetPaths_Call

func (*TempPaths_GetPaths_Call) Run

func (_c *TempPaths_GetPaths_Call) Run(run func()) *TempPaths_GetPaths_Call

func (*TempPaths_GetPaths_Call) RunAndReturn

func (_c *TempPaths_GetPaths_Call) RunAndReturn(run func() map[string]string) *TempPaths_GetPaths_Call

Jump to

Keyboard shortcuts

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