Documentation
¶
Index ¶
Constants ¶
View Source
const TOLERANCE time.Duration = 1000000000 * 60
TOLERANCE is the number of seconds that a CreatedAt or UpdatedAt time.Time is allowed to differ from the time at which it is checked.
As CreatedAt and UpdatedAt are automatically set by gorm, we need a tolerance here.
Variables ¶
This section is empty.
Functions ¶
func AssertHTTPStatus ¶
func AssertHTTPStatus(t *testing.T, expected int, r *httptest.ResponseRecorder)
func DecodeResponse ¶ added in v0.10.0
func DecodeResponse(t *testing.T, r *httptest.ResponseRecorder, target interface{})
DecodeResponse decodes an HTTP response into a target struct.
Types ¶
type APIResponse ¶
Click to show internal directories.
Click to hide internal directories.