--- LessModel tests ---
(t *testing.T)
| 74 | // --- LessModel tests --- |
| 75 | |
| 76 | func TestLessModel_SetContent(t *testing.T) { |
| 77 | m := NewLessModel() |
| 78 | m.SetSize(80, 24) |
| 79 | m.SetContent("line1\nline2\nline3", "Test") |
| 80 | |
| 81 | v := m.View() |
| 82 | if v == "" { |
| 83 | t.Fatal("View() should not be empty after SetContent") |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | func TestLessModel_EscCloses(t *testing.T) { |
| 88 | m := NewLessModel() |
nothing calls this directly
no test coverage detected