Documentation ¶
Index ¶
- type FS
- type MockFS
- func (_m *MockFS) Exists(path string) (bool, error)
- func (_m *MockFS) ReadFile(filename string) ([]byte, error)
- func (_m *MockFS) Remove(path string) error
- func (_m *MockFS) TempDir(dir string, prefix string) (string, error)
- func (_m *MockFS) WriteFile(filename string, data []byte, perm iofs.FileMode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type MockFS ¶
MockFS is an autogenerated mock type for the FS type
func NewMockFS ¶ added in v0.3.0
NewMockFS creates a new instance of MockFS. 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.
Click to show internal directories.
Click to hide internal directories.