refactor(engine): move card_plugin tests into card_plugin/tests.rs #124

Merged
funman300 merged 1 commits from refactor/card-plugin-split-tests into master 2026-07-06 20:16:55 +00:00
Owner

First increment of #118 (module-split plan). card_plugin.rs (4,129 lines) becomes card_plugin/{mod.rs, tests.rs} (2,536 + 1,592), following the existing replay_overlay/ pattern.

  • Pure mechanical move: git mv preserves history (rename detected at 61% similarity); the #[cfg(test)] mod tests { … } block is extracted verbatim (dedented one level) into tests.rs.
  • No runtime code changes; all 70 tests preserved and passing.
  • cargo clippy --workspace -- -D warnings clean, cargo test --workspace green.

Issue #118 stays open for the remaining files (hud_plugin, settings_plugin, game_plugin, input_plugin) — one file per PR as planned.

Refs #118

🤖 Generated with Claude Code

First increment of #118 (module-split plan). `card_plugin.rs` (4,129 lines) becomes `card_plugin/{mod.rs, tests.rs}` (2,536 + 1,592), following the existing `replay_overlay/` pattern. - Pure mechanical move: `git mv` preserves history (rename detected at 61% similarity); the `#[cfg(test)] mod tests { … }` block is extracted verbatim (dedented one level) into `tests.rs`. - No runtime code changes; all 70 tests preserved and passing. - `cargo clippy --workspace -- -D warnings` clean, `cargo test --workspace` green. Issue #118 stays open for the remaining files (hud_plugin, settings_plugin, game_plugin, input_plugin) — one file per PR as planned. Refs #118 🤖 Generated with [Claude Code](https://claude.com/claude-code)
funman300 added 1 commit 2026-07-06 20:16:32 +00:00
First increment of the module-split plan: card_plugin.rs becomes
card_plugin/{mod.rs, tests.rs} (2,536 + 1,592 lines), following the
replay_overlay/ pattern. Pure mechanical move via git mv — no runtime
code changes; all 70 tests preserved and passing.

Refs #118

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
funman300 merged commit 3f5e4f4290 into master 2026-07-06 20:16:55 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: funman300/Ferrous-Solitaire#124