(t *testing.T)
| 182 | } |
| 183 | |
| 184 | func TestCompletionScreen_PushError(t *testing.T) { |
| 185 | cs := NewCompletionScreen() |
| 186 | cs.Configure("auth", 8, 8, "chief/auth", 5, true, 0, nil) |
| 187 | cs.SetPushError("authentication failed") |
| 188 | cs.SetSize(80, 40) |
| 189 | |
| 190 | rendered := cs.Render() |
| 191 | if !strings.Contains(rendered, "Push failed") { |
| 192 | t.Error("expected 'Push failed' when push errored") |
| 193 | } |
| 194 | if !strings.Contains(rendered, "authentication failed") { |
| 195 | t.Error("expected error message in render output") |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | func TestCompletionScreen_PRInProgress(t *testing.T) { |
| 200 | cs := NewCompletionScreen() |
nothing calls this directly
no test coverage detected