MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / TestFatalLog

Function TestFatalLog

utils/log/logwrapper_test.go:185–202  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

183}
184
185func TestFatalLog(t *testing.T) {
186 SetStringLevel("willusenextparam", ErrorLevel)
187 if GetLevel() != ErrorLevel {
188 t.Fail()
189 }
190
191 logrus.StandardLogger().ExitFunc = func(code int) {}
192 Fatal("Fatal")
193 Fatalln("Fatalln")
194 Fatalf("Fatalf %d", 1)
195
196 entry := WithError(errors.New("new"))
197 entry.Fatal("entry Fatal")
198 entry.Fatalln("entry Fatalln")
199 entry.Fatalf("entry Fatal %d", 1)
200
201 logrus.StandardLogger().ExitFunc = nil
202}

Callers

nothing calls this directly

Calls 10

SetStringLevelFunction · 0.85
GetLevelFunction · 0.85
FatalFunction · 0.85
FatallnFunction · 0.85
FatalfFunction · 0.85
WithErrorFunction · 0.85
FatalMethod · 0.80
FatallnMethod · 0.80
FatalfMethod · 0.80
NewMethod · 0.65

Tested by

no test coverage detected