(t *testing.T)
| 160 | } |
| 161 | |
| 162 | func 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 | |
| 175 | func TestStripLineNumbers(t *testing.T) { |
| 176 | tests := []struct { |
nothing calls this directly
no test coverage detected