Documentation ¶
Index ¶
- Constants
- func AssertErrorContains(t *testing.T, err error, expectedErr string)
- func AssertErrorMessage(t *testing.T, err error, expectedErr string)
- func Interpolate(s string, data interface{}) (string, error)
- func RequireErrorContains(t *testing.T, err error, expectedErr string)
- func RequireErrorMessage(t *testing.T, err error, expectedErr string)
- func RequireLogContains(t *testing.T, hook *logtest.Hook, expected string)
Constants ¶
View Source
const FileNotFoundMessage = "no such file or directory"
Variables ¶
This section is empty.
Functions ¶
func AssertErrorContains ¶ added in v1.3.1
func AssertErrorMessage ¶ added in v1.5.0
func Interpolate ¶ added in v1.5.0
Interpolate fills a string template with the given values, can be map or struct. example: Interpolate("{{.Name}}", map[string]string{"Name": "JohnDoe"})
func RequireErrorContains ¶ added in v1.4.2
func RequireErrorMessage ¶ added in v1.5.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.