Documentation
¶
Overview ¶
Package testutil implements helpers for testing, based on go-cmp
Index ¶
- func Diff(want interface{}, got interface{}, t *testing.T)
- func FixtureBytes(t *testing.T, name string, args ...string) []byte
- func FixturePath(name string, args ...string) string
- func FixtureReader(t *testing.T, name string, args ...string) *strings.Reader
- func MustErr(want error, got error, t *testing.T)
- func MustNoErr(err error, t *testing.T)
- func SetEnv(env Env) (reset func())
- type Env
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FixtureBytes ¶
FixtureBytes returns content bytes of the given fixture
func FixturePath ¶
FixturePath returns absolute path to the given fixture
func FixtureReader ¶
FixtureReader returns io reader of the given fixture
Types ¶
Click to show internal directories.
Click to hide internal directories.