fix(review): detect inline Rust tests in pre-merge checks #36
No reviewers
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Slipstream/auto_review!36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-29-in-file-rust-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
RGR evidence
RED:
GREEN / verification:
Closes #29
This PR enhances the pre-merge checks by detecting inline Rust tests, ensuring that added Rust in-file test attributes are treated as test changes. The changes are well-implemented and include a new test to verify the functionality. The PR appears safe to merge.
Walkthrough
CHANGELOG.md:
crates/ar-review/src/pre_merge.rs:
check_teststo include a check for Rust in-file test markers using the newadds_rust_testfunction.adds_rust_testfunction to identify Rust test markers in patches.tests_touched_accepts_added_rust_inline_testto verify the detection of added Rust inline tests.Pre-merge checks
This PR enhances the pre-merge checks by detecting inline Rust tests, ensuring that added Rust test markers are treated as test changes. The changes include a new function to identify Rust test markers and a corresponding test to verify this behavior. The update appears safe to merge.
Walkthrough
check_testsfunction has been updated to include a check for added Rust test markers using the newadds_rust_testfunction.adds_rust_testfunction is introduced to detect Rust test markers in patches, ensuring inline tests are recognized.tests_touched_accepts_added_rust_inline_test, is added to verify that thecheck_testsfunction correctly identifies added Rust inline tests.Pre-merge checks