TDApiTest

package module
v0.0.0-...-7ffcd04 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbstractRouter

type AbstractRouter interface {
	ServeHTTP(http.ResponseWriter, *http.Request)
}

type TDApiTest

type TDApiTest struct {
	RespRec        *httptest.ResponseRecorder
	TestContainers TestContainers
	// contains filtered or unexported fields
}

func NewTDApiTest

func NewTDApiTest(router AbstractRouter) *TDApiTest

func (*TDApiTest) RunTests

func (td *TDApiTest) RunTests(t *testing.T)

type TestContainer

type TestContainer struct {
	Method     string
	Path       string
	TestsToRun TestsToRun
}

type TestContainers

type TestContainers []TestContainer

type TestToRun

type TestToRun struct {
	Desc     string
	Header   map[string]string
	Params   url.Values
	Status   int
	TestFunc func(*testing.T, string)
}

type TestsToRun

type TestsToRun []TestToRun

Directories

Path Synopsis
Godeps
_workspace/src/github.com/gorilla/context
Package context stores values shared during a request lifetime.
Package context stores values shared during a request lifetime.
_workspace/src/github.com/gorilla/mux
Package gorilla/mux implements a request router and dispatcher.
Package gorilla/mux implements a request router and dispatcher.
_workspace/src/github.com/stretchr/testify/assert
Package assert provides a set of comprehensive testing tools for use with the normal Go testing system.
Package assert provides a set of comprehensive testing tools for use with the normal Go testing system.
_workspace/src/github.com/unrolled/render
Package render is a package that provides functionality for easily rendering JSON, XML, binary data, and HTML templates.
Package render is a package that provides functionality for easily rendering JSON, XML, binary data, and HTML templates.

Jump to

Keyboard shortcuts

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