Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}
Wrapper is an helper to simplify the encapsulation of integration tests
func New ¶
New creates a new database, sets it as the current database and returns a Wrapper object used to handle panics and clean up databases
func (*Wrapper) CloseOnPanic ¶
func (it *Wrapper) CloseOnPanic()
CloseOnPanic cleans up the tests and re-panic
func (*Wrapper) RecoverPanic ¶
RecoverPanic prevents a panic from not calling the defer in the other goroutines
Click to show internal directories.
Click to hide internal directories.