MCPcopy
hub / github.com/andeya/pholcus / TestSetLevel

Function TestSetLevel

logs/logs/log_test.go:88–93  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

86}
87
88func TestSetLevel(t *testing.T) {
89 bl := NewLogger(100)
90 bl.SetLogger("console", nil)
91 bl.SetLevel(LevelError)
92 bl.Debug("should not appear")
93}
94
95func TestSetStealLevel(t *testing.T) {
96 bl := NewLogger(100, LevelError)

Callers

nothing calls this directly

Calls 4

NewLoggerFunction · 0.85
SetLevelMethod · 0.80
SetLoggerMethod · 0.65
DebugMethod · 0.65

Tested by

no test coverage detected