Documentation ¶
Index ¶
- Variables
- type Mocket
- func (m *Mocket) Close(f *os.File) error
- func (m *Mocket) IsDir(f os.FileInfo) bool
- func (m *Mocket) IsNotExist(err error) bool
- func (m *Mocket) MkdirAll(path string, perm os.FileMode) error
- func (m *Mocket) OpenFile(name string, flag int, perm os.FileMode) (*os.File, error)
- func (m *Mocket) Post(url, contentType string, body io.Reader) (resp *http.Response, err error)
- func (m *Mocket) ReadFile(filename string) ([]byte, error)
- func (m *Mocket) Stat(name string) (os.FileInfo, error)
- func (m *Mocket) Write(f *os.File, b []byte) (n int, err error)
- func (m *Mocket) WriteFile(filename string, data []byte, perm os.FileMode) error
Constants ¶
This section is empty.
Variables ¶
View Source
var File file
File is use for mocking
Functions ¶
This section is empty.
Types ¶
type Mocket ¶
Mocket used during test
func (*Mocket) IsNotExist ¶
IsNotExist is used to check if directory exits during test
Click to show internal directories.
Click to hide internal directories.