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

Function TestRenderTabWithoutBranch

internal/tui/tabbar_test.go:31–46  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

29}
30
31func TestRenderTabWithoutBranch(t *testing.T) {
32 tb := &TabBar{}
33
34 entry := TabEntry{
35 Name: "auth",
36 LoopState: loop.LoopStateReady,
37 Total: 8,
38 Completed: 3,
39 }
40
41 result := tb.renderTab(entry, 1)
42 // Should not contain a branch bracket like [chief/auth], but may contain [3/8] progress
43 if strings.Contains(result, "[chief/") {
44 t.Errorf("expected tab without branch to not contain branch brackets, got: %s", result)
45 }
46}
47
48func TestRenderTabBranchTruncation(t *testing.T) {
49 tb := &TabBar{}

Callers

nothing calls this directly

Calls 1

renderTabMethod · 0.95

Tested by

no test coverage detected