Versions in this module Expand all Collapse all v1 v1.0.4 Sep 29, 2024 Changes in this version + var Default = Defaults + func AssertAdapt(t testing.TB, rawConfig string, adapterName string, expectedResponse string) + func AssertLoadError(t *testing.T, rawConfig string, configType string, expectedError string) + func CompareAdapt(t testing.TB, filename, rawConfig string, adapterName string, ...) bool + func CreateTestingTransport() *http.Transport + type Defaults struct + AdminPort int + Certificates []string + LoadRequestTimeout time.Duration + TestRequestTimeout time.Duration + type Tester struct + Client *http.Client + func NewTester(t testing.TB) *Tester + func (tc *Tester) AssertDeleteResponse(requestURI string, expectedStatusCode int, expectedBody string) (*http.Response, string) + func (tc *Tester) AssertGetResponse(requestURI string, expectedStatusCode int, expectedBody string) (*http.Response, string) + func (tc *Tester) AssertPatchResponseBody(requestURI string, requestHeaders []string, requestBody *bytes.Buffer, ...) (*http.Response, string) + func (tc *Tester) AssertPostResponseBody(requestURI string, requestHeaders []string, requestBody *bytes.Buffer, ...) (*http.Response, string) + func (tc *Tester) AssertPutResponseBody(requestURI string, requestHeaders []string, requestBody *bytes.Buffer, ...) (*http.Response, string) + func (tc *Tester) AssertRedirect(requestURI string, expectedToLocation string, expectedStatusCode int) *http.Response + func (tc *Tester) AssertResponse(req *http.Request, expectedStatusCode int, expectedBody string) (*http.Response, string) + func (tc *Tester) AssertResponseCode(req *http.Request, expectedStatusCode int) *http.Response + func (tc *Tester) InitServer(rawConfig string, configType string) Other modules containing this package github.com/khulnasoft/kengine/v2