MCPcopy
hub / github.com/ipfs/kubo / Fatal

Method Fatal

test/cli/harness/log.go:79–84  ·  view source on GitHub ↗
(args ...any)

Source from the content-addressed store, hash-verified

77}
78
79func (t *TestLogger) Fatal(args ...any) {
80 timestamp := time.Now()
81 e := t.buildPrefix(timestamp) + fmt.Sprint(append([]any{"fatal: "}, args...)...)
82 t.add(&event{timestamp: timestamp, msg: e})
83 t.t.FailNow()
84}
85
86func (t *TestLogger) Fatalf(format string, args ...any) {
87 timestamp := time.Now()

Callers 15

makeNodeFunction · 0.80
TestSendTelemetryFunction · 0.80
TestByteSizeUnitFunction · 0.80
TestKeyTranslationFunction · 0.80
TestGetCidEncoderFunction · 0.80
TestEscNonPrintFunction · 0.80
TestPeersTotalFunction · 0.80
newTestServerAndNodeFunction · 0.80
TestVersionFunction · 0.80
TestCheckVersionOptionFunction · 0.80

Calls 2

buildPrefixMethod · 0.95
addMethod · 0.95

Tested by 15

makeNodeFunction · 0.64
TestSendTelemetryFunction · 0.64
TestByteSizeUnitFunction · 0.64
TestKeyTranslationFunction · 0.64
TestGetCidEncoderFunction · 0.64
TestEscNonPrintFunction · 0.64
TestPeersTotalFunction · 0.64
newTestServerAndNodeFunction · 0.64
TestVersionFunction · 0.64
TestCheckVersionOptionFunction · 0.64