Follow-up: extract peer_manager mod tests into peer_manager/tests.rs #120
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
femboy/yip#120
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
After the
peer_manager.rsmodule split (#11, PR #119),mod.rsis 3,503 lines — of which ~1,314 are production code (the plan's target, met) and ~2,188 are the integration-style tests that driveon_udp/tickend-to-end, left inmod.rsbecause they don't belong to a single concern file.Follow-up (mechanical, zero behavior change): move
mod.rs's#[cfg(test)] mod testsintopeer_manager/tests.rs. Becausetests.rsstays a descendant ofpeer_manager,use super::*still reachesmod.rs's private free-helpers and fields, and the concern files'pub(super)methods stay visible — no visibility changes needed. This bringsmod.rsdown to ~1,300 lines (production only).Separately (larger, not mechanical):
tick_dispatchis ~411 lines and holds the #116 escalation arm — a pre-existing size issue the split inherited, worth its own future refactor.Surfaced by the whole-branch review of PR #119.