Documentation ¶
Overview ¶
Package xtesting provides addons to std package testing.
The tools provided are mostly useful when doing tests with exceptions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asserter ¶
type Asserter struct {
// contains filtered or unexported fields
}
Asserter is handy objects to make asserts in tests.
For example:
assert := xtesting.Assert(t) assert.Eq(a, b) ..
Contrary to t.Fatal* and e.g. github.com/stretchr/testify/require.Assert it is safe to use Asserter from non-main goroutine.
Click to show internal directories.
Click to hide internal directories.