Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultTimeout = 3 * time.Minute
DefaultTimeout is the default timeout used by new context
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
Context is a context that has utility methods for testing and waiting for asynchronous errors.
func NewWithTimeout ¶
NewWithTimeout creates a new test context with a given timeout
func (*Context) Cleanup ¶
func (ctx *Context) Cleanup()
Cleanup waits everything to be completed, checks errors and goroutines which haven't ended and tries to cleanup directories
func (*Context) Dir ¶
Dir creates a subdirectory inside temp joining any number of path elements into a single path and return its absolute path.
Click to show internal directories.
Click to hide internal directories.