MCPcopy Create free account
hub / github.com/cloudflare/cfssl / TestDebug

Function TestDebug

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

Source from the content-addressed store, hash-verified

125}
126
127func TestDebug(t *testing.T) {
128 buf := new(bytes.Buffer)
129 log.SetOutput(buf)
130 Level = LevelDebug
131 Debug(nil)
132
133 // outputf correctly prints string
134 if !strings.Contains(buf.String(), levelPrefix[LevelDebug]) {
135 t.Fail()
136 }
137 return
138}
139
140type testSyslogger struct {
141 *bytes.Buffer

Callers

nothing calls this directly

Calls 2

DebugFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…