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

Function TestLogViewer_SetSize

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

Source from the content-addressed store, hash-verified

148}
149
150func TestLogViewer_SetSize(t *testing.T) {
151 lv := NewLogViewer()
152 lv.SetSize(100, 50)
153
154 if lv.width != 100 {
155 t.Errorf("Expected width 100, got %d", lv.width)
156 }
157 if lv.height != 50 {
158 t.Errorf("Expected height 50, got %d", lv.height)
159 }
160}
161
162func TestLogViewer_IsAutoScrolling(t *testing.T) {
163 lv := NewLogViewer()

Callers

nothing calls this directly

Calls 2

SetSizeMethod · 0.95
NewLogViewerFunction · 0.85

Tested by

no test coverage detected