itest

package
v0.0.0-...-086ef7a Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

README

itest

Package itest provides utility functions for integration tests

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertHandlerOK

func AssertHandlerOK(rc *routing.Context, h routing.Handler, c *check.C) *httptest.ResponseRecorder

AssertHandlerOK verifies if a HTTP request is successfull.

func NewPostJSON

func NewPostJSON(body []byte, c *check.C) *routing.Context

NewPostJSON creates a JSON post request

func NewRoutingGetCtx

func NewRoutingGetCtx(url string) *routing.Context

NewRoutingGetCtx creates a new GET request

func NewRoutingPostCtx

func NewRoutingPostCtx(values url.Values) *routing.Context

NewRoutingPostCtx returns new POST request with parameters encoded using url-encoding

Types

This section is empty.

Jump to

Keyboard shortcuts

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