MCPcopy Create free account
hub / github.com/labstack/gommon / TestEmptyHeader

Function TestEmptyHeader

log/log_test.go:122–130  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

120}
121
122func TestEmptyHeader(t *testing.T) {
123 l := New("test")
124 b := new(bytes.Buffer)
125 l.SetOutput(b)
126 l.SetHeader("")
127 l.SetLevel(DEBUG)
128 l.Debugf("captain's log")
129 assert.Contains(t, b.String(), `captain's log`)
130}
131
132// TestCallerFile verifies that both text and JSON log paths report the
133// user's call site, not an internal wrapper frame. This guards against

Callers

nothing calls this directly

Calls 6

SetHeaderMethod · 0.80
SetLevelMethod · 0.80
DebugfMethod · 0.80
StringMethod · 0.80
NewFunction · 0.70
SetOutputMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…