refactor(evaluator): rename test functions to match RuleMatch type (#60)#139
Conversation
Align test function names with the MatchResult -> RuleMatch rename (#60): test_match_result_* -> test_rule_match_*. Also update VS Code settings with deno path. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: UncleSp1d3r <unclesp1d3r@evilbitlabs.io>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
Summary by CodeRabbit
WalkthroughRemoved the VSCode settings file and renamed evaluator test identifiers and a public type from Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🟢 CI must passWonderful, this rule succeeded.All CI checks must pass. Release-plz PRs are exempt because they only bump versions and changelogs (code was already tested on main), and GITHUB_TOKEN-triggered force-pushes suppress CI.
🟢 Do not merge outdated PRsWonderful, this rule succeeded.Make sure PRs are within 10 commits of the base branch before merging
|
Signed-off-by: UncleSp1d3r <unclesp1d3r@evilbitlabs.io>
There was a problem hiding this comment.
Pull request overview
Aligns evaluator unit test names with the earlier internal type rename from MatchResult to RuleMatch, and updates workspace editor configuration.
Changes:
- Renamed three evaluator test functions from
test_match_result_*totest_rule_match_*. - Added a Deno path entry to the VS Code workspace settings.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/evaluator/mod.rs |
Renames test function identifiers to reflect the RuleMatch type name. |
.vscode/settings.json |
Adds deno.path configuration alongside existing workspace tooling settings. |
Comments suppressed due to low confidence (1)
.vscode/settings.json:31
deno.pathis hard-coded to a user-specific absolute path (/Users/kmelton/...), which will not exist for other contributors/CI and can cause VS Code to misconfigure Deno. Prefer removing this setting (letting the extension resolvedenofrom PATH) or using a portable value (e.g.,${env:HOME}-based or${workspaceFolder}-based path consistent with the existingmise-toolsentries).
|
Related Documentation 1 document(s) may need updating based on files changed in this PR: libMagic-rs architecture
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
🧪 CI InsightsHere's what we observed from your CI run for 109a1c2. 🟢 All jobs passed!But CI Insights is watching 👀 |
Reverts the accidental deletion of .vscode/settings.json and drops the deno.path setting that was not needed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: UncleSp1d3r <unclesp1d3r@evilbitlabs.io>
|
|
||
| #[test] | ||
| fn test_match_result_creation() { | ||
| fn test_rule_match_creation() { |
There was a problem hiding this comment.
PR description mentions "Update VS Code settings with deno path", but the PR diff/files shown here don’t include any change adding a Deno path (and current .vscode/settings.json contains no deno.* setting). Either update the description to match the actual changes, or include the intended VS Code settings change in this PR.
## 🤖 New release * `libmagic-rs`: 0.3.0 -> 0.3.1 (✓ API compatible changes) <details><summary><i><b>Changelog</b></i></summary><p> <blockquote> ## [0.3.1] - 2026-03-05 ### Refactor - **evaluator**: Rename test functions to match RuleMatch type ([#60](#60)) ([#139](#139)) <!-- generated by git-cliff --> </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/release-plz/release-plz/). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Summary
src/evaluator/mod.rsfromtest_match_result_*totest_rule_match_*to align with theMatchResult->RuleMatchtype rename completed earlierCloses #60
Test Plan
-D warnings🤖 Generated with Claude Code