Documentation
¶
Overview ¶
Package testing provides a testing object T with functions for classical unit testing.
Index ¶
- func AssertOneOf[V comparable](t *T, have V, want []V)
- func Normalize(s string) string
- type Map
- type T
- func (t *T) AssertEqual(have interface{}, want interface{})
- func (t *T) AssertFileEqual(havep, wantp string)
- func (t *T) AssertFileLinesMatch(havep, wantp string, ignore []string)
- func (t *T) AssertFilesMatch(havep, wantp string, cfg m.Map)
- func (t *T) AssertMatch(have string, want string)
- func (t *T) ClearFiles(filep string)
- func (t *T) LogErr(txt string, fields Map)
- func (t *T) Run(name string, f func(*T)) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertOneOf ¶ added in v0.1.19
func AssertOneOf[V comparable](t *T, have V, want []V)
Types ¶
type T ¶
func (*T) AssertEqual ¶
func (t *T) AssertEqual(have interface{}, want interface{})
func (*T) AssertFileEqual ¶ added in v0.1.15
func (*T) AssertFileLinesMatch ¶ added in v0.1.15
func (*T) AssertFilesMatch ¶ added in v0.1.15
func (*T) AssertMatch ¶
func (*T) ClearFiles ¶ added in v0.1.15
Click to show internal directories.
Click to hide internal directories.