Skip to content

Reduce module size below 400 lines by extracting tests #307

@coderabbitai

Description

@coderabbitai

Problem

The runtime module (src/server/runtime.rs) is currently 466 lines, exceeding the 400-line limit. Move the #[cfg(test)] mod tests block into a sibling test module or integration tests to keep the runtime module focused and maintainable.

Follow-up outline

  1. Create src/server/runtime/tests.rs (or tests/accept_backoff.rs) and move the test module there.
  2. Keep MockAcceptListener generation in the same module as the trait (already gated with #[cfg_attr(test, automock)]), so tests can import super::MockAcceptListener.

Context

  • Lines 288-465 contain the test module that should be extracted
  • This issue was identified during PR review

Backlinks

Requested by: @leynos

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions