test(review): full branch coverage for the linked-issue-hard-rules-config src twin - #5870
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
…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.
c5606cf to
6a38109
Compare
|
Caution 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥 🛑 LoopOver review result - fixes requiredReview updated: 2026-07-14 21:30:15 UTC
🛑 Suggested Action - Fix Blockers Review summary Nits — 4 non-blocking
CI checks failing
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
[BETA] Chat with GittensoryAsk Gittensory 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/gittensory-commands 🟩 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.
|
|
Gittensory is closing this pull request on the maintainer's behalf (CI is failing (validate, validate-tests (3), validate-tests (2), validate-tests (1), validate-tests (6), validate-tests (5), validate-tests (4))). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
Fixes #5845.
src/review/linked-issue-hard-rules-config.tsis a byte-identical twin ofpackages/loopover-engine/src/review/linked-issue-hard-rules-config.ts(a directory-scanned parity pair). The engine copy has full branch coverage vialinked-issue-hard-rules-config-engine.test.ts, but the src twin's own test only exercised a subset of its normalizer branches.Test-only: adds the missing src-side cases to reach 100% branch coverage on the twin —
isLinkedIssueHardRuleModevalid/invalid inputsundefinedinput (all-off default, no warning) vs string/null top-level input (warns + default)closeDelaySecondsfloor (10.9→10) + clamp (5000→300) + invalid (negative / NaN → default 30 + warning)All 65 tests in the file pass; typecheck clean.