Documentation ¶
Index ¶
- func BeJSON[X any](expect string) testingx.Matcher[X]
- func BeRequest(expect string) testingx.Matcher[*http.Request]
- func PrintJSON(v interface{})
- func ProjectRoot() string
- func Serve(t testing.TB, handler http.Handler) *httptest.Server
- func ShouldReturnWhenRequest(req any, expect string) testingx.Matcher[http.Handler]
- type Datetime
- type MockResponseWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProjectRoot ¶
func ProjectRoot() string
Types ¶
type Datetime ¶
openapi:strfmt date-time
func (Datetime) MarshalText ¶
func (*Datetime) UnmarshalText ¶
type MockResponseWriter ¶
type MockResponseWriter struct { StatusCode int bytes.Buffer // contains filtered or unexported fields }
func NewMockResponseWriter ¶
func NewMockResponseWriter() *MockResponseWriter
func (*MockResponseWriter) Header ¶
func (w *MockResponseWriter) Header() http.Header
func (*MockResponseWriter) MustDumpResponse ¶
func (w *MockResponseWriter) MustDumpResponse() []byte
func (*MockResponseWriter) Response ¶
func (w *MockResponseWriter) Response() *http.Response
func (*MockResponseWriter) WriteHeader ¶
func (w *MockResponseWriter) WriteHeader(statusCode int)
Click to show internal directories.
Click to hide internal directories.