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

Function TestOutput

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

Source from the content-addressed store, hash-verified

23}
24
25func TestOutput(t *testing.T) {
26 buf := new(bytes.Buffer)
27 log.SetOutput(buf)
28 Level = LevelDebug
29 output(LevelDebug, nil)
30
31 // outputf correctly prints string with proper Debug prefix
32 if !strings.Contains(buf.String(), levelPrefix[LevelDebug]) {
33 t.Fail()
34 }
35 return
36}
37
38func TestCriticalf(t *testing.T) {
39 buf := new(bytes.Buffer)

Callers

nothing calls this directly

Calls 2

outputFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…