fix: virtual member check in IgnoreVirtualMembersSpecimenBuilder#333
fix: virtual member check in IgnoreVirtualMembersSpecimenBuilder#333piotrzajac merged 1 commit intomasterfrom
Conversation
📝 WalkthroughWalkthroughUpdated virtual-member detection in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 1 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #333 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 39 39
Lines 419 419
Branches 53 53
=========================================
Hits 419 419
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In
`@src/Objectivity.AutoFixture.XUnit2.Core/SpecimenBuilders/IgnoreVirtualMembersSpecimenBuilder.cs`:
- Line 26: The replacement of pi.GetGetMethod(nonPublic: false) with
pi.GetGetMethod() is a behavior-preserving no-op; clarify intent in the PR or
code: if the goal is purely refactor/simplification, add a short comment in
IgnoreVirtualMembersSpecimenBuilder (around the Create method / the
virtual-property check) stating this is intentionally equivalent and update the
PR description; if the goal was instead to also omit virtual properties with
non-public getters, change the check to pi.GetGetMethod(nonPublic: true) in
IgnoreVirtualMembersSpecimenBuilder and update the related test
(GivenVirtualPropertyInfoWithPrivateGetter / VirtualPropertyWithPrivateGetter
expectation) to expect OmitSpecimen.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: c9ecf3fa-1ba2-4ce1-b234-1a2c33f050cc
📒 Files selected for processing (1)
src/Objectivity.AutoFixture.XUnit2.Core/SpecimenBuilders/IgnoreVirtualMembersSpecimenBuilder.cs
Qodana Community for .NETAnalyzed project: It seems all right 👌 No new problems were found according to the checks applied View the detailed Qodana reportTo be able to view the detailed Qodana report, you can either:
To get - name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2025.3.2
with:
upload-result: trueContact Qodana teamContact us at qodana-support@jetbrains.com
|
Summary
Summary by CodeRabbit
Checklist
type(scope): description)dotnet build src/Objectivity.AutoFixture.XUnit2.AutoMock.slnpasses with no warningsdotnet test src/Objectivity.AutoFixture.XUnit2.AutoMock.slnpasses on all framework slices[SuppressMessage]without a justification comment// TODO:comments added — open a GitHub issue instead