test

package
v0.0.0-...-3c3b521 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCourseBadRequest

func CreateCourseBadRequest(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, payload *app.CreateCoursePayload) (http.ResponseWriter, *goa.Error)

CreateCourseBadRequest Create 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 CreateCourseCreated

func CreateCourseCreated(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, payload *app.CreateCoursePayload) (http.ResponseWriter, *app.CourseMedia)

CreateCourseCreated Create 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 CreateCourseCreatedLink(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, payload *app.CreateCoursePayload) (http.ResponseWriter, *app.CourseMediaLink)

CreateCourseCreatedLink Create 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 CreateRegistrationBadRequest

func CreateRegistrationBadRequest(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.RegistrationController, payload *app.CreateRegistrationPayload) (http.ResponseWriter, *goa.Error)

CreateRegistrationBadRequest Create 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 CreateRegistrationCreated

func CreateRegistrationCreated(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.RegistrationController, payload *app.CreateRegistrationPayload) (http.ResponseWriter, *app.RegistrationMedia)

CreateRegistrationCreated Create 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 DeleteCourseBadRequest

func DeleteCourseBadRequest(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, id int) (http.ResponseWriter, *goa.Error)

DeleteCourseBadRequest Delete 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 DeleteCourseNoContent

func DeleteCourseNoContent(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, id int) http.ResponseWriter

DeleteCourseNoContent Delete 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 DeleteCourseNotFound

func DeleteCourseNotFound(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, id int) http.ResponseWriter

DeleteCourseNotFound Delete 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 ListRegistrationOK

ListRegistrationOK List 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 ShowCourseBadRequest

func ShowCourseBadRequest(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, id int) (http.ResponseWriter, *goa.Error)

ShowCourseBadRequest Show 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 ShowCourseNotFound

func ShowCourseNotFound(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, id int) http.ResponseWriter

ShowCourseNotFound Show 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 ShowCourseOK

func ShowCourseOK(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, id int) (http.ResponseWriter, *app.CourseMedia)

ShowCourseOK Show 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 ShowCourseOKLink(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, id int) (http.ResponseWriter, *app.CourseMediaLink)

ShowCourseOKLink Show 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 ShowRegistrationBadRequest

func ShowRegistrationBadRequest(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.RegistrationController, id int) (http.ResponseWriter, *goa.Error)

ShowRegistrationBadRequest Show 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 ShowRegistrationNotFound

func ShowRegistrationNotFound(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.RegistrationController, id int) http.ResponseWriter

ShowRegistrationNotFound Show 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 ShowRegistrationOK

func ShowRegistrationOK(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.RegistrationController, id int) (http.ResponseWriter, *app.RegistrationMedia)

ShowRegistrationOK Show 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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