Documentation ¶
Index ¶
- func Run(t *testing.T, s suite.TestingSuite)
- type Router
- func (router *Router) Delete(path string, handler http.HandlerFunc) *Router
- func (router *Router) Get(path string, handler http.HandlerFunc) *Router
- func (router *Router) Method(method, path string, handler http.HandlerFunc) *Router
- func (router *Router) Patch(path string, handler http.HandlerFunc) *Router
- func (router *Router) Post(path string, handler http.HandlerFunc) *Router
- func (router *Router) Put(path string, handler http.HandlerFunc) *Router
- type Suite
- func (suite *Suite) FileResponseHandler(filename string) http.HandlerFunc
- func (suite *Suite) Initialize(router *Router)
- func (suite *Suite) Parameters(request *http.Request) map[string]string
- func (suite *Suite) Render(writer io.Writer, path string, data interface{})
- func (suite *Suite) Skip()
- func (suite *Suite) TearDownSuite()
- func (suite *Suite) Template(patterns ...string) *template.Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Router ¶
type Suite ¶
func (*Suite) FileResponseHandler ¶
func (suite *Suite) FileResponseHandler(filename string) http.HandlerFunc
func (*Suite) Initialize ¶
func (*Suite) TearDownSuite ¶
func (suite *Suite) TearDownSuite()
Click to show internal directories.
Click to hide internal directories.