test

package
v0.0.0-...-cdf3d8e Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetElementKeysBadRequest

func GetElementKeysBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.KeysController, key string, element string) (http.ResponseWriter, error)

GetElementKeysBadRequest runs the method GetElement of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func GetElementKeysNotFound

func GetElementKeysNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.KeysController, key string, element string) (http.ResponseWriter, error)

GetElementKeysNotFound runs the method GetElement of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func GetElementKeysOK

func GetElementKeysOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.KeysController, key string, element string) http.ResponseWriter

GetElementKeysOK runs the method GetElement of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func GetKeysBadRequest

func GetKeysBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.KeysController, key string) (http.ResponseWriter, error)

GetKeysBadRequest runs the method Get of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func GetKeysNotFound

func GetKeysNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.KeysController, key string) (http.ResponseWriter, error)

GetKeysNotFound runs the method Get of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func GetKeysOK

func GetKeysOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.KeysController, key string) http.ResponseWriter

GetKeysOK runs the method Get of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func ListKeysOK

func ListKeysOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.KeysController) http.ResponseWriter

ListKeysOK runs the method List of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func RemoveKeysBadRequest

func RemoveKeysBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.KeysController, key string) (http.ResponseWriter, error)

RemoveKeysBadRequest runs the method Remove of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func RemoveKeysNotFound

func RemoveKeysNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.KeysController, key string) (http.ResponseWriter, error)

RemoveKeysNotFound runs the method Remove of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func RemoveKeysOK

func RemoveKeysOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.KeysController, key string) http.ResponseWriter

RemoveKeysOK runs the method Remove of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func SetKeysBadRequest

func SetKeysBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.KeysController, key string, ttl int, payload app.SetKeysPayload) (http.ResponseWriter, error)

SetKeysBadRequest runs the method Set of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func SetKeysOK

func SetKeysOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.KeysController, key string, ttl int, payload app.SetKeysPayload) http.ResponseWriter

SetKeysOK runs the method Set of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func UpdateKeysBadRequest

func UpdateKeysBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.KeysController, key string, payload app.UpdateKeysPayload) (http.ResponseWriter, error)

UpdateKeysBadRequest runs the method Update of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func UpdateKeysNotFound

func UpdateKeysNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.KeysController, key string, payload app.UpdateKeysPayload) (http.ResponseWriter, error)

UpdateKeysNotFound runs the method Update of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func UpdateKeysOK

func UpdateKeysOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.KeysController, key string, payload app.UpdateKeysPayload) http.ResponseWriter

UpdateKeysOK runs the method Update of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

Types

This section is empty.

Jump to

Keyboard shortcuts

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