Documentation
¶
Overview ¶
Package assfs contains filesystem assert functionality.
Index ¶
- type AssertFs
- func (v *AssertFs) Contains(filep, content, message string)
- func (v *AssertFs) DirExists(dirp, message string)
- func (v *AssertFs) Exists(path, message string)
- func (v *AssertFs) MkdirAll(dirp, message string)
- func (v *AssertFs) NotExists(path, message string)
- func (v *AssertFs) ReadLines(filep, message string) []string
- func (v *AssertFs) WriteBytes(filep string, b []byte) error
- func (v *AssertFs) WriteLargeTextFile(filep, content, message string)
- func (v *AssertFs) WriteTextFile(filep, content, message string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssertFs ¶
type AssertFs struct {
// contains filtered or unexported fields
}
AssertFs contains filesystem operations with asserts.
func NewAssertFs ¶
func NewAssertFs(req *require.Assertions, fs *afero.Afero) *AssertFs
NewAssertFs is a ctor for AssertFs.
func (*AssertFs) WriteBytes ¶
WriteBytes writes bytes to filep.
func (*AssertFs) WriteLargeTextFile ¶
WriteLargeTextFile creates directories and writes the content plus a megabyte.
func (*AssertFs) WriteTextFile ¶
WriteTextFile writes a text file and creates the directories.
Click to show internal directories.
Click to hide internal directories.