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

Function TestWarning

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

Source from the content-addressed store, hash-verified

74}
75
76func TestWarning(t *testing.T) {
77 buf := new(bytes.Buffer)
78 log.SetOutput(buf)
79 Warning(nil)
80
81 // outputf correctly prints string
82 if !strings.Contains(buf.String(), levelPrefix[LevelWarning]) {
83 t.Fail()
84 }
85 return
86}
87
88func TestInfof(t *testing.T) {
89 buf := new(bytes.Buffer)

Callers

nothing calls this directly

Calls 2

WarningFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…