(t *testing.T)
| 223 | } |
| 224 | |
| 225 | func TestSettingsOverlay_GHError(t *testing.T) { |
| 226 | s := NewSettingsOverlay() |
| 227 | s.LoadFromConfig(config.Default()) |
| 228 | |
| 229 | if s.HasGHError() { |
| 230 | t.Fatal("should not have GH error initially") |
| 231 | } |
| 232 | |
| 233 | s.SetGHError("gh not found") |
| 234 | if !s.HasGHError() { |
| 235 | t.Fatal("should have GH error after SetGHError") |
| 236 | } |
| 237 | |
| 238 | s.DismissGHError() |
| 239 | if s.HasGHError() { |
| 240 | t.Fatal("should not have GH error after dismiss") |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | func TestSettingsOverlay_Render(t *testing.T) { |
| 245 | s := NewSettingsOverlay() |
nothing calls this directly
no test coverage detected