Versions in this module Expand all Collapse all v0 v0.0.1 Dec 3, 2024 Changes in this version + 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 struct + AfterPerformRequestFunc func(t *testing.T, req *http.Request, resp *http.Response, tkit *HTTPTestKit) + BeforePerformRequestFunc func(t *testing.T, req *http.Request, tkit *HTTPTestKit) + Request HTTPTestKitRequest + Response HTTPTestKitResponse + type HTTPTestKitRequest struct + Body string + BodyMakeFunc func(t *testing.T, tkit *HTTPTestKit) string + Headers map[string]string + HeadersMakeFunc func(t *testing.T, tkit *HTTPTestKit) map[string]string + Method string + Target string + type HTTPTestKitResponse struct + Body string + BodyCheckFunc func(t *testing.T, respBody string, tkit *HTTPTestKit) bool + Headers map[string]string + StatusCode int + type TestKit struct + Arg any + Arg1 any + Arg2 any + Arg3 any + Arg4 any + Arg5 any + Arg6 any + Arg7 any + Args []any + Result any + Result1 any + Result2 any + Result3 any + Result4 any + Result5 any + Result6 any + Result7 any + Results []any