Documentation ¶
Index ¶
- func AppendTestData(name string) (f *os.File, isNew bool)
- func Assert(tb testing.TB, condition bool, msg string, v ...interface{})
- func Equals(tb testing.TB, exp, act interface{})
- func LoadEnvVar(envPath string)
- func LoadTestData(name string) []byte
- func MakeFunctionRunOnRootFolder()
- func OK(tb testing.TB, err error)
- func SaveTestData(name, ext string, makeUnique bool) *os.File
- func TrackTime(what string, start time.Time)
- func Truncate(s string, count int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendTestData ¶
AppendTestData adds to an existing file found in the ./testdata directory. If file is not found it will be created
func LoadTestData ¶
LoadTestData loads a file from ./testdata.
func MakeFunctionRunOnRootFolder ¶
func MakeFunctionRunOnRootFolder()
MakeFunctionRunOnRootFolder is a helper to change the working direcory to project root
func SaveTestData ¶
SaveTestData creates a unique file in ./testdata by adding a compact GUID to the file name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.