test

package
v0.0.0-...-427bb6c Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2016 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateContext

func CreateContext() (echo.Context, *http.Request, *httptest.ResponseRecorder)

CreateContext creates a fake Echo HttpContext for tests

func CreateJSONContext

func CreateJSONContext(data interface{}) (echo.Context, *httptest.ResponseRecorder, error)

CreateJSONContext creates a fake Echo HttpContext that accepts and responds json

func PanicErr

func PanicErr(err error)

PanicErr panics if err is not nil

Types

This section is empty.

Jump to

Keyboard shortcuts

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