Documentation ¶
Index ¶
- func CreateCourseBadRequest(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *goa.Error)
- func CreateCourseCreated(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *app.CourseMedia)
- func CreateCourseCreatedLink(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *app.CourseMediaLink)
- func CreateRegistrationBadRequest(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *goa.Error)
- func CreateRegistrationCreated(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *app.RegistrationMedia)
- func DeleteCourseBadRequest(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *goa.Error)
- func DeleteCourseNoContent(t *testing.T, ctx context.Context, service *goa.Service, ...) http.ResponseWriter
- func DeleteCourseNotFound(t *testing.T, ctx context.Context, service *goa.Service, ...) http.ResponseWriter
- func ListRegistrationOK(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, app.RegistrationMediaCollection)
- func ShowCourseBadRequest(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *goa.Error)
- func ShowCourseNotFound(t *testing.T, ctx context.Context, service *goa.Service, ...) http.ResponseWriter
- func ShowCourseOK(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *app.CourseMedia)
- func ShowCourseOKLink(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *app.CourseMediaLink)
- func ShowRegistrationBadRequest(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *goa.Error)
- func ShowRegistrationNotFound(t *testing.T, ctx context.Context, service *goa.Service, ...) http.ResponseWriter
- func ShowRegistrationOK(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *app.RegistrationMedia)
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 ¶
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 ¶
func ListRegistrationOK(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.RegistrationController) (http.ResponseWriter, app.RegistrationMediaCollection)
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 ¶
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.