Add support for round room paint calculations#23
Conversation
Refactored RoomDimensions from a concrete record to a sealed interface to support multiple room shapes. Created RectangularRoom and RoundRoom implementations, with RoundRoom calculating area as πr². Added shape selection menu to PaintCalculator to prompt for room type before collecting dimensions.
|
Warning Review limit reached
Your plan currently allows 1 review/hour. Refill in 23 minutes and 9 seconds. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more review capacity refills, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (8)
✨ 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 @@
## main #23 +/- ##
============================================
+ Coverage 77.41% 78.33% +0.91%
- Complexity 116 123 +7
============================================
Files 33 34 +1
Lines 403 420 +17
Branches 24 25 +1
============================================
+ Hits 312 329 +17
Misses 84 84
Partials 7 7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Refactored RoomDimensions from a concrete record to a sealed interface to support multiple room shapes. Created RectangularRoom and RoundRoom implementations, with RoundRoom calculating area as πr². Added shape selection menu to PaintCalculator to prompt for room type before collecting dimensions.