test(review): full branch coverage for the linked-issue-hard-rules-config src twin - #6040
Conversation
…ll branch coverage Fixes JSONbored#5845. src/review/linked-issue-hard-rules-config.ts is a byte-identical twin of the engine copy, but its own test exercised only a subset of the normalizer branches. Adds the missing src-side cases (isLinkedIssueHardRuleMode, undefined vs string/null top-level input, a fully-valid object, invalid mode / non-boolean fallbacks, and closeDelaySeconds floor/clamp/invalid handling), bringing the src twin to 100% branch coverage. Test-only.
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6040 +/- ##
===========================================
+ Coverage 78.09% 95.19% +17.09%
===========================================
Files 592 592
Lines 46951 46951
Branches 15003 15003
===========================================
+ Hits 36668 44695 +8027
+ Misses 8206 1503 -6703
+ Partials 2077 753 -1324
Flags with carried forward coverage won't be shown. Click here to find out more. |
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-15 07:35:44 UTC
✅ Suggested Action - Approve/Merge
Review summary Nits — 4 non-blocking
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://gittensory.aethereal.dev/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
Fixes #5845.
src/review/linked-issue-hard-rules-config.tsis a byte-identical twin of the engine copy (a directory-scanned parity pair). The engine copy has full branch coverage via its own test, but the src twin's test only exercised a subset of the normalizer branches.Test-only: adds the missing src-side cases to reach 100% branch coverage on the twin —
isLinkedIssueHardRuleModevalid/invalid;undefinedvs string/null top-level input; a fully-valid object (valid modes, label trimming, valid booleans, valid delay); invalid-mode and non-boolean field-default fallbacks; andcloseDelaySecondsfloor/clamp/invalid handling.All 65 tests in the file pass; typecheck clean.