MCPcopy
hub / github.com/expr-lang/expr / HTTPSuccessf

Function HTTPSuccessf

internal/testify/assert/assertion_format.go:334–339  ·  view source on GitHub ↗

HTTPSuccessf asserts that a specified handler returns a success status code. assert.HTTPSuccessf(t, myHandler, "POST", "http://www.google.com", nil, "error message %s", "formatted") Returns whether the assertion was successful (true) or not (false).

(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

332//
333// Returns whether the assertion was successful (true) or not (false).
334func HTTPSuccessf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{}) bool {
335 if h, ok := t.(tHelper); ok {
336 h.Helper()
337 }
338 return HTTPSuccess(t, handler, method, url, values, append([]interface{}{msg}, args...)...)
339}
340
341// Implementsf asserts that an object is implemented by the specified interface.
342//

Callers 2

HTTPSuccessfFunction · 0.92
HTTPSuccessfMethod · 0.70

Calls 2

HTTPSuccessFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…