Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middlewares ¶
type Middlewares []string
type Routing ¶
type Routing struct { Name string Path string Prefix bool Method []string Queries Queries Handler Handler Resources map[string]Handler Middlewares []string Static string WithGlobalMiddleware interface{} }
func (Routing) LoadTester ¶
func (r Routing) LoadTester(res *httptest.ResponseRecorder, req *http.Request) *RoutingTest
type RoutingTest ¶
type RoutingTest struct { ResponseRecorder *httptest.ResponseRecorder Request *http.Request Err error Testing *testing.T Content string Routing Routing }
func (RoutingTest) AssertResponseContains ¶
func (rt RoutingTest) AssertResponseContains(expectation string)
func (RoutingTest) AssertStatus ¶
func (rt RoutingTest) AssertStatus(expectation uint)
func (*RoutingTest) AssertUsing ¶
func (rt *RoutingTest) AssertUsing(t *testing.T)
func (*RoutingTest) CallHandler ¶
func (rt *RoutingTest) CallHandler()
Click to show internal directories.
Click to hide internal directories.