test(cmd/verify-reqs): golden-file tests (T03.2, REQ-060)

---ci---
project: orca
phase: 3
milestone: v0.8
status: execute
---/ci---
This commit is contained in:
Jon Chery
2026-08-04 12:15:13 +00:00
parent fc2b020423
commit 016039d1a3
7 changed files with 241 additions and 4 deletions
+5 -4
View File
@@ -14,10 +14,11 @@ import (
// Requirement and Priority cells (which may contain markdown-escaped pipes
// like `localhost\|linux\|proxmox` — see REQ-049) and backtracks to anchor
// the Phase + Status match at the END of the line, where those two columns
// always live. The status cell may carry trailing notes (e.g.
// "**Complete** (P01 shipped v0.2.1)"), matched by [^|]* before the closing
// pipe.
var reqRowRe = regexp.MustCompile(`^\|\s*(REQ-\d+)\s*\|.*\|\s*([^|]*?)\s*\|\s*\*\*(Complete|Pending)\*\*[^|]*\|\s*$`)
// always live. The status token is optionally wrapped in markdown bold
// (real rows use `**Complete**`; synthetic/future rows may use bare
// `Pending`), and may carry trailing notes (e.g. "**Complete** (P01
// shipped v0.2.1)") matched by [^|]* before the closing pipe.
var reqRowRe = regexp.MustCompile(`^\|\s*(REQ-\d+)\s*\|.*\|\s*([^|]*?)\s*\|\s*\*{0,2}(Complete|Pending)\*{0,2}[^|]*\|\s*$`)
// milestoneCompleteRe matches a ROADMAP.md milestone header that is marked
// COMPLETE. The bold span is substring-tolerant (GRILL #4): it matches