(t *testing.T)
| 289 | } |
| 290 | |
| 291 | func TestSettingsOverlay_RenderGHError(t *testing.T) { |
| 292 | s := NewSettingsOverlay() |
| 293 | s.LoadFromConfig(config.Default()) |
| 294 | s.SetSize(80, 24) |
| 295 | |
| 296 | s.SetGHError("gh not found") |
| 297 | rendered := s.Render() |
| 298 | |
| 299 | if !strings.Contains(rendered, "GitHub CLI Error") { |
| 300 | t.Error("expected 'GitHub CLI Error' in rendered output") |
| 301 | } |
| 302 | if !strings.Contains(rendered, "gh not found") { |
| 303 | t.Error("expected error message in rendered output") |
| 304 | } |
| 305 | if !strings.Contains(rendered, "Press any key to dismiss") { |
| 306 | t.Error("expected dismiss hint in footer") |
| 307 | } |
| 308 | } |
| 309 | |
| 310 | func TestSettingsOverlay_RenderEditing(t *testing.T) { |
| 311 | s := NewSettingsOverlay() |
nothing calls this directly
no test coverage detected