(t *testing.T)
| 116 | } |
| 117 | |
| 118 | func 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 | |
| 131 | func TestLogViewer_Clear(t *testing.T) { |
| 132 | lv := NewLogViewer() |
nothing calls this directly
no test coverage detected