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

Function TestFormatBranchPathFull

internal/tui/picker_test.go:126–134  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

124}
125
126func TestFormatBranchPathFull(t *testing.T) {
127 p := &PRDPicker{}
128
129 result := p.formatBranchPath("chief/auth", ".chief/worktrees/auth/", 50)
130 expected := " chief/auth .chief/worktrees/auth/"
131 if result != expected {
132 t.Errorf("expected %q, got %q", expected, result)
133 }
134}
135
136func TestFormatBranchPathTruncatesPath(t *testing.T) {
137 p := &PRDPicker{}

Callers

nothing calls this directly

Calls 1

formatBranchPathMethod · 0.95

Tested by

no test coverage detected