Documentation ¶
Index ¶
- type FileManager
- func (_m *FileManager) Open(path string) (*os.File, error)
- func (_m *FileManager) OpenReaderIfExists(path string) (io.Reader, error)
- func (_m *FileManager) ReadDirEntryNames(path string) ([]string, error)
- func (_m *FileManager) Remove(path string) error
- func (_m *FileManager) RemoveAll(path string) error
- func (_m *FileManager) Write(path string, value string, perm fs.FileMode) error
- func (_m *FileManager) WriteBytes(path string, value []byte) error
- type PathChecker
- type XcconfigWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileManager ¶
FileManager is an autogenerated mock type for the FileManager type
func NewFileManager ¶
func NewFileManager(t interface { mock.TestingT Cleanup(func()) }) *FileManager
NewFileManager creates a new instance of FileManager. 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 (*FileManager) Open ¶
func (_m *FileManager) Open(path string) (*os.File, error)
Open provides a mock function with given fields: path
func (*FileManager) OpenReaderIfExists ¶
func (_m *FileManager) OpenReaderIfExists(path string) (io.Reader, error)
OpenReaderIfExists provides a mock function with given fields: path
func (*FileManager) ReadDirEntryNames ¶
func (_m *FileManager) ReadDirEntryNames(path string) ([]string, error)
ReadDirEntryNames provides a mock function with given fields: path
func (*FileManager) Remove ¶
func (_m *FileManager) Remove(path string) error
Remove provides a mock function with given fields: path
func (*FileManager) RemoveAll ¶
func (_m *FileManager) RemoveAll(path string) error
RemoveAll provides a mock function with given fields: path
func (*FileManager) WriteBytes ¶
func (_m *FileManager) WriteBytes(path string, value []byte) error
WriteBytes provides a mock function with given fields: path, value
type PathChecker ¶
PathChecker is an autogenerated mock type for the PathChecker type
func NewPathChecker ¶
func NewPathChecker(t testing.TB) *PathChecker
NewPathChecker creates a new instance of PathChecker. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*PathChecker) IsPathExists ¶
func (_m *PathChecker) IsPathExists(pth string) (bool, error)
IsPathExists provides a mock function with given fields: pth
type XcconfigWriter ¶
XcconfigWriter is an autogenerated mock type for the Writer type