test(codegen): cover NBC order and numeric field intersection - #10964
proggeramlug wants to merge 2 commits into
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 8 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe change passes the NBC order gate into numeric input shaping and adds tests for enabled and disabled modes. The tests verify numeric-field intersection across proven receivers, exclusion of receiver-specific fields, and retention of dynamic fields for unproven receivers. ChangesNBC shape input collection
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Merge Risk: ⚪ Minimal · up to The change makes NBC shape-input gating explicit and adds coverage for enabled intersection behavior and disabled no-op behavior. It is mergeable with normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 60.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 2 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1🧪 Generate unit tests (beta)
🛠️ Fix failing CI checks 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Landed on main in merge train 256 (#11018, v0.5.1638), main Carried at head Trains rebase-merge, so commits get new SHAs and GitHub cannot mark this PR merged. Closed as landed. |
Fixes #10954.
Pass the
PERRY_L14_NBC_ORDERgate result into the shape-input helper so unit tests can exercise both modes without mutating process-wide environment variables. The new test uses two proven receivers and checks that only fields numeric on both are admitted to the number-by-construction fixpoint. It also rejects an unproven receiver and verifies the disabled mode contributes no shape inputs.Verification:
cargo test -p perry-codegen nbc_order_intersects_numeric_fields_before_proving_property_locals --lib -- --nocapture(1 passed),cargo fmt --all -- --check, andgit diff --check.Summary by CodeRabbit