Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTestContext ¶
func CreateTestContext(c qhttp.Controller[qhttp.ContextBase], r *http.Request) *qhttp.Context[qhttp.ContextBase]
CreateTestContext creates a Context that is appropriate for testing
func CreateTestRequest ¶
CreateTestRequest instantiates an http.Request that can be used for testing
func CreateTestRequestBody ¶
CreateTestRequestBody creates a test http.Request with the body set
Types ¶
type TestController ¶
type TestController[T qhttp.ContextBase] struct { controllers.MethodNotAllowedController[T] controllers.NoAuthenticationController[T] }
TestController implements the Controller interface and nothing else