blitzertest

package
v0.0.0-...-9fd2dd5 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2014 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChdirToMain

func ChdirToMain()

If we're inside a test, make sure to get out of the test dir so that templates can be found

Types

type AssertionError

type AssertionError struct{ Message string }

func (AssertionError) Error

func (e AssertionError) Error() string

type ResponseExpectation

type ResponseExpectation struct {
	Code      int
	BodyRegex string
	BodyJSON  string
}

func (*ResponseExpectation) AssertMatch

func (re *ResponseExpectation) AssertMatch(recorder *httptest.ResponseRecorder) error

Jump to

Keyboard shortcuts

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