Skip to content

refactor: move the operator tests next to the modules they exercise - #254

Merged
schroedk merged 1 commit into
mainfrom
refactor/split-operator-tests
Aug 13, 2026
Merged

refactor: move the operator tests next to the modules they exercise#254
schroedk merged 1 commit into
mainfrom
refactor/split-operator-tests

Conversation

@schroedk

Copy link
Copy Markdown
Collaborator

operator/tests.rs was the crate's largest file (766 lines) and the only tests.rs at a parent that owns none of the symbols under test — operator.rs is a re-export shell. It covered both design and schwarz, split internally along exactly that seam.

Now operator/design/tests.rs and operator/schwarz/tests.rs, matching the other seven tests.rs in the crate.

The one non-mechanical part: design_of was shared across the seam (via a qualified super::design_of call in the schwarz half), so it moves to its owning type as Design::from_levels_for_test, following CrossTab::from_dense_for_test. Importing it across the two test modules would have re-created the sibling edge the split removes.

Tests-only; no production code paths touched. 98/98 pass, clippy and fmt clean.

The 766-line operator/tests.rs sat at a re-export-only parent and covered
both children. Split along the design/schwarz seam; the design_of fixture
becomes Design::from_levels_for_test, matching CrossTab::from_dense_for_test.
@schroedk
schroedk merged commit 7bf1e93 into main Aug 13, 2026
5 checks passed
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.

1 participant