Skip to content

Commit 0980fdc

Browse files
sanityclaude
andcommitted
test: add comprehensive unit tests for ring module
- Fix Score::Ord to use total_cmp() for consistent NaN handling (previous implementation would treat NaN as equal to everything) - Add score.rs to mod.rs exports - Add ~100 new tests covering: - score.rs: ordering, NaN/infinity handling, sorting - location.rs: distance calculations, IPv4/IPv6 mapping, hashing - peer_key_location.rs: PeerAddr variants, ordering, serialization - connection_manager.rs: should_accept logic, transient connections, routing, peer identity updates 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 051af68 commit 0980fdc

File tree

5 files changed

+1249
-13
lines changed

5 files changed

+1249
-13
lines changed

0 commit comments

Comments
 (0)