Documentation ¶
Index ¶
- func HandlerRequest(t *testing.T, responder middleware.Responder, responseObject interface{}, ...)
- func HandlerRequestWithResponse(t *testing.T, responder middleware.Responder, responseObject interface{}, ...) *http.Response
- func MakeAPI(t *testing.T, registrar api.HandlerRegistrar, api api.SwaggerAPI)
- func MakeEntityStore(t *testing.T) entitystore.EntityStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlerRequest ¶
func HandlerRequest(t *testing.T, responder middleware.Responder, responseObject interface{}, statusCode int)
HandlerRequest is a convenience function for testing API handlers
func HandlerRequestWithResponse ¶ added in v0.1.19
func HandlerRequestWithResponse(t *testing.T, responder middleware.Responder, responseObject interface{}, statusCode int) *http.Response
HandlerRequestWithResponse is a convenience function for testing API handlers that additionally returns the response object
func MakeAPI ¶
func MakeAPI(t *testing.T, registrar api.HandlerRegistrar, api api.SwaggerAPI)
MakeAPI returns an API for testing
func MakeEntityStore ¶
func MakeEntityStore(t *testing.T) entitystore.EntityStore
MakeEntityStore returns an EntityStore for test
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.