Documentation
¶
Index ¶
- Constants
- Variables
- func GetFileSystemMock(t *testing.T) any
- type FileSystem
- func (_m *FileSystem) FileExists(filename string) bool
- func (_m *FileSystem) Getwd() (string, error)
- func (_m *FileSystem) Glob(path string) ([]string, error)
- func (_m *FileSystem) ReadFile(name string) ([]byte, error)
- func (_m *FileSystem) Remove(name string) error
- func (_m *FileSystem) Stat(name string) (fs.FileInfo, error)
- func (_m *FileSystem) TempDir() string
- func (_m *FileSystem) WriteFile(name string, data []byte, perm fs.FileMode) error
- type MemFileInfo
- type Process
Constants ¶
const ReadFileBase64 = "" /* 2412-byte string literal not displayed */
const YamlConfigStub = `` /* 614-byte string literal not displayed */
Variables ¶
var ExpectedGlob = []string{"foo", "bar"}
Functions ¶
func GetFileSystemMock ¶
Types ¶
type FileSystem ¶
FileSystem is an autogenerated mock type for the FileSystem type
func NewFileSystem ¶
func NewFileSystem(t mockConstructorTestingTNewFileSystem) *FileSystem
NewFileSystem creates a new instance of FileSystem. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*FileSystem) FileExists ¶
func (_m *FileSystem) FileExists(filename string) bool
FileExists provides a mock function with given fields: filename
func (*FileSystem) Getwd ¶
func (_m *FileSystem) Getwd() (string, error)
Getwd provides a mock function with given fields:
func (*FileSystem) Glob ¶
func (_m *FileSystem) Glob(path string) ([]string, error)
Glob provides a mock function with given fields: path
func (*FileSystem) ReadFile ¶
func (_m *FileSystem) ReadFile(name string) ([]byte, error)
ReadFile provides a mock function with given fields: name
func (*FileSystem) Remove ¶
func (_m *FileSystem) Remove(name string) error
Remove provides a mock function with given fields: name
func (*FileSystem) Stat ¶
func (_m *FileSystem) Stat(name string) (fs.FileInfo, error)
Stat provides a mock function with given fields: name
func (*FileSystem) TempDir ¶
func (_m *FileSystem) TempDir() string
TempDir provides a mock function with given fields:
type MemFileInfo ¶
func (MemFileInfo) IsDir ¶
func (fi MemFileInfo) IsDir() bool
func (MemFileInfo) ModTime ¶
func (fi MemFileInfo) ModTime() time.Time
func (MemFileInfo) Mode ¶
func (fi MemFileInfo) Mode() fs.FileMode
func (MemFileInfo) Name ¶
func (fi MemFileInfo) Name() string
func (MemFileInfo) Size ¶
func (fi MemFileInfo) Size() int64
func (MemFileInfo) Sys ¶
func (fi MemFileInfo) Sys() any
type Process ¶
Process is an autogenerated mock type for the Process type
func NewProcess ¶
func NewProcess(t mockConstructorTestingTNewProcess) *Process
NewProcess creates a new instance of Process. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.