[Unit Tests] Add coverage for ChainExpirationHandler, StateTypeWarningLog, and TemplateStageDefinition - #349
[Unit Tests] Add coverage for ChainExpirationHandler, StateTypeWarningLog, and TemplateStageDefinition#349DiamondDagger590 wants to merge 1 commit into
Conversation
…emplateStageDefinition Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FZ6Wb7DXpLDjrG5NXAxtqP
|
Claude finished @DiamondDagger590's task in 1m 31s —— View job Claude is reviewing this PR
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: QUIET Plan: Team Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughChangesWarning Log Tests
Template Stage Definition Tests
Chain Expiration Handler Tests
Estimated code review effort: 3 (Moderate) | ~25 minutes Merge Risk: ⚪ Minimal · up to This change adds localized unit-test coverage without altering production behavior, dependencies, or deployment configuration; no actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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
fail-chain,retry,restart-chain,skip), retry counter management, and retry key construction. Tests both offline and online player branches, including event firing forQuestChainFailEvent,QuestChainStepAdvanceEvent, and chain state transitions. Uses mock database manager pattern for async DB access paths.Optionalwrapping of nullableconditionandobjectiveSelectionfields, and thewithObjectives()copy method preserving existing condition and selection config.Total: 32 new tests across 3 test files.
Test plan
./gradlew test— 5109+ tests, 0 failures)review-testing) run against changes — findings addressed (missing online-player branch coverage added, assertion method corrected)Generated by Claude Code
Summary by CodeRabbit