Repository navigation
[Unit Tests] Add ExtraOre and ItsATriple mining ability tests - #361
DiamondDagger590 wants to merge 1 commit into
Conversation
Add ExtraOreTest (13 tests) covering activation chance formula evaluation, multiplier map operations, reloadable content, and metadata accessors. Add ItsATripleTest (11 tests) covering tier-based activation chance with formula evaluation, tier-specific route preference, and metadata accessors. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PLknRfBuvUWEpfLYbjd9Yb
|
Claude finished @DiamondDagger590's task in 1m 8s —— View job Reviewing PR #361
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: QUIET Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughChangesMining ability tests
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Merge Risk: ⚪ Minimal · up to This change adds focused tests without modifying production behavior, and no actionable merge risk remains. 🚥 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
ExtraOreTest(13 tests) covering activation chance formula evaluation withmining_levelvariable, multiplier map operations (addMultiplier,getMultiplier,isBlockMultiplied), reloadable content accessors, and metadata (ability key, skill key, database name, enabled route, YAML document)ItsATripleTest(11 tests) covering tier-based activation chance with formula evaluation usingtiervariable, tier-specific route preference over all-tiers fallback, literal value passthrough, and metadata (ability key, skill key, database name, max tier from config, enabled route, tier configuration route, YAML document, applicable attributes)Details
Both test classes follow the established patterns from
BleedTest(non-tierable) andDeeperWoundTest(tierable):McRPGBaseTestfor MockBukkit setupYamlDocumentviaFileManagerfor config value resolution@Nested+@DisplayNamegrouping by method under testaction_outcome_whenConditionmethod naming conventionCoverage target: Mining ability classes (
ExtraOre,ItsATriple) previously had 0% test coverage. These 24 tests bring them in line with the existing swords ability test coverage.Test plan
./gradlew verifiedShadowJar— BUILD SUCCESSFUL)review-testing) returned CLEAN — no findings🤖 Generated with Claude Code
https://claude.ai/code/session_01PLknRfBuvUWEpfLYbjd9Yb
Generated by Claude Code
Summary by CodeRabbit