test

package
v0.0.0-...-abdcf8d Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSamplesBadRequest

func AddSamplesBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.SamplesController, payload *app.AddSamplesPayload) (http.ResponseWriter, error)

AddSamplesBadRequest runs the method Add 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 AddSamplesNotFound

func AddSamplesNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.SamplesController, payload *app.AddSamplesPayload) http.ResponseWriter

AddSamplesNotFound runs the method Add 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 AddSamplesOK

AddSamplesOK runs the method Add 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 AddSamplesUnauthorized

func AddSamplesUnauthorized(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.SamplesController, payload *app.AddSamplesPayload) (http.ResponseWriter, error)

AddSamplesUnauthorized runs the method Add 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 DeleteSamplesBadRequest

func DeleteSamplesBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.SamplesController, id int) (http.ResponseWriter, error)

DeleteSamplesBadRequest 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 DeleteSamplesNoContent

func DeleteSamplesNoContent(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.SamplesController, id int) http.ResponseWriter

DeleteSamplesNoContent 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 DeleteSamplesNotFound

func DeleteSamplesNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.SamplesController, id int) http.ResponseWriter

DeleteSamplesNotFound 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 DeleteSamplesUnauthorized

func DeleteSamplesUnauthorized(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.SamplesController, id int) (http.ResponseWriter, error)

DeleteSamplesUnauthorized 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 ListSamplesBadRequest

func ListSamplesBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.SamplesController) (http.ResponseWriter, error)

ListSamplesBadRequest 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 ListSamplesNotFound

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

ListSamplesNotFound 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 ListSamplesOK

ListSamplesOK 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 ListSamplesUnauthorized

func ListSamplesUnauthorized(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.SamplesController) (http.ResponseWriter, error)

ListSamplesUnauthorized 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 LoginAuthBadRequest

func LoginAuthBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AuthController, payload *app.LoginAuthPayload) (http.ResponseWriter, error)

LoginAuthBadRequest runs the method Login 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 LoginAuthNotFound

func LoginAuthNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AuthController, payload *app.LoginAuthPayload) http.ResponseWriter

LoginAuthNotFound runs the method Login 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 LoginAuthOK

func LoginAuthOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AuthController, payload *app.LoginAuthPayload) (http.ResponseWriter, *app.Auth)

LoginAuthOK runs the method Login 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 ReauthenticateAuthBadRequest

func ReauthenticateAuthBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AuthController, payload *app.ReauthenticateAuthPayload) (http.ResponseWriter, error)

ReauthenticateAuthBadRequest runs the method Reauthenticate 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 ReauthenticateAuthNotFound

func ReauthenticateAuthNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AuthController, payload *app.ReauthenticateAuthPayload) http.ResponseWriter

ReauthenticateAuthNotFound runs the method Reauthenticate 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 ReauthenticateAuthOK

func ReauthenticateAuthOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AuthController, payload *app.ReauthenticateAuthPayload) (http.ResponseWriter, *app.Auth)

ReauthenticateAuthOK runs the method Reauthenticate 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 ShowSamplesBadRequest

func ShowSamplesBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.SamplesController, id int) (http.ResponseWriter, error)

ShowSamplesBadRequest 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 ShowSamplesNotFound

func ShowSamplesNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.SamplesController, id int) http.ResponseWriter

ShowSamplesNotFound 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 ShowSamplesOK

func ShowSamplesOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.SamplesController, id int) (http.ResponseWriter, *app.Sample)

ShowSamplesOK 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 ShowSamplesUnauthorized

func ShowSamplesUnauthorized(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.SamplesController, id int) (http.ResponseWriter, error)

ShowSamplesUnauthorized 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 UpdateSamplesBadRequest

func UpdateSamplesBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.SamplesController, id int, payload *app.UpdateSamplesPayload) (http.ResponseWriter, error)

UpdateSamplesBadRequest 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 UpdateSamplesNoContent

func UpdateSamplesNoContent(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.SamplesController, id int, payload *app.UpdateSamplesPayload) http.ResponseWriter

UpdateSamplesNoContent 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 UpdateSamplesNotFound

func UpdateSamplesNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.SamplesController, id int, payload *app.UpdateSamplesPayload) http.ResponseWriter

UpdateSamplesNotFound 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 UpdateSamplesUnauthorized

func UpdateSamplesUnauthorized(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.SamplesController, id int, payload *app.UpdateSamplesPayload) (http.ResponseWriter, error)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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