Documentation ¶
Index ¶
- func AssertPatchSeries(t *testing.T, blob []byte, expected ...string)
- func AssertResponseBody(t *testing.T, response *httptest.ResponseRecorder, expectedBody string)
- func AssertResponseCode(t *testing.T, response *httptest.ResponseRecorder, expectedCode int)
- func AssertResponseHeader(t *testing.T, response *httptest.ResponseRecorder, header string, ...)
- func BuildExecutables() (func(), error)
- func RootDir() string
- func SecretPath() string
- func TestServerWithHandler(url *regexp.Regexp, handler http.HandlerFunc) *httptest.Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertPatchSeries ¶ added in v0.8.5
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 BuildExecutables ¶ added in v0.7.9
func BuildExecutables() (func(), error)
func SecretPath ¶ added in v0.8.0
func SecretPath() string
func TestServerWithHandler ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.