Skip to content

refactor(auth): the embedded assets' test moves out of its module file - #725

Draft
PiquelChips wants to merge 1 commit into
mainfrom
refactor/long-test-modules
Draft

PiquelChips wants to merge 1 commit into
mainfrom
refactor/long-test-modules

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

What and why

The Rust conventions keep unit tests in a sibling tests.rs unless the block is 30 lines or fewer. A scan of every Rust file for an inline #[cfg(test)] mod … { … } that takes more than 30% of its file found one: apps/auth-service/src/assets.rs (43 of 124 lines). Its test moves to assets/tests.rs, and the module becomes assets/mod.rs, as the conventions have every module with children (and Clippy's self_named_module_files requires), so its include_bytes! paths gain one ../. Nothing else changes.

Testing

cargo clippy -p auth-service --all-targets -- -D warnings passes, and the module's test passes.

Note

Written by Claude Sonnet 5.5 in Claude Code (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs Triage

Development

Successfully merging this pull request may close these issues.

1 participant