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

Function TestStatus

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

Source from the content-addressed store, hash-verified

140}
141
142func TestStatus(t *testing.T) {
143 bl := NewLogger(100)
144 bl.SetLogger("console", nil)
145 code, s := bl.Status()
146 if code != WORK {
147 t.Errorf("Status = %v, want WORK", code)
148 }
149 if s != "WORK" {
150 t.Errorf("Status string = %v, want WORK", s)
151 }
152}
153
154func TestFlush(t *testing.T) {
155 bl := NewLogger(100)

Callers

nothing calls this directly

Calls 3

NewLoggerFunction · 0.85
SetLoggerMethod · 0.65
StatusMethod · 0.65

Tested by

no test coverage detected