MCPcopy Index your code
hub / github.com/gavv/httpexpect / Success

Method Success

expect_test.go:855–861  ·  view source on GitHub ↗

Success implements AssertionHandler.Success.

(ctx *AssertionContext)

Source from the content-addressed store, hash-verified

853
854// Success implements AssertionHandler.Success.
855func (h *contextAssertionHandler) Success(ctx *AssertionContext) {
856 if h.Formatter == nil {
857 panic("DefaultAssertionHandler.Formatter is nil")
858 }
859 h.Formatter.FormatSuccess(ctx)
860 h.AssertionContext = ctx
861}
862
863// Failure implements AssertionHandler.Failure.
864func (h *contextAssertionHandler) Failure(

Callers

nothing calls this directly

Calls 1

FormatSuccessMethod · 0.65

Tested by

no test coverage detected