MCPcopy
hub / github.com/op/go-logging / TestRealFuncFormat

Function TestRealFuncFormat

format_test.go:49–57  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

47}
48
49func TestRealFuncFormat(t *testing.T) {
50 backend := InitForTesting(DEBUG)
51 SetFormatter(MustStringFormatter("%{shortfunc}"))
52
53 line := realFunc(backend)
54 if "realFunc" != line {
55 t.Errorf("Unexpected format: %s", line)
56 }
57}
58
59func TestStructFuncFormat(t *testing.T) {
60 backend := InitForTesting(DEBUG)

Callers

nothing calls this directly

Calls 5

InitForTestingFunction · 0.85
SetFormatterFunction · 0.85
MustStringFormatterFunction · 0.85
realFuncFunction · 0.85
ErrorfMethod · 0.80

Tested by

no test coverage detected