Documentation ¶
Index ¶
- type Context
- type XTest
- func (x *XTest) Get(url string, args interface{}, h func(w *httptest.ResponseRecorder))
- func (x *XTest) Handle(method, reqPath string, funk func(ctx *Context), t testing, args interface{})
- func (x *XTest) Head(url string, args interface{}, h func(w *httptest.ResponseRecorder))
- func (x *XTest) Options(url string, args interface{}, h func(w *httptest.ResponseRecorder))
- func (x *XTest) Post(url string, args interface{}, h func(w *httptest.ResponseRecorder))
- func (x *XTest) Put(url string, args interface{}, h func(w *httptest.ResponseRecorder))
- func (x *XTest) SetToken(tk string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { *httptest.ResponseRecorder // contains filtered or unexported fields }
Context defined TODO
func NewContext ¶
func NewContext(w *httptest.ResponseRecorder, t testing) *Context
NewContext defined TODO
type XTest ¶
type XTest struct {
// contains filtered or unexported fields
}
func (*XTest) Get ¶
func (x *XTest) Get(url string, args interface{}, h func(w *httptest.ResponseRecorder))
Get defined TODO
func (*XTest) Handle ¶
func (x *XTest) Handle(method, reqPath string, funk func(ctx *Context), t testing, args interface{})
HttpHandle defined TODO
func (*XTest) Head ¶
func (x *XTest) Head(url string, args interface{}, h func(w *httptest.ResponseRecorder))
Head defined TODO
func (*XTest) Options ¶
func (x *XTest) Options(url string, args interface{}, h func(w *httptest.ResponseRecorder))
Options defined TODO
func (*XTest) Post ¶
func (x *XTest) Post(url string, args interface{}, h func(w *httptest.ResponseRecorder))
Post defined TODO
Click to show internal directories.
Click to hide internal directories.