docs: require direct unit tests for new helper functions - #1842
dheerajodha wants to merge 1 commit into
Conversation
Document that new public helper functions in policy/lib/ must have direct unit tests, not just indirect coverage through consuming rules. This reflects the existing convention enforced during code review but was not previously documented in AGENTS.md or .claude/rules/policy-rules.md. Resolves: EC-2098 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 WalkthroughWalkthroughThe change updates policy and contributor guidance to require direct unit tests for new public helper functions, including branch, edge-case, and caller-independent contract coverage. ChangesTesting guidance
Priority: ⬇️ Low — Defer this documentation-only change because it adds contributor guidance for direct tests without altering exported behavior or runtime product functionality. Estimated code review effort: 1 (Trivial) | ~3 minutes Merge Risk: ⚪ Minimal · up to This updates guidance so new public policy helpers receive direct unit tests. It does not change product behavior and has no remaining merge-blocking risk. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
🤖 Finished Review · ✅ Success · Started 12:23 PM UTC · Completed 12:32 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-7 · Effort: high · Cost: $4.39 |
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
Risk Assessment: moderate (2/5) DetailsSmall, docs-only change (2 files, 8 lines added) touching 2 protected governance paths (.claude/ and AGENTS.md) with no code, dependency, or CI surface. Author is an established contributor; modest tier-2 multi-author contention on AGENTS.md pushes the score above the minimum but overall risk is low-to-moderate. |
ReviewFindingsMedium
Low
|
simonbaird
left a comment
There was a problem hiding this comment.
Okay I guess.
Ps, I though we were supposed to be instruct Fullsend to make these PRs automatically. Not sure exactly how, but I think you type /fs-fix in the upstream issue, or something like that.
What:
Document that new public helper functions in policy/lib/ must have direct unit tests, not just indirect coverage through consuming rules. This reflects the existing convention enforced during code review but was not previously documented in AGENTS.md or .claude/rules/policy-rules.md.
Why:
This helps us to ensure accurate test coverage of our helper functions.
Tickets:
Resolves: EC-2098