[Unit Tests] ItemRewardType, CommandRewardType, ScalableCommandRewardType, QuestRarity coverage#249
[Unit Tests] ItemRewardType, CommandRewardType, ScalableCommandRewardType, QuestRarity coverage#249DiamondDagger590 wants to merge 1 commit into
Conversation
…Type, QuestRarity coverage Add 76 new unit tests across 4 coverage test files: - ItemRewardTypeCoverageTest (30 tests): fromSerializedConfig, grant, withAmountMultiplier, describeForDisplay, serializeConfig round-trips - CommandRewardTypeCoverageTest (15 tests): fromSerializedConfig, grant, withInlineDisplayLabel, describeForDisplay, serializeConfig - ScalableCommandRewardTypeCoverageTest (20 tests): fromSerializedConfig, grant with placeholder replacement, withAmountMultiplier, describeForDisplay - QuestRarityCoverageTest (11 tests): configureIcon all 3 branches, QuestRarityRegistry advanced coverage including rollRarity weight distribution https://claude.ai/code/session_014hgvFw6xUfgwM2CpENPphe
|
Warning Review limit reached
More reviews will be available in 48 minutes and 40 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 (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
fromSerializedConfig(top-level/nested/default amounts, display, localization, edge cases),serializeConfiground-trips,withAmountMultiplier(scaling, minimum enforcement, immutability),withLocalizationRoute,withInlineDisplayLabel,describeForDisplay(material formatting),getNumericAmount, andgrant(inventory verification, empty/zero/nested configs)fromSerializedConfig(display, missing commands, non-list commands, round-trip),withInlineDisplayLabel,describeForDisplay("Special Reward" fallback),serializeConfig,grant(player placeholder, multiple commands, empty list),getNumericAmount,withAmountMultiplierfromSerializedConfig(display, Integer type, defaults, round-trip),withInlineDisplayLabel,describeForDisplay(label+amount suffix),serializeConfig,grant(placeholder replacement, empty command, default instance),withAmountMultiplier(preserves label/command),withLocalizationRouteconfigureIconall 3 branches (null section, section with material, section without material using real YamlDocument sections),QuestRarityRegistryadvanced coverage (registered checks, getAll, register replaces, rollRarity weight distribution with seeded Random, clear, get empty, immutable keys)Test plan
./gradlew verifiedShadowJarBUILD SUCCESSFULMcRPGBaseTestwhere Bukkit interaction is needed@Testbefore@DisplayNameordering followedaction_outcome_whenConditionconventionhttps://claude.ai/code/session_014hgvFw6xUfgwM2CpENPphe
Generated by Claude Code