Skip to content

refactor(config): move inline tests to module#3345

Draft
cyq1017 wants to merge 1 commit into
Hmbown:mainfrom
cyq1017:codex/codewhale-3307-config-tests
Draft

refactor(config): move inline tests to module#3345
cyq1017 wants to merge 1 commit into
Hmbown:mainfrom
cyq1017:codex/codewhale-3307-config-tests

Conversation

@cyq1017

@cyq1017 cyq1017 commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Closes #3307

Problem

crates/config/src/lib.rs carries a large inline test module, which increases the production file size and future conflict surface.

Change

Move the config tests into crates/config/src/tests.rs and keep the production module wired through #[cfg(test)] mod tests;. No assertions or production logic were changed.

Verification

  • cargo fmt --check
  • cargo test -p codewhale-config

Signed-off-by: cyq <15000851237@163.com>
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v0.8.63: Extract inline tests from the largest Rust files before deeper refactors

1 participant