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

Function TestLogViewer_IsAutoScrolling

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

Source from the content-addressed store, hash-verified

160}
161
162func TestLogViewer_IsAutoScrolling(t *testing.T) {
163 lv := NewLogViewer()
164 if !lv.IsAutoScrolling() {
165 t.Error("Expected IsAutoScrolling to be true by default")
166 }
167
168 lv.ScrollUp()
169 // autoScroll should still be true if scrollPos is at 0
170 if !lv.IsAutoScrolling() {
171 t.Error("Expected IsAutoScrolling to remain true when at top")
172 }
173}
174
175func TestStripLineNumbers(t *testing.T) {
176 tests := []struct {

Callers

nothing calls this directly

Calls 3

IsAutoScrollingMethod · 0.95
ScrollUpMethod · 0.95
NewLogViewerFunction · 0.85

Tested by

no test coverage detected