Documentation ¶
Index ¶
- func Be[A any](e A) testingx.Matcher[A]
- func Equal[A any](e A) testingx.Matcher[A]
- func Expect[A any](t testing.TB, actual A, matcheres ...testingx.Matcher[A])
- func HaveLen[A any](c int) testingx.Matcher[A]
- func MustJSONRaw(v interface{}) string
- func NotBe[A any](e A) testingx.Matcher[A]
- func NotEqual[A any](e A) testingx.Matcher[A]
- func NotHaveLen[A any](c int) testingx.Matcher[A]
- func PrintJSON(v interface{})
- func ProjectRoot() string
- func RequestEqual(t testing.TB, req *http.Request, expect string)
- func Serve(t testing.TB, handler http.Handler) *httptest.Server
- func ShouldReturnWhenRequest(t testing.TB, h http.Handler, req any, httpResp string)
- type Datetime
- type MockResponseWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustJSONRaw ¶
func MustJSONRaw(v interface{}) string
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.