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

Method Success

assertion.go:248–260  ·  view source on GitHub ↗

Success implements AssertionHandler.Success.

(ctx *AssertionContext)

Source from the content-addressed store, hash-verified

246
247// Success implements AssertionHandler.Success.
248func (h *DefaultAssertionHandler) Success(ctx *AssertionContext) {
249 if h.Formatter == nil {
250 panic("DefaultAssertionHandler.Formatter is nil")
251 }
252
253 if h.Logger == nil {
254 return
255 }
256
257 msg := h.Formatter.FormatSuccess(ctx)
258
259 h.Logger.Logf("%s", msg)
260}
261
262// Failure implements AssertionHandler.Failure.
263func (h *DefaultAssertionHandler) Failure(

Callers 1

Calls 2

FormatSuccessMethod · 0.65
LogfMethod · 0.65

Tested by 1