Documentation ¶
Index ¶
- Constants
- func AuthenticatedRequest(t *testing.T, r *http.Request, opts AuthOpts)
- func NewDB(t *testing.T, name string) (*sql.DB, func())
- func Ptr[T any](val T) *T
- func RequireNotOkStatus(t *testing.T, resp *http.Response)
- func RequireOkStatus(t *testing.T, resp *http.Response)
- func SetJsonHeader(r *http.Request)
- func SetupDbAndRouter(t *testing.T, name string, routeFunc func(*fiber.App, *sql.DB)) (*fiber.App, func())
- func T_call_fail(t *testing.T, app *fiber.App, req *http.Request) (int, common.OutboundErrResponse)
- func T_call_ok[T any](t *testing.T, app *fiber.App, req *http.Request) (int, T)
- func T_req[T any](t *testing.T, r Req[T]) *http.Request
- type AuthOpts
- type Req
Constants ¶
View Source
const (
DefaultUsername = "foobar"
)
Variables ¶
This section is empty.
Functions ¶
func AuthenticatedRequest ¶ added in v0.6.0
func RequireNotOkStatus ¶ added in v0.6.0
func SetJsonHeader ¶ added in v0.5.0
func SetupDbAndRouter ¶
func T_call_fail ¶ added in v0.6.0
Types ¶
Click to show internal directories.
Click to hide internal directories.