Versions in this module Expand all Collapse all v0 v0.2.0 Mar 19, 2019 Changes in this version + type Response struct + Error *string + Success bool + Token *string + User interface{} + UserList interface{} + type TestPayload struct + Code int + Err error + Response *Response + type TestingEnv struct + func (te *TestingEnv) Expect() string + func (te *TestingEnv) ExpectedPayload(code int, err error, token string, user interface{}, userList interface{}) + func (te *TestingEnv) Init(s *sql.DB, r *mux.Router) + func (te *TestingEnv) Prepare(method string, url string) + func (te *TestingEnv) Request(jsonRequest []byte) TestPayload