api

package
v0.1.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL