testhelper

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2016 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertPatchSeries added in v0.8.5

func AssertPatchSeries(t *testing.T, blob []byte, expected ...string)

AssertPatchSeries takes a `git format-patch` blob, extracts the From xxxxx lines and compares the SHAs to expected list.

func AssertResponseBody

func AssertResponseBody(t *testing.T, response *httptest.ResponseRecorder, expectedBody string)

func AssertResponseCode

func AssertResponseCode(t *testing.T, response *httptest.ResponseRecorder, expectedCode int)

func AssertResponseHeader

func AssertResponseHeader(t *testing.T, response *httptest.ResponseRecorder, header string, expectedValue string)

func BuildExecutables added in v0.7.9

func BuildExecutables() (func(), error)

func RootDir added in v0.8.0

func RootDir() string

func SecretPath added in v0.8.0

func SecretPath() string

func TestServerWithHandler

func TestServerWithHandler(url *regexp.Regexp, handler http.HandlerFunc) *httptest.Server

Types

This section is empty.

Jump to

Keyboard shortcuts

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