[Unit Tests] Add tests for WindowBoundary, PlayerStatModifier, and ability attributes#306
[Unit Tests] Add tests for WindowBoundary, PlayerStatModifier, and ability attributes#306DiamondDagger590 wants to merge 1 commit into
Conversation
…ility attributes Cover WindowBoundary.Fixed and WindowBoundary.Recurring (12 tests), PlayerStatModifier constructor/tick/expiry (9 tests), and four ability attribute types: AbilityTierAttribute, AbilityUnlockedAttribute, AbilityCooldownAttribute, AbilityToggledOffAttribute (47 tests) in the existing SpecializedAbilityAttributeCoverageTest. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NDoUhtmt3RuBLJrcm4n5pg
|
Warning Review limit reached
Next review available in: 55 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?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 reviews. How do review 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 refer docs for additional details. Review details⚙️ 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
WindowBoundary.FixedandWindowBoundary.Recurringrecord types covering datetime resolution, year offset behavior, timezone handling, and accessor methodsPlayerStatModifiercovering constructor/getters (including zero and negative values), tick no-op behavior, and never-expires semanticsSpecializedAbilityAttributeCoverageTestfor four previously untested ability attribute types:AbilityTierAttribute(14 tests): default/value constructors, shouldContentBeSaved logic, create factory, convertContent, displayable content, serializationAbilityUnlockedAttribute(11 tests): default/value constructors, shouldContentBeSaved for true/false, create factory, convertContent, serializationAbilityCooldownAttribute(11 tests): default/value constructors, shouldContentBeSaved for 0/past/future timestamps, create factory, convertContent, serializationAbilityToggledOffAttribute(11 tests): default/value constructors, shouldContentBeSaved, create factory, convertContent, display priority, GuiModifiableAttribute check, serializationTotal: 68 new tests
Test plan
QuestRewardDistributionResolverPotBehaviorTestunrelated to these changes)🤖 Generated with Claude Code
https://claude.ai/code/session_01NDoUhtmt3RuBLJrcm4n5pg
Generated by Claude Code