Documentation
¶
Index ¶
Constants ¶
View Source
const ( InvocationReadFile = "ReadFile" InvocationStat = "Stat" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileReadingMock ¶
type FileReadingMock struct {
Invocations []string
Results struct {
ReadFile struct {
Success []byte
Error error
}
Stat struct {
Success fs.FileInfo
Error error
}
}
}
func (*FileReadingMock) ReadFile ¶
func (mock *FileReadingMock) ReadFile(filename string) ([]byte, error)
func (*FileReadingMock) Reset ¶
func (mock *FileReadingMock) Reset()
Click to show internal directories.
Click to hide internal directories.