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

Function TestCanMergeNoBranch

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

Source from the content-addressed store, hash-verified

218}
219
220func TestCanMergeNoBranch(t *testing.T) {
221 p := &PRDPicker{
222 basePath: "/project",
223 entries: []PRDEntry{
224 {
225 Name: "auth",
226 Completed: 8,
227 Total: 8,
228 LoopState: loop.LoopStateComplete,
229 Branch: "",
230 },
231 },
232 selectedIndex: 0,
233 }
234 if p.CanMerge() {
235 t.Error("expected CanMerge() to return false for completed PRD without branch")
236 }
237}
238
239func TestCanMergeRunningPRD(t *testing.T) {
240 p := &PRDPicker{

Callers

nothing calls this directly

Calls 1

CanMergeMethod · 0.95

Tested by

no test coverage detected