package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Apr 28, 2020
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Setenv changes an environment variable's value for the duration of the
current test.
It automatically restores the previous value, if any, after the test
finishes.
TempDir creates a new temporary directory inside the current test context.
It deletes the directory when the test finishes.
Unsetenv unsets the given environment variable for the duration of the
current test.
It automatically restores the previous value, if any, after the test
finishes.
type TestingT interface {
Name() string
Helper()
Logf(string, ...interface{})
Errorf(string, ...interface{})
Fatalf(string, ...interface{})
Cleanup(func())
}
TestingT is a subset of the testing.T interface.
Writer writes output to the given TestingT.
NewWriter builds a new test Writer.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.