test

package
v0.0.0-...-84d5eb4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnalyticsShortnerInternalServerError

func AnalyticsShortnerInternalServerError(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.ShortnerController, path string) http.ResponseWriter

AnalyticsShortnerInternalServerError runs the method Analytics 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 AnalyticsShortnerNotFound

func AnalyticsShortnerNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.ShortnerController, path string) http.ResponseWriter

AnalyticsShortnerNotFound runs the method Analytics 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 AnalyticsShortnerOK

func AnalyticsShortnerOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.ShortnerController, path string) (http.ResponseWriter, *app.Analytics)

AnalyticsShortnerOK runs the method Analytics 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 CreateShortnerCreated

func CreateShortnerCreated(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.ShortnerController, payload *app.CreateLinkPayload) http.ResponseWriter

CreateShortnerCreated 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 CreateShortnerInternalServerError

func CreateShortnerInternalServerError(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.ShortnerController, payload *app.CreateLinkPayload) http.ResponseWriter

CreateShortnerInternalServerError 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 DeleteShortnerInternalServerError

func DeleteShortnerInternalServerError(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.ShortnerController, path string) http.ResponseWriter

DeleteShortnerInternalServerError 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 DeleteShortnerNotFound

func DeleteShortnerNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.ShortnerController, path string) http.ResponseWriter

DeleteShortnerNotFound 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 DeleteShortnerOK

func DeleteShortnerOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.ShortnerController, path string) http.ResponseWriter

DeleteShortnerOK 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 GetShortnerInternalServerError

func GetShortnerInternalServerError(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.ShortnerController, path string) http.ResponseWriter

GetShortnerInternalServerError 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 GetShortnerNotFound

func GetShortnerNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.ShortnerController, path string) http.ResponseWriter

GetShortnerNotFound 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 GetShortnerOK

func GetShortnerOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.ShortnerController, path string) (http.ResponseWriter, *app.URL)

GetShortnerOK 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 UpdateShortnerInternalServerError

func UpdateShortnerInternalServerError(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.ShortnerController, path string, payload *app.UpdateLinkPayload) http.ResponseWriter

UpdateShortnerInternalServerError 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 UpdateShortnerNotFound

func UpdateShortnerNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.ShortnerController, path string, payload *app.UpdateLinkPayload) http.ResponseWriter

UpdateShortnerNotFound 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 UpdateShortnerOK

func UpdateShortnerOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.ShortnerController, path string, payload *app.UpdateLinkPayload) http.ResponseWriter

UpdateShortnerOK 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