Documentation ¶
Index ¶
- func AssertLogContains(t *testing.T, wantLogEntry string, entries []*logrus.Entry)
- func AssertRedirectTo(t *testing.T, handler http.HandlerFunc, method string, url string, ...)
- func ChdirInPath(t testing.TB, path string, chdirSet *bool) func()
- func Close(t *testing.T, c io.Closer)
- func Getwd(t *testing.T) string
- func PerformRequest(t *testing.T, handler http.Handler, r *http.Request) (int, string)
- func TmpDir(tb testing.TB) (vfs.Root, string)
- func ToFileProtocol(t *testing.T, path string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertLogContains ¶ added in v1.16.0
AssertLogContains checks that wantLogEntry is contained in at least one of the log entries
func AssertRedirectTo ¶
func AssertRedirectTo(t *testing.T, handler http.HandlerFunc, method string, url string, values url.Values, expectedURL string)
AssertRedirectTo asserts that handler redirects to particular URL
func ChdirInPath ¶ added in v1.22.0
func Close ¶ added in v1.55.0
Close will call the close function on a closer as part of the t.Cleanup function.
func PerformRequest ¶ added in v1.51.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.