AssertFailureNotCalled is a failure http.Handler that fails if called.
(t *testing.T)
| 19 | |
| 20 | // AssertFailureNotCalled is a failure http.Handler that fails if called. |
| 21 | func AssertFailureNotCalled(t *testing.T) http.Handler { |
| 22 | fn := func(w http.ResponseWriter, req *http.Request) { |
| 23 | assert.Fail(t, "unexpected call to failure Handler") |
| 24 | } |
| 25 | return http.HandlerFunc(fn) |
| 26 | } |
| 27 | |
| 28 | // AssertBodyString asserts that a Request Body matches the expected string. |
| 29 | func AssertBodyString(t *testing.T, rc io.ReadCloser, expected string) { |
no outgoing calls