mocks

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDirectoryFileSystem

type MockDirectoryFileSystem struct {
	mock.Mock
}

MockDirectoryFileSystem is an autogenerated mock type for the DirectoryFileSystem type

func NewMockDirectoryFileSystem

func NewMockDirectoryFileSystem(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDirectoryFileSystem

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

func (*MockDirectoryFileSystem) MkdirAll

func (_mock *MockDirectoryFileSystem) MkdirAll(path string, perm os.FileMode) error

MkdirAll provides a mock function for the type MockDirectoryFileSystem

func (*MockDirectoryFileSystem) MkdirTemp

func (_mock *MockDirectoryFileSystem) MkdirTemp(dir string, pattern string) (string, error)

MkdirTemp provides a mock function for the type MockDirectoryFileSystem

type MockDirectoryFileSystem_Expecter

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

func (*MockDirectoryFileSystem_Expecter) MkdirAll

func (_e *MockDirectoryFileSystem_Expecter) MkdirAll(path interface{}, perm interface{}) *MockDirectoryFileSystem_MkdirAll_Call

MkdirAll is a helper method to define mock.On call

  • path string
  • perm os.FileMode

func (*MockDirectoryFileSystem_Expecter) MkdirTemp

func (_e *MockDirectoryFileSystem_Expecter) MkdirTemp(dir interface{}, pattern interface{}) *MockDirectoryFileSystem_MkdirTemp_Call

MkdirTemp is a helper method to define mock.On call

  • dir string
  • pattern string

type MockDirectoryFileSystem_MkdirAll_Call

type MockDirectoryFileSystem_MkdirAll_Call struct {
	*mock.Call
}

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

func (*MockDirectoryFileSystem_MkdirAll_Call) Return

func (*MockDirectoryFileSystem_MkdirAll_Call) Run

func (*MockDirectoryFileSystem_MkdirAll_Call) RunAndReturn

type MockDirectoryFileSystem_MkdirTemp_Call

type MockDirectoryFileSystem_MkdirTemp_Call struct {
	*mock.Call
}

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

func (*MockDirectoryFileSystem_MkdirTemp_Call) Return

func (*MockDirectoryFileSystem_MkdirTemp_Call) Run

func (*MockDirectoryFileSystem_MkdirTemp_Call) RunAndReturn

type MockLogFileSystem

type MockLogFileSystem struct {
	mock.Mock
}

MockLogFileSystem is an autogenerated mock type for the LogFileSystem type

func NewMockLogFileSystem

func NewMockLogFileSystem(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockLogFileSystem

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

func (*MockLogFileSystem) Glob

func (_mock *MockLogFileSystem) Glob(logFS fs.FS, globPattern string) ([]string, error)

Glob provides a mock function for the type MockLogFileSystem

func (*MockLogFileSystem) ReadFile

func (_mock *MockLogFileSystem) ReadFile(logFS fs.FS, logFile string) ([]byte, error)

ReadFile provides a mock function for the type MockLogFileSystem

type MockLogFileSystem_Expecter

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

func (*MockLogFileSystem_Expecter) Glob

func (_e *MockLogFileSystem_Expecter) Glob(logFS interface{}, globPattern interface{}) *MockLogFileSystem_Glob_Call

Glob is a helper method to define mock.On call

  • logFS fs.FS
  • globPattern string

func (*MockLogFileSystem_Expecter) ReadFile

func (_e *MockLogFileSystem_Expecter) ReadFile(logFS interface{}, logFile interface{}) *MockLogFileSystem_ReadFile_Call

ReadFile is a helper method to define mock.On call

  • logFS fs.FS
  • logFile string

type MockLogFileSystem_Glob_Call

type MockLogFileSystem_Glob_Call struct {
	*mock.Call
}

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

func (*MockLogFileSystem_Glob_Call) Return

func (*MockLogFileSystem_Glob_Call) Run

func (_c *MockLogFileSystem_Glob_Call) Run(run func(logFS fs.FS, globPattern string)) *MockLogFileSystem_Glob_Call

func (*MockLogFileSystem_Glob_Call) RunAndReturn

func (_c *MockLogFileSystem_Glob_Call) RunAndReturn(run func(logFS fs.FS, globPattern string) ([]string, error)) *MockLogFileSystem_Glob_Call

type MockLogFileSystem_ReadFile_Call

type MockLogFileSystem_ReadFile_Call struct {
	*mock.Call
}

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

func (*MockLogFileSystem_ReadFile_Call) Return

func (*MockLogFileSystem_ReadFile_Call) Run

func (_c *MockLogFileSystem_ReadFile_Call) Run(run func(logFS fs.FS, logFile string)) *MockLogFileSystem_ReadFile_Call

func (*MockLogFileSystem_ReadFile_Call) RunAndReturn

func (_c *MockLogFileSystem_ReadFile_Call) RunAndReturn(run func(logFS fs.FS, logFile string) ([]byte, error)) *MockLogFileSystem_ReadFile_Call

Jump to

Keyboard shortcuts

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