Documentation ¶
Index ¶
- type Json
- type JsonList
- type TestApp
- func (t *TestApp) CreateProfile(name string, is_admin bool) (profile *models.Profile, err error)
- func (t *TestApp) Do(req *http.Request) (rec *httptest.ResponseRecorder)
- func (t *TestApp) ExecuteJsonRequest(method, urlStr string, body io.Reader, p *models.Profile) (rec *httptest.ResponseRecorder)
- func (t *TestApp) ExecuteJsonRequestRaw(method, urlStr string, data interface{}, p *models.Profile) (rec *httptest.ResponseRecorder)
- func (t *TestApp) JsonResponceToListOfStringMap(rec *httptest.ResponseRecorder) JsonList
- func (t *TestApp) JsonResponceToStringMap(rec *httptest.ResponseRecorder) Json
- func (t *TestApp) Login(req *http.Request, profile *models.Profile)
- func (t *TestApp) NewJsonRequest(method, urlStr string, body io.Reader, p *models.Profile) (req *http.Request)
- func (t *TestApp) Put(obj ...interface{}) (err error)
- func (t *TestApp) Stop()
- func (t *TestApp) ToJsonBody(data interface{}) (body io.Reader)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestApp ¶
type TestApp struct { AdminUser *models.Profile User *models.Profile NoUser *models.Profile // contains filtered or unexported fields }
func NewTestApp ¶
func (*TestApp) CreateProfile ¶
func (*TestApp) ExecuteJsonRequest ¶
func (*TestApp) ExecuteJsonRequestRaw ¶
func (*TestApp) JsonResponceToListOfStringMap ¶
func (t *TestApp) JsonResponceToListOfStringMap(rec *httptest.ResponseRecorder) JsonList
func (*TestApp) JsonResponceToStringMap ¶
func (t *TestApp) JsonResponceToStringMap(rec *httptest.ResponseRecorder) Json
func (*TestApp) NewJsonRequest ¶
func (*TestApp) ToJsonBody ¶
Click to show internal directories.
Click to hide internal directories.