Documentation
¶
Index ¶
- type MockFS
- func (m *MockFS) Lstat(path string) (os.FileInfo, error)
- func (m *MockFS) Open(path string) (vfs.ReadSeekCloser, error)
- func (m *MockFS) ReadDir(path string) ([]os.FileInfo, error)
- func (m *MockFS) RootType(path string) vfs.RootType
- func (m *MockFS) Stat(path string) (os.FileInfo, error)
- func (m *MockFS) String() string
- type MockFile
- func (f *MockFile) Close() error
- func (f *MockFile) IsDir() bool
- func (f *MockFile) ModTime() time.Time
- func (f *MockFile) Mode() os.FileMode
- func (f *MockFile) Name() string
- func (f *MockFile) Read(p []byte) (n int, err error)
- func (f *MockFile) Seek(offset int64, whence int) (int64, error)
- func (f *MockFile) Size() int64
- func (f *MockFile) Sys() interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFS ¶
MockFS is a mock file system
func (*MockFS) Open ¶
func (m *MockFS) Open(path string) (vfs.ReadSeekCloser, error)
Open opens a file
type MockFile ¶
type MockFile struct {
OverrideBuffer bool
mock.Mock
Buf *bytes.Reader
// contains filtered or unexported fields
}
MockFile is a mock file
Click to show internal directories.
Click to hide internal directories.