Documentation ¶
Index ¶
- func Chdir(t *testing.T, path string)
- func ExitOnErr(t *testing.T, err error)
- func Hash(buf []byte) string
- func MustGenTgzArchive(path, content string) (string, io.Reader)
- func MustGenTgzArchiveDir(dir string) (string, io.Reader)
- func NewTestDataFromFixture(name string, o v1.Object) error
- func WriteFileWithMkdir(path string, buf []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustGenTgzArchive ¶
MustGenTgzArchive compresses the file with given content on given path and returns checksum and bytes of the result.
func NewTestDataFromFixture ¶
NewTestDataFromFixture loads test fixture from ./fixtures dir and unmarshal as v1.Object.
func WriteFileWithMkdir ¶
WriteFileWithMkdir writes data to the named file, along with any necessary parent directories.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.