(t *testing.T)
| 6 | ) |
| 7 | |
| 8 | func TestCompletionScreen_Configure(t *testing.T) { |
| 9 | cs := NewCompletionScreen() |
| 10 | cs.Configure("auth", 8, 10, "chief/auth", 5, true, 0, nil) |
| 11 | |
| 12 | if cs.PRDName() != "auth" { |
| 13 | t.Errorf("expected prdName 'auth', got '%s'", cs.PRDName()) |
| 14 | } |
| 15 | if cs.Branch() != "chief/auth" { |
| 16 | t.Errorf("expected branch 'chief/auth', got '%s'", cs.Branch()) |
| 17 | } |
| 18 | if !cs.HasBranch() { |
| 19 | t.Error("expected HasBranch() to be true") |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | func TestCompletionScreen_NoBranch(t *testing.T) { |
| 24 | cs := NewCompletionScreen() |
nothing calls this directly
no test coverage detected