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

Function TestCanMergeRunningPRD

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

Source from the content-addressed store, hash-verified

237}
238
239func TestCanMergeRunningPRD(t *testing.T) {
240 p := &PRDPicker{
241 basePath: "/project",
242 entries: []PRDEntry{
243 {
244 Name: "auth",
245 Completed: 3,
246 Total: 8,
247 LoopState: loop.LoopStateRunning,
248 Branch: "chief/auth",
249 },
250 },
251 selectedIndex: 0,
252 }
253 if p.CanMerge() {
254 t.Error("expected CanMerge() to return false for running PRD")
255 }
256}
257
258func TestCanMergeAllPassedButNotCompleteState(t *testing.T) {
259 // All stories pass but loop state is Ready (e.g., not started via loop)

Callers

nothing calls this directly

Calls 1

CanMergeMethod · 0.95

Tested by

no test coverage detected