Documentation ¶
Index ¶
- func ChangeCurrentWorkDir(lvl int)
- func HTTPTestJSONEncode(t *testing.T, v any) (ret string)
- func RunHTTPTests(t *testing.T, httpHandler http.Handler, tkits []HTTPTestKit)
- func RunTests(t *testing.T, functions any, tkits []TestKit)
- type HTTPTestKit
- type HTTPTestKitRequest
- type HTTPTestKitResponse
- type TestKit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeCurrentWorkDir ¶
func ChangeCurrentWorkDir(lvl int)
func RunHTTPTests ¶
func RunHTTPTests(t *testing.T, httpHandler http.Handler, tkits []HTTPTestKit)
Types ¶
type HTTPTestKit ¶
type HTTPTestKit struct { Request HTTPTestKitRequest Response HTTPTestKitResponse BeforePerformRequestFunc func(t *testing.T, req *http.Request, tkit *HTTPTestKit) AfterPerformRequestFunc func(t *testing.T, req *http.Request, resp *http.Response, tkit *HTTPTestKit) }
type HTTPTestKitRequest ¶
type HTTPTestKitResponse ¶
Click to show internal directories.
Click to hide internal directories.