Versions in this module Expand all Collapse all v0 v0.1.2 Jan 9, 2020 v0.1.1 Sep 3, 2019 Changes in this version + func ExpectFailure(t *testing.T, resp *httptest.ResponseRecorder) + func ExpectSuccess(t *testing.T, resp *httptest.ResponseRecorder) + func ResponseFailure(c *gin.Context, options ...ResponseOption) + func ResponseSuccess(c *gin.Context, options ...ResponseOption) + type ResponseOption func(h gin.H) + func WithData(data interface{}) ResponseOption + func WithError(err error) ResponseOption + func WithField(k string, v interface{}) ResponseOption + func WithMultipleFields(extra gin.H) ResponseOption + func WithReason(reason string) ResponseOption