Documentation ¶
Overview ¶
Package testdata provides - big surprise - helper functions to be used in tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONEqExp ¶ added in v0.15.1
func JSONEqExp(t assert.TestingT, expected string, actual string, excludedFields []string, msgAndArgs ...any) bool
JSONEqExp is like assert.JSONEq() but excludes the given fields (given in sjson notation: https://github.com/tidwall/sjson).
func MustTimeParse ¶
MustTimeParse parses the given time string using the given layout.
func SafeClearEnv ¶
SafeClearEnv clears the environment but restores it when the test finishes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.