(t *testing.T)
| 100 | } |
| 101 | |
| 102 | func TestLessModel_QCloses(t *testing.T) { |
| 103 | m := NewLessModel() |
| 104 | m.SetSize(80, 24) |
| 105 | m.SetContent("content", "Test") |
| 106 | |
| 107 | _, cmd := m.Update(tea.KeyPressMsg{Code: 'q'}) |
| 108 | if cmd == nil { |
| 109 | t.Fatal("expected cmd from q") |
| 110 | } |
| 111 | msg := cmd() |
| 112 | if _, ok := msg.(CloseOverlayMsg); !ok { |
| 113 | t.Fatalf("expected CloseOverlayMsg, got %T", msg) |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | func TestLessModel_SearchMode(t *testing.T) { |
| 118 | m := NewLessModel() |
nothing calls this directly
no test coverage detected