MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / TestCompletionScreen_Configure

Function TestCompletionScreen_Configure

internal/tui/completion_test.go:8–21  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6)
7
8func 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
23func TestCompletionScreen_NoBranch(t *testing.T) {
24 cs := NewCompletionScreen()

Callers

nothing calls this directly

Calls 5

ConfigureMethod · 0.95
PRDNameMethod · 0.95
BranchMethod · 0.95
HasBranchMethod · 0.95
NewCompletionScreenFunction · 0.85

Tested by

no test coverage detected