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

Function TestStringWithQuotes

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

Source from the content-addressed store, hash-verified

111}
112
113func TestStringWithQuotes(t *testing.T) {
114 l := New("test")
115 b := new(bytes.Buffer)
116 l.SetOutput(b)
117 l.SetLevel(DEBUG)
118 l.Debugf("Content-Type: %q", "")
119 assert.Contains(t, b.String(), `"message":"Content-Type: \"\""`)
120}
121
122func TestEmptyHeader(t *testing.T) {
123 l := New("test")

Callers

nothing calls this directly

Calls 5

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…