MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / TestNewLogViewer

Function TestNewLogViewer

internal/tui/log_test.go:118–129  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

116}
117
118func TestNewLogViewer(t *testing.T) {
119 lv := NewLogViewer()
120 if lv == nil {
121 t.Fatal("NewLogViewer returned nil")
122 }
123 if !lv.autoScroll {
124 t.Error("Expected autoScroll to be true by default")
125 }
126 if len(lv.entries) != 0 {
127 t.Error("Expected entries to be empty")
128 }
129}
130
131func TestLogViewer_Clear(t *testing.T) {
132 lv := NewLogViewer()

Callers

nothing calls this directly

Calls 1

NewLogViewerFunction · 0.85

Tested by

no test coverage detected