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

Function TestCanMergeCompletedWithBranch

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

Source from the content-addressed store, hash-verified

199}
200
201func TestCanMergeCompletedWithBranch(t *testing.T) {
202 p := &PRDPicker{
203 basePath: "/project",
204 entries: []PRDEntry{
205 {
206 Name: "auth",
207 Completed: 8,
208 Total: 8,
209 LoopState: loop.LoopStateComplete,
210 Branch: "chief/auth",
211 },
212 },
213 selectedIndex: 0,
214 }
215 if !p.CanMerge() {
216 t.Error("expected CanMerge() to return true for completed PRD with branch")
217 }
218}
219
220func TestCanMergeNoBranch(t *testing.T) {
221 p := &PRDPicker{

Callers

nothing calls this directly

Calls 1

CanMergeMethod · 0.95

Tested by

no test coverage detected