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

Function TestRenderCompactTabOmitsBranch

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

Source from the content-addressed store, hash-verified

68}
69
70func TestRenderCompactTabOmitsBranch(t *testing.T) {
71 tb := &TabBar{}
72
73 entry := TabEntry{
74 Name: "auth",
75 Branch: "chief/auth",
76 LoopState: loop.LoopStateRunning,
77 }
78
79 result := tb.renderCompactTab(entry, 1)
80 if strings.Contains(result, "chief/auth") {
81 t.Errorf("expected compact tab to omit branch, got: %s", result)
82 }
83}
84
85func TestTabEntryBranchField(t *testing.T) {
86 entry := TabEntry{

Callers

nothing calls this directly

Calls 1

renderCompactTabMethod · 0.95

Tested by

no test coverage detected