Documentation ¶
Index ¶
- type Response
- type Test
- func (t *Test) Assert(cond bool)
- func (t *Test) AssertEqual(val1, val2 interface{})
- func (t *Test) AssertError(err error)
- func (t *Test) AssertJSONEqual(got_str, want_str string)
- func (t *Test) AssertNil(obj interface{})
- func (t *Test) AssertNoError(err error)
- func (t *Test) AssertNotEqual(val1, val2 interface{})
- func (t *Test) Close()
- func (t *Test) CreateFile(name string) *os.File
- func (t *Test) Dir() string
- func (t *Test) PerformRequest(server http.Handler, method, endpoint string, headers http.Header, ...) *Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct { Resp *httptest.ResponseRecorder Json map[string]interface{} Code int Body string }
type Test ¶
func (*Test) AssertEqual ¶
func (t *Test) AssertEqual(val1, val2 interface{})
func (*Test) AssertError ¶
func (*Test) AssertJSONEqual ¶
func (*Test) AssertNoError ¶
func (*Test) AssertNotEqual ¶
func (t *Test) AssertNotEqual(val1, val2 interface{})
Click to show internal directories.
Click to hide internal directories.