Documentation ¶
Overview ¶
Package webfmwktest implement wrapper around httptest
Index ¶
- func AssertBody(t *testing.T, rr *httptest.ResponseRecorder, expected string)
- func AssertBodyDiffer(t *testing.T, rr *httptest.ResponseRecorder, expected string)
- func AssertStatusCode(t *testing.T, rr *httptest.ResponseRecorder, expected int)
- func GetAndTest(t *testing.T, h webfmwk.HandlerFunc, e Expected)
- type Expected
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertBody ¶
func AssertBody(t *testing.T, rr *httptest.ResponseRecorder, expected string)
func AssertBodyDiffer ¶
func AssertBodyDiffer(t *testing.T, rr *httptest.ResponseRecorder, expected string)
func AssertStatusCode ¶
func AssertStatusCode(t *testing.T, rr *httptest.ResponseRecorder, expected int)
AssertStatusCode assert the status code of the response
func GetAndTest ¶
GetAndTest perfome a get request on the webfmwk using the httptest package
Types ¶
Click to show internal directories.
Click to hide internal directories.