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

Function TestRenderTabEmptyBranch

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

Source from the content-addressed store, hash-verified

115}
116
117func TestRenderTabEmptyBranch(t *testing.T) {
118 tb := &TabBar{}
119
120 entry := TabEntry{
121 Name: "auth",
122 Branch: "",
123 LoopState: loop.LoopStateReady,
124 Total: 5,
125 Completed: 2,
126 }
127
128 result := tb.renderTab(entry, 1)
129 if strings.Contains(result, "[]") {
130 t.Errorf("expected empty branch to not show empty brackets, got: %s", result)
131 }
132}

Callers

nothing calls this directly

Calls 1

renderTabMethod · 0.95

Tested by

no test coverage detected