Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RouterTest ¶
type RouterTest struct {
*appctxtest.AppCtxTest
TemplatesFS filesystem.FS
Router http.Handler
}
RouterTest allows for testing the server's Router
func (*RouterTest) PostForm ¶ added in v0.7.0
func (routerTest *RouterTest) PostForm(path string, form *url.Values) *httptest.ResponseRecorder
PostForm will post a form
func (*RouterTest) ServeHTTP ¶ added in v0.6.0
func (routerTest *RouterTest) ServeHTTP(request *http.Request) *httptest.ResponseRecorder
ServeHTTP serves an http request
Click to show internal directories.
Click to hide internal directories.