mocks

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockEnvironment

type MockEnvironment struct {
	mock.Mock
}

MockEnvironment is an autogenerated mock type for the Environment type

func NewMockEnvironment

func NewMockEnvironment(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEnvironment

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

func (*MockEnvironment) Getenv

func (_mock *MockEnvironment) Getenv(key string) string

Getenv provides a mock function for the type MockEnvironment

type MockEnvironment_Expecter

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

func (*MockEnvironment_Expecter) Getenv

func (_e *MockEnvironment_Expecter) Getenv(key interface{}) *MockEnvironment_Getenv_Call

Getenv is a helper method to define mock.On call

  • key string

type MockEnvironment_Getenv_Call

type MockEnvironment_Getenv_Call struct {
	*mock.Call
}

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

func (*MockEnvironment_Getenv_Call) Return

func (*MockEnvironment_Getenv_Call) Run

func (*MockEnvironment_Getenv_Call) RunAndReturn

func (_c *MockEnvironment_Getenv_Call) RunAndReturn(run func(key string) string) *MockEnvironment_Getenv_Call

type MockFileSystem

type MockFileSystem struct {
	mock.Mock
}

MockFileSystem is an autogenerated mock type for the FileSystem type

func NewMockFileSystem

func NewMockFileSystem(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockFileSystem

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

func (*MockFileSystem) Stat

func (_mock *MockFileSystem) Stat(name string) (os.FileInfo, error)

Stat provides a mock function for the type MockFileSystem

type MockFileSystem_Expecter

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

func (*MockFileSystem_Expecter) Stat

func (_e *MockFileSystem_Expecter) Stat(name interface{}) *MockFileSystem_Stat_Call

Stat is a helper method to define mock.On call

  • name string

type MockFileSystem_Stat_Call

type MockFileSystem_Stat_Call struct {
	*mock.Call
}

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

func (*MockFileSystem_Stat_Call) Return

func (*MockFileSystem_Stat_Call) Run

func (_c *MockFileSystem_Stat_Call) Run(run func(name string)) *MockFileSystem_Stat_Call

func (*MockFileSystem_Stat_Call) RunAndReturn

func (_c *MockFileSystem_Stat_Call) RunAndReturn(run func(name string) (os.FileInfo, error)) *MockFileSystem_Stat_Call

Jump to

Keyboard shortcuts

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