test

package
v0.0.0-...-88979d5 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAccountBadRequest

func CreateAccountBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AccountController, payload *app.CreateAccountPayload) (http.ResponseWriter, error)

CreateAccountBadRequest runs the method Create 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 CreateAccountCreated

func CreateAccountCreated(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AccountController, payload *app.CreateAccountPayload) http.ResponseWriter

CreateAccountCreated runs the method Create 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 CreateBottleBadRequest

func CreateBottleBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, accountID int, payload *app.CreateBottlePayload) (http.ResponseWriter, error)

CreateBottleBadRequest runs the method Create 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 CreateBottleCreated

func CreateBottleCreated(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, accountID int, payload *app.CreateBottlePayload) http.ResponseWriter

CreateBottleCreated runs the method Create 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 CreateBottleNotFound

func CreateBottleNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, accountID int, payload *app.CreateBottlePayload) http.ResponseWriter

CreateBottleNotFound runs the method Create 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 DeleteAccountBadRequest

func DeleteAccountBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AccountController, accountID int) (http.ResponseWriter, error)

DeleteAccountBadRequest runs the method Delete 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 DeleteAccountNoContent

func DeleteAccountNoContent(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AccountController, accountID int) http.ResponseWriter

DeleteAccountNoContent runs the method Delete 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 DeleteAccountNotFound

func DeleteAccountNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AccountController, accountID int) http.ResponseWriter

DeleteAccountNotFound runs the method Delete 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 DeleteBottleBadRequest

func DeleteBottleBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, accountID int, bottleID int) (http.ResponseWriter, error)

DeleteBottleBadRequest runs the method Delete 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 DeleteBottleNoContent

func DeleteBottleNoContent(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, accountID int, bottleID int) http.ResponseWriter

DeleteBottleNoContent runs the method Delete 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 DeleteBottleNotFound

func DeleteBottleNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, accountID int, bottleID int) http.ResponseWriter

DeleteBottleNotFound runs the method Delete 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 HealthHealthOK

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

HealthHealthOK runs the method Health 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 ListAccountOK

ListAccountOK 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 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.

ListAccountOKLink 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 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 ListAccountOKTiny

ListAccountOKTiny 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 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 ListBottleBadRequest

func ListBottleBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, accountID int, years []int) (http.ResponseWriter, error)

ListBottleBadRequest 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 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 ListBottleNotFound

func ListBottleNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, accountID int, years []int) http.ResponseWriter

ListBottleNotFound 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 ListBottleOK

func ListBottleOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, accountID int, years []int) (http.ResponseWriter, app.BottleCollection)

ListBottleOK 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 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 ListBottleOKTiny

func ListBottleOKTiny(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, accountID int, years []int) (http.ResponseWriter, app.BottleTinyCollection)

ListBottleOKTiny 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 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 RateBottleBadRequest

func RateBottleBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, accountID int, bottleID int, payload *app.RateBottlePayload) (http.ResponseWriter, error)

RateBottleBadRequest runs the method Rate 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 RateBottleNoContent

func RateBottleNoContent(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, accountID int, bottleID int, payload *app.RateBottlePayload) http.ResponseWriter

RateBottleNoContent runs the method Rate 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 RateBottleNotFound

func RateBottleNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, accountID int, bottleID int, payload *app.RateBottlePayload) http.ResponseWriter

RateBottleNotFound runs the method Rate 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 ShowAccountBadRequest

func ShowAccountBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AccountController, accountID int) (http.ResponseWriter, error)

ShowAccountBadRequest runs the method Show 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 ShowAccountNotFound

func ShowAccountNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AccountController, accountID int) http.ResponseWriter

ShowAccountNotFound runs the method Show 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 ShowAccountOK

func ShowAccountOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AccountController, accountID int) (http.ResponseWriter, *app.Account)

ShowAccountOK runs the method Show 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 ShowAccountOKLink(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AccountController, accountID int) (http.ResponseWriter, *app.AccountLink)

ShowAccountOKLink runs the method Show 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 ShowAccountOKTiny

func ShowAccountOKTiny(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AccountController, accountID int) (http.ResponseWriter, *app.AccountTiny)

ShowAccountOKTiny runs the method Show 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 ShowBottleBadRequest

func ShowBottleBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, accountID int, bottleID int) (http.ResponseWriter, error)

ShowBottleBadRequest runs the method Show 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 ShowBottleNotFound

func ShowBottleNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, accountID int, bottleID int) http.ResponseWriter

ShowBottleNotFound runs the method Show 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 ShowBottleOK

func ShowBottleOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, accountID int, bottleID int) (http.ResponseWriter, *app.Bottle)

ShowBottleOK runs the method Show 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 ShowBottleOKFull

func ShowBottleOKFull(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, accountID int, bottleID int) (http.ResponseWriter, *app.BottleFull)

ShowBottleOKFull runs the method Show 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 ShowBottleOKTiny

func ShowBottleOKTiny(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, accountID int, bottleID int) (http.ResponseWriter, *app.BottleTiny)

ShowBottleOKTiny runs the method Show 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 UpdateAccountBadRequest

func UpdateAccountBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AccountController, accountID int, payload *app.UpdateAccountPayload) (http.ResponseWriter, error)

UpdateAccountBadRequest 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 UpdateAccountNoContent

func UpdateAccountNoContent(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AccountController, accountID int, payload *app.UpdateAccountPayload) http.ResponseWriter

UpdateAccountNoContent 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.

func UpdateAccountNotFound

func UpdateAccountNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AccountController, accountID int, payload *app.UpdateAccountPayload) http.ResponseWriter

UpdateAccountNotFound 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.

func UpdateBottleBadRequest

func UpdateBottleBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, accountID int, bottleID int, payload *app.BottlePayload) (http.ResponseWriter, error)

UpdateBottleBadRequest 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 UpdateBottleNoContent

func UpdateBottleNoContent(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, accountID int, bottleID int, payload *app.BottlePayload) http.ResponseWriter

UpdateBottleNoContent 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.

func UpdateBottleNotFound

func UpdateBottleNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, accountID int, bottleID int, payload *app.BottlePayload) http.ResponseWriter

UpdateBottleNotFound 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.

func WatchBottleBadRequest

func WatchBottleBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, accountID int, bottleID int) (http.ResponseWriter, error)

WatchBottleBadRequest runs the method Watch 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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