(t *testing.T)
| 72 | } |
| 73 | |
| 74 | func TestCompletionScreen_RenderNoBranch(t *testing.T) { |
| 75 | cs := NewCompletionScreen() |
| 76 | cs.Configure("auth", 8, 8, "", 0, false, 0, nil) |
| 77 | cs.SetSize(80, 40) |
| 78 | |
| 79 | rendered := cs.Render() |
| 80 | if strings.Contains(rendered, "Branch:") { |
| 81 | t.Error("expected no 'Branch:' when no branch is set") |
| 82 | } |
| 83 | if strings.Contains(rendered, "commit") { |
| 84 | t.Error("expected no commit info when no branch is set") |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | func TestCompletionScreen_RenderNoAutoActions(t *testing.T) { |
| 89 | cs := NewCompletionScreen() |
nothing calls this directly
no test coverage detected