testhelp

package
v0.0.0-...-8953aad Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestData

type TestData map[string]map[string]interface{}

func LoadTestData

func LoadTestData(file string) (TestData, error)

type TestServer

type TestServer struct {
	Handler http.Handler
}

func (*TestServer) GET

func (srv *TestServer) GET(path string, data interface{}) *httptest.ResponseRecorder

func (*TestServer) POST

func (srv *TestServer) POST(path string, data, result interface{}) *httptest.ResponseRecorder

Jump to

Keyboard shortcuts

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