Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertError ¶
A shorthand where, if text == "", we assert that there was no error... and otherwise, we assert that an error occurred, and verify that err.Error() == text.
The `fail` bool determines whether an unexpected result should call t.FailNow(), rather than just t.Error().
Types ¶
type TempDirTracker ¶
func NewTempDirTracker ¶
func NewTempDirTracker(t *testing.T) TempDirTracker
func (*TempDirTracker) Cleanup ¶
func (tracker *TempDirTracker) Cleanup()
func (*TempDirTracker) Create ¶
func (tracker *TempDirTracker) Create() string
type WriteCompare ¶
Useful for comparing logs to expected results.
func NewWriteCompare ¶
func NewWriteCompare() WriteCompare
func (*WriteCompare) String ¶
func (wc *WriteCompare) String() string
Click to show internal directories.
Click to hide internal directories.