AssertSuccessNotCalled is a success http.Handler that fails if called.
(t *testing.T)
| 11 | |
| 12 | // AssertSuccessNotCalled is a success http.Handler that fails if called. |
| 13 | func AssertSuccessNotCalled(t *testing.T) http.Handler { |
| 14 | fn := func(w http.ResponseWriter, req *http.Request) { |
| 15 | assert.Fail(t, "unexpected call to success Handler") |
| 16 | } |
| 17 | return http.HandlerFunc(fn) |
| 18 | } |
| 19 | |
| 20 | // AssertFailureNotCalled is a failure http.Handler that fails if called. |
| 21 | func AssertFailureNotCalled(t *testing.T) http.Handler { |
no outgoing calls