Documentation ¶
Index ¶
- func AssertContentTypeHeaderEquals(t *testing.T, response *httptest.ResponseRecorder, want string)
- func AssertError(t *testing.T, err error)
- func AssertLocationHeaderEquals(t *testing.T, response *httptest.ResponseRecorder, want string)
- func AssertNoError(t *testing.T, err error)
- func AssertStatusEquals(t *testing.T, got, want int)
- func NewAuthenticatedGetRequest(t *testing.T, url string) *http.Request
- func NewGetRequest(t *testing.T, url string) *http.Request
- func NewSessionStoreWithErrorOnDelete(t *testing.T) sessionup.Store
- func NewStoreWithErrorOnCreate(t *testing.T) sessionup.Store
- func NewValidSessionManager(t *testing.T) *sessionup.Manager
- func NewValidSessionStore(t *testing.T) sessionup.Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertContentTypeHeaderEquals ¶
func AssertContentTypeHeaderEquals(t *testing.T, response *httptest.ResponseRecorder, want string)
AssertContentTypeHeaderEquals verifies that the response's Content-Type header matches expectation
func AssertError ¶
AssertError verifies that the error is not nil
func AssertLocationHeaderEquals ¶
func AssertLocationHeaderEquals(t *testing.T, response *httptest.ResponseRecorder, want string)
AssertLocationHeaderEquals verifies that the response's Location header matches expectation
func AssertNoError ¶
AssertNoError verifies that the error is nil
func AssertStatusEquals ¶
AssertStatusEquals verifies that the request status code matches expectation
func NewAuthenticatedGetRequest ¶
NewAuthenticatedGetRequest creates a new GET request to url with a cookie named "id"
func NewGetRequest ¶
NewGetRequest simplifies creating a new GET request
func NewSessionStoreWithErrorOnDelete ¶
NewSessionStoreWithErrorOnDelete creates a new session store that throws on Delete()
func NewStoreWithErrorOnCreate ¶
NewStoreWithErrorOnCreate creates a new session store that throws on Create()
func NewValidSessionManager ¶
NewValidSessionManager creates a new valid session manager with cookie named "id"
Types ¶
This section is empty.