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 Interpolate ¶
Interpolate fills a string template with the given values, can be map or struct. example: Interpolate("{{.Name}}", map[string]string{"Name": "JohnDoe"})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.