[Unit Tests] ComboManager processInput/resetState, QuestBoard, and ExperienceDisplaySetting advanced coverage#247
Conversation
…perienceDisplaySetting advanced coverage - ComboManagerProcessInputTest: processInput with various inputs (RIGHT starts combo, LEFT when empty is no-op, non-allowed items, empty hand, unregistered player), pattern completions (RRR→SLOT_1, RRL→SLOT_2, RLR→SLOT_3) with event slot verification, dead-end resets, resetState methods, and timeout scheduling/expiry - QuestBoardTest: config-backed getters, daily/weekly rotation set/get/replace/null, reloadable content immutability and size, config reload behavior - ExperienceDisplaySettingAdvancedTest: getExperienceDisplay factory (BossBar, ActionBar), onSettingChange rebuild/no-create, sendExperienceUpdate config-disabled short-circuit https://claude.ai/code/session_01UMjC2xGVHJjKNxWkRFisnL
|
Warning Review limit reached
More reviews will be available in 47 minutes and 25 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 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 include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. 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 (3)
✨ 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
processInput()— RIGHT starts combo, LEFT when empty is no-op, non-allowed items skip processing, empty hand (AIR) is always allowed, unregistered player is a no-op. Pattern completions (RRR→SLOT_1, RRL→SLOT_2, RLR→SLOT_3) with event slot index verification via registered listener. Dead-end sequences (RLL) reset state.resetState(UUID)andresetState(McRPGPlayer)clear sequence and timeout. Timeout scheduling, refresh on each input, and expiration behavior tested via MockBukkit scheduler.maxAcceptedQuests,minimumTotalOfferings,maxScopedQuestsPerEntity), daily/weekly rotation set/get/replace/null-clear, rotation independence, reloadable content set size (3), immutability, and config reload propagation. Pure Mockito test — no MockBukkit dependency.getExperienceDisplay()factory returns correct subclass (BossBar/ActionBar) with matching setting enum.onSettingChange()rebuilds display when one exists, does not create when none exists.sendExperienceUpdate()short-circuits when config display is disabled.Coverage impact
Test plan
https://claude.ai/code/session_01UMjC2xGVHJjKNxWkRFisnL
Generated by Claude Code