[Unit Tests] Skill events, specialized ability attributes, and McRPGGainReason coverage#244
[Unit Tests] Skill events, specialized ability attributes, and McRPGGainReason coverage#244DiamondDagger590 wants to merge 1 commit into
Conversation
…ainReason coverage Add three new test files targeting previously untested areas: - SkillEventCoverageTest: 43 tests for all 7 skill event classes - SpecializedAbilityAttributeCoverageTest: 56 tests for 4 specialized attributes - McRPGGainReasonTest: 14 tests for the gain reason enum https://claude.ai/code/session_01NT6pXCUYxSWBPLR2V8Qgfw
|
Warning Review limit reached
More reviews will be available in 43 minutes and 58 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more credits in the billing tab to continue. ⌛ 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 |
Extensibility ReviewBreaking change risk: NONE — this diff adds only test classes with no changes to production source code. After a thorough review of all three files in this diff, every changed file resides under No extensibility concerns found. |
Summary
SkillEventbase,SkillGainExpEvent,PostSkillGainExpEvent,SkillGainLevelEvent,PostSkillGainLevelEvent,SkillRegisterEvent,SkillUnregisterEvent. Tests constructor overloads (Skill vs NamespacedKey), experience/level clamping viaMath.max(0, val), cancellation state, gain reason defaults, and handler list consistency.AbilityAttributeimplementations —AbilityLocationAttribute,RemoteTransferItemSetAttribute,MassHarvestPullItemsAttribute,AbilityUpgradeQuestAttribute. TestsshouldContentBeSaved()pass/fail branches,create(),convertContent(),serializeContent(),getDefaultContent(), display priority, database key names, namespaced keys, and error paths.McRPGGainReasonenum using@ParameterizedTest/@EnumSourcefor key generation, display names, namespace verification, uniqueness, andGainReasoninterface implementation.All 113 new tests pass. 12 pre-existing failures on the recode branch (InstantIrrigationTest, AbilityListenerManaTest, SkillListenerMaxLevelExperienceTest) are unrelated.
Test plan
./gradlew test@Test/@ParameterizedTestbefore@DisplayName)@DisplayNameuses short descriptive labels per CLAUDE.mdaction_outcome_whenConditionconventionhttps://claude.ai/code/session_01NT6pXCUYxSWBPLR2V8Qgfw
Generated by Claude Code