Repository navigation
Add WmiUtil unit test - #3271
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (12)
🔇 Additional comments (1)
📝 WalkthroughWalkthroughAdds a new JUnit test class ChangesWMI Utility Test Coverage
🎯 2 (Simple) | ⏱️ ~10 minutes
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 |
Tests WmiUtil type extraction methods, WmiQuery constructor validation, and WmiConstants usage with a mock WmiResult implementation. Runs on all platforms to improve coverage of the common WMI infrastructure.
a9da34c to
6909d68
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3271 +/- ##
============================================
- Coverage 74.42% 74.31% -0.11%
Complexity 73 73
============================================
Files 406 406
Lines 16047 16047
Branches 2554 2554
============================================
- Hits 11943 11926 -17
- Misses 2623 2629 +6
- Partials 1481 1492 +11
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:
|
Adds a
WmiUtilTestinoshi-commonthat exercises the common WMI infrastructure on all platforms using a mockWmiResultimplementation.Covers:
WmiUtil— getString, getUint32, getUint64, getUint32asLong, getFloat, queryToString, type mismatch exceptionsWmiQuery— constructor null validationWmiConstants— CIM/VT type constants used in assertionsWmiResult— interface contract via mockThis improves coverage for the common code introduced in the WMI refactoring PRs.
Summary by CodeRabbit