[Unit Tests] BlockPlace, ConsumeItem, FishCatch, HarvestCrop objective type coverage#258
[Unit Tests] BlockPlace, ConsumeItem, FishCatch, HarvestCrop objective type coverage#258DiamondDagger590 wants to merge 1 commit into
Conversation
…atchObjectiveType, HarvestCropObjectiveType coverage Expand test coverage for 4 quest objective types from ~4 tests each to 11 tests each. Tests cover identity (getKey, getExpansionKey), canProcess (correct and incorrect context types), processProgress (wrong context, empty filter, matching filter, non-matching filter, multi-item filter), and parseConfig (no config key, with config key). Coverage improved from ~17-18% to 56.4% for all 4 classes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JAX6Xj3jQFRoRvRPmRCW6h
|
Warning Review limit reached
More reviews will be available in 55 minutes and 19 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ 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 |
Summary
BlockPlaceObjectiveType,ConsumeItemObjectiveType,FishCatchObjectiveType, andHarvestCropObjectiveTypefrom ~4 tests each to 11 tests each@Nestedgroups: Identity, CanProcess, ProcessProgress, ParseConfigdescribeObjective()methods which require localization manager mocking (known gap, consistent with other test PRs)Test plan
./gradlew verifiedShadowJar)action_outcome_whenConditionnaming and short@DisplayNamelabelsMcRPGBaseTestMockBukkit.mock()/unmock()calls🤖 Generated with Claude Code
https://claude.ai/code/session_01JAX6Xj3jQFRoRvRPmRCW6h
Generated by Claude Code