MCPcopy Create free account
hub / github.com/pace/bricks / Fatal

Method Fatal

test/livetest/test_proxy.go:85–88  ·  view source on GitHub ↗

Fatal logs the passed message in the context of the test and fails the test

(args ...interface{})

Source from the content-addressed store, hash-verified

83
84// Fatal logs the passed message in the context of the test and fails the test
85func (t *T) Fatal(args ...interface{}) {
86 log.Ctx(t.ctx).Error().Msg(fmt.Sprint(args...))
87 t.FailNow()
88}
89
90// Fatalf logs the passed message in the context of the test and fails the test
91func (t *T) Fatalf(format string, args ...interface{}) {

Calls 3

FailNowMethod · 0.95
CtxFunction · 0.92
ErrorMethod · 0.45