Documentation ¶
Index ¶
- Variables
- func Assert(tb testing.TB, condition bool, msg string, v ...interface{})
- func Equals(tb testing.TB, exp, act interface{})
- func Fixture(path string) string
- func NewHttpClient(fn RoundTripFunc) *http.Client
- func Ok(tb testing.TB, err error)
- func RegisterEndpoint(endpoint string, responseWriter ResponseWriter, ...) string
- func Setup() func()
- type RequestValidation
- type ResponseWriter
- type RoundTripFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Mux *http.ServeMux Server *httptest.Server )
Functions ¶
func RegisterEndpoint ¶ added in v0.1.3
func RegisterEndpoint(endpoint string, responseWriter ResponseWriter, requestValidation RequestValidation) string
Types ¶
type RequestValidation ¶ added in v0.1.5
func SkipRequestValidation ¶ added in v0.1.5
func SkipRequestValidation() RequestValidation
type ResponseWriter ¶ added in v0.1.5
type ResponseWriter func(http.ResponseWriter)
func EmptyResponse ¶ added in v0.1.5
func EmptyResponse() ResponseWriter
func FixtureResponse ¶ added in v0.1.5
func FixtureResponse(fixture string) ResponseWriter
Click to show internal directories.
Click to hide internal directories.