Documentation ¶
Overview ¶
Package tst provides some helper functions for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEqualFiles ¶ added in v0.27.8
AssertEqualFiles fails test if contence is NOT equal
func CaptureStdOut ¶
func CaptureStdOut(f func()) string
CaptureStdOut captures stdout and returns it as string.
func EqualLines ¶
EqualLines compares exp and act line by line ignoring lineendings and leading/trailing spaces.
func EqualTextFiles ¶
EqualTextFiles fails test if lines in fn0 & fn1 NOT equal. Line endings are ignored
func TempFileName ¶
TempFileName returns a temporary file name based on pattern. The file is created and deleted and only the name is delivered. The pattern should contain at least an asterics. Example: myFile-*.bin"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.