(t *testing.T)
| 235 | } |
| 236 | |
| 237 | func TestCompletionScreen_PRError(t *testing.T) { |
| 238 | cs := NewCompletionScreen() |
| 239 | cs.Configure("auth", 8, 8, "chief/auth", 5, true, 0, nil) |
| 240 | cs.SetPushSuccess() |
| 241 | cs.SetPRError("gh not found, Install: https://cli.github.com") |
| 242 | cs.SetSize(80, 40) |
| 243 | |
| 244 | rendered := cs.Render() |
| 245 | if !strings.Contains(rendered, "PR creation failed") { |
| 246 | t.Error("expected 'PR creation failed' when PR errored") |
| 247 | } |
| 248 | if !strings.Contains(rendered, "gh not found") { |
| 249 | t.Error("expected error message in render output") |
| 250 | } |
| 251 | } |
| 252 | |
| 253 | func TestCompletionScreen_ConfigureResetsAutoActions(t *testing.T) { |
| 254 | cs := NewCompletionScreen() |
nothing calls this directly
no test coverage detected