[Unit Tests] Filter system, Loadout active abilities, and shared test stubs coverage#239
[Unit Tests] Filter system, Loadout active abilities, and shared test stubs coverage#239DiamondDagger590 wants to merge 1 commit into
Conversation
Cover 10 filter classes (AbilityFilter variants, AbilityKeyFilter variants, McRPGChainPlayerContextFilter, SkillHolderDataPresentFilter) and Loadout getOrderedActiveAbilities/swapActivePositions with 40+ new test cases. Extract shared ability stubs into testFixtures to eliminate duplication across test files. https://claude.ai/code/session_013xEDA3KdWh2GVKGbM6XA59
|
Warning Review limit reached
More reviews will be available in 43 minutes and 42 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ 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 (10)
✨ 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
ActiveAbilityFilter,PassiveAbilityFilter,UnlockableAbilityFilter,InnateAbilityFilter,AbilityUpgradeFilter,AbilityKeyComboActivatableFilter,AbilityKeyUnlockedFilter,AbilityKeyInLoadoutFilter,McRPGChainPlayerContextFilter, andSkillHolderDataPresentFilterLoadout.getOrderedActiveAbilities()andLoadout.swapActivePositions()covering combo ability ordering, passive interspersion, same-slot no-op, out-of-range slots, zero slots, negative index edge case, and empty loadoutStubAbilityBase,StubActiveUnlockableAbility,StubPassiveUnlockableAbility,StubInnateAbility, andStubComboActivatableAbilityintosrc/testFixtures/java/us/eunoians/mcrpg/ability/stub/to eliminate duplication across test filesClasses covered (previously at 0% or no tests)
ActiveAbilityFilterPassiveAbilityFilterUnlockableAbilityFilterInnateAbilityFilterAbilityUpgradeFilterAbilityKeyComboActivatableFilterAbilityKeyUnlockedFilterAbilityKeyInLoadoutFilterMcRPGChainPlayerContextFilterSkillHolderDataPresentFilterLoadout(active abilities)Total: 40+ new test cases across 5 test files and 5 shared fixture classes
Test plan
./gradlew verifiedShadowJarhttps://claude.ai/code/session_013xEDA3KdWh2GVKGbM6XA59
Generated by Claude Code