Versions in this module Expand all Collapse all v1 v1.0.0 Sep 3, 2023 Changes in this version + func Execute(t testing.TB, tc *TestCase) *netkit.Response[netkit.InternalBody[Body]] + func TestGin(t testing.TB, tc *TestCase, engine *gin.Engine) *netkit.Response[netkit.InternalBody[Body]] + type Assertion struct + StatusCode int + Verdict string + type ResponseRecorder struct + func NewResponseRecorder() *ResponseRecorder + func (r *ResponseRecorder) CloseNotify() <-chan bool + type TestCase struct + Assertion *Assertion + Name string + Request *http.Request + func NewTestCase(name string, method string, path string, expectedStatus int, ...) *TestCase + func NewUploadTestCase(name string, path string, reader io.Reader, fields map[string]string, ...) *TestCase + func (tc *TestCase) Execute(t testing.TB) *http.Response + func (tc *TestCase) WithBody(body interface{}) *TestCase + func (tc *TestCase) WithHeader(k, v string) *TestCase + func (tc *TestCase) WithQuery(queries interface{}) *TestCase + func (tc *TestCase) WithToken(token string) *TestCase