Documentation
¶
Index ¶
- Variables
- type ContextProbe
- type MockFS
- type MockFSReadFile
- type MockFile
- func (m *MockFile) Close() error
- func (m *MockFile) Read(p []byte) (int, error)
- func (m *MockFile) ReadAt(p []byte, off int64) (n int, err error)
- func (m *MockFile) ReadFrom(r sio.Reader) (n int64, err error)
- func (m *MockFile) Seek(offset int64, whence int) (n int64, err error)
- func (m *MockFile) Stat() (fs.FileInfo, error)
- func (m *MockFile) Write(p []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrContextProbe = errors.New("iomock: context probe refuses opens")
ErrContextProbe is the error ContextProbe returns from Open.
Functions ¶
This section is empty.
Types ¶
type ContextProbe ¶
ContextProbe is an IO that records the context passed to Open and then fails with ErrContextProbe, so tests can check which context reaches it.
type MockFSReadFile ¶
Click to show internal directories.
Click to hide internal directories.