Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type Fake
- func (fake *Fake) Invocations() map[string][][]interface{}
- func (fake *Fake) ReadAll(r io.Reader) ([]byte, error)
- func (fake *Fake) ReadAllArgsForCall(i int) io.Reader
- func (fake *Fake) ReadAllCallCount() int
- func (fake *Fake) ReadAllReturns(result1 []byte, result2 error)
- func (fake *Fake) ReadAllReturnsOnCall(i int, result1 []byte, result2 error)
- func (fake *Fake) ReadDir(dirname string) ([]os.FileInfo, error)
- func (fake *Fake) ReadDirArgsForCall(i int) string
- func (fake *Fake) ReadDirCallCount() int
- func (fake *Fake) ReadDirReturns(result1 []os.FileInfo, result2 error)
- func (fake *Fake) ReadDirReturnsOnCall(i int, result1 []os.FileInfo, result2 error)
- func (fake *Fake) ReadFile(filename string) ([]byte, error)
- func (fake *Fake) ReadFileArgsForCall(i int) string
- func (fake *Fake) ReadFileCallCount() int
- func (fake *Fake) ReadFileReturns(result1 []byte, result2 error)
- func (fake *Fake) ReadFileReturnsOnCall(i int, result1 []byte, result2 error)
- func (fake *Fake) WriteFile(filename string, data []byte, perm os.FileMode) error
- func (fake *Fake) WriteFileArgsForCall(i int) (string, []byte, os.FileMode)
- func (fake *Fake) WriteFileCallCount() int
- func (fake *Fake) WriteFileReturns(result1 error)
- func (fake *Fake) WriteFileReturnsOnCall(i int, result1 error)
- type IIOUtil
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fake ¶
type Fake struct { ReadAllStub func(r io.Reader) ([]byte, error) ReadDirStub func(dirname string) ([]os.FileInfo, error) ReadFileStub func(filename string) ([]byte, error) WriteFileStub func(filename string, data []byte, perm os.FileMode) error // contains filtered or unexported fields }
func (*Fake) Invocations ¶
func (*Fake) ReadAllCallCount ¶
func (*Fake) ReadAllReturns ¶
func (*Fake) ReadAllReturnsOnCall ¶
func (*Fake) ReadDirArgsForCall ¶
func (*Fake) ReadDirCallCount ¶
func (*Fake) ReadDirReturns ¶
func (*Fake) ReadDirReturnsOnCall ¶
func (*Fake) ReadFileArgsForCall ¶
func (*Fake) ReadFileCallCount ¶
func (*Fake) ReadFileReturns ¶
func (*Fake) ReadFileReturnsOnCall ¶
func (*Fake) WriteFileArgsForCall ¶
func (*Fake) WriteFileCallCount ¶
func (*Fake) WriteFileReturns ¶
func (*Fake) WriteFileReturnsOnCall ¶
type IIOUtil ¶
type IIOUtil interface { // ReadAll reads from r until an error or EOF and returns the data it read. // A successful call returns err == nil, not err == EOF. Because ReadAll is // defined to read from src until EOF, it does not treat an EOF from Read // as an error to be reported. ReadAll(r io.Reader) ([]byte, error) // ReadDir reads the directory named by dirname and returns // a list of directory entries sorted by filename. ReadDir(dirname string) ([]os.FileInfo, error) // ReadFile reads the file named by filename and returns the contents. // A successful call returns err == nil, not err == EOF. Because ReadFile // reads the whole file, it does not treat an EOF from Read as an error // to be reported. ReadFile(filename string) ([]byte, error) // WriteFile writes data to a file named by filename. // If the file does not exist, WriteFile creates it with permissions perm; // otherwise WriteFile truncates it before writing. WriteFile(filename string, data []byte, perm os.FileMode) error }
virtual filesystem interface
Click to show internal directories.
Click to hide internal directories.