Documentation
¶
Index ¶
- type MockDirectoryFileSystem
- type MockDirectoryFileSystem_Expecter
- type MockDirectoryFileSystem_MkdirAll_Call
- func (_c *MockDirectoryFileSystem_MkdirAll_Call) Return(err error) *MockDirectoryFileSystem_MkdirAll_Call
- func (_c *MockDirectoryFileSystem_MkdirAll_Call) Run(run func(path string, perm os.FileMode)) *MockDirectoryFileSystem_MkdirAll_Call
- func (_c *MockDirectoryFileSystem_MkdirAll_Call) RunAndReturn(run func(path string, perm os.FileMode) error) *MockDirectoryFileSystem_MkdirAll_Call
- type MockDirectoryFileSystem_MkdirTemp_Call
- func (_c *MockDirectoryFileSystem_MkdirTemp_Call) Return(s string, err error) *MockDirectoryFileSystem_MkdirTemp_Call
- func (_c *MockDirectoryFileSystem_MkdirTemp_Call) Run(run func(dir string, pattern string)) *MockDirectoryFileSystem_MkdirTemp_Call
- func (_c *MockDirectoryFileSystem_MkdirTemp_Call) RunAndReturn(run func(dir string, pattern string) (string, error)) *MockDirectoryFileSystem_MkdirTemp_Call
- type MockLogFileSystem
- type MockLogFileSystem_Expecter
- type MockLogFileSystem_Glob_Call
- func (_c *MockLogFileSystem_Glob_Call) Return(strings []string, err error) *MockLogFileSystem_Glob_Call
- func (_c *MockLogFileSystem_Glob_Call) Run(run func(logFS fs.FS, globPattern string)) *MockLogFileSystem_Glob_Call
- func (_c *MockLogFileSystem_Glob_Call) RunAndReturn(run func(logFS fs.FS, globPattern string) ([]string, error)) *MockLogFileSystem_Glob_Call
- type MockLogFileSystem_ReadFile_Call
- func (_c *MockLogFileSystem_ReadFile_Call) Return(bytes []byte, err error) *MockLogFileSystem_ReadFile_Call
- func (_c *MockLogFileSystem_ReadFile_Call) Run(run func(logFS fs.FS, logFile string)) *MockLogFileSystem_ReadFile_Call
- func (_c *MockLogFileSystem_ReadFile_Call) RunAndReturn(run func(logFS fs.FS, logFile string) ([]byte, error)) *MockLogFileSystem_ReadFile_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDirectoryFileSystem ¶
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 (_m *MockDirectoryFileSystem) EXPECT() *MockDirectoryFileSystem_Expecter
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 ¶
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 (_c *MockDirectoryFileSystem_MkdirAll_Call) Return(err error) *MockDirectoryFileSystem_MkdirAll_Call
func (*MockDirectoryFileSystem_MkdirAll_Call) Run ¶
func (_c *MockDirectoryFileSystem_MkdirAll_Call) Run(run func(path string, perm os.FileMode)) *MockDirectoryFileSystem_MkdirAll_Call
func (*MockDirectoryFileSystem_MkdirAll_Call) RunAndReturn ¶
func (_c *MockDirectoryFileSystem_MkdirAll_Call) RunAndReturn(run func(path string, perm os.FileMode) error) *MockDirectoryFileSystem_MkdirAll_Call
type MockDirectoryFileSystem_MkdirTemp_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 (_c *MockDirectoryFileSystem_MkdirTemp_Call) Return(s string, err error) *MockDirectoryFileSystem_MkdirTemp_Call
func (*MockDirectoryFileSystem_MkdirTemp_Call) Run ¶
func (_c *MockDirectoryFileSystem_MkdirTemp_Call) Run(run func(dir string, pattern string)) *MockDirectoryFileSystem_MkdirTemp_Call
func (*MockDirectoryFileSystem_MkdirTemp_Call) RunAndReturn ¶
func (_c *MockDirectoryFileSystem_MkdirTemp_Call) RunAndReturn(run func(dir string, pattern string) (string, error)) *MockDirectoryFileSystem_MkdirTemp_Call
type MockLogFileSystem ¶
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 (_m *MockLogFileSystem) EXPECT() *MockLogFileSystem_Expecter
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 ¶
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 (_c *MockLogFileSystem_Glob_Call) Return(strings []string, err error) *MockLogFileSystem_Glob_Call
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 ¶
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 (_c *MockLogFileSystem_ReadFile_Call) Return(bytes []byte, err error) *MockLogFileSystem_ReadFile_Call
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