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

Method Fatalf

test/livetest/test_proxy.go:91–94  ·  view source on GitHub ↗

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

(format string, args ...interface{})

Source from the content-addressed store, hash-verified

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{}) {
92 log.Ctx(t.ctx).Error().Msgf(format, args...)
93 t.FailNow()
94}
95
96// Log logs the passed message in the context of the test
97func (t *T) Log(args ...interface{}) {

Callers 15

TestMarshalPayloadFunction · 0.80
TestMarshalIDPtrFunction · 0.80
TestOmitsEmptyAnnotationFunction · 0.80
TestHasPrimaryAnnotationFunction · 0.80
TestSupportsAttributesFunction · 0.80
TestOmitsZeroTimesFunction · 0.80
TestMarshalISO8601TimeFunction · 0.80

Calls 3

FailNowMethod · 0.95
CtxFunction · 0.92
ErrorMethod · 0.45

Tested by 15

TestMarshalPayloadFunction · 0.64
TestMarshalIDPtrFunction · 0.64
TestOmitsEmptyAnnotationFunction · 0.64
TestHasPrimaryAnnotationFunction · 0.64
TestSupportsAttributesFunction · 0.64
TestOmitsZeroTimesFunction · 0.64
TestMarshalISO8601TimeFunction · 0.64