Add comprehensive test coverage across all crates - #1
Merged
Conversation
- oxidebt-cache: Add 47 new tests covering BlockCache, PieceCache (ARC), BufferPool, MemoryBudget, and HashState (previously had zero tests) - oxidebt-tracker: Add 20 tests for HTTP/UDP response parsing, URL conversion, protocol routing, and compact peer format edge cases - oxidebt-net: Add 15 tests for PEX IPv6, bandwidth limiting, rate limiting, and port mapping - oxidebt-dht: Add 14 tests for announce_peer, response parsing, malformed message handling, NodeId edge cases, and routing table - oxidebt-torrent: Add 20 tests for InfoHash error paths, Metainfo edge cases, MagnetLink errors, and MerkleTree - oxidebt-peer: Add 20 tests for extension handshake, metadata messages, PEX encoding, bitfield edge cases, PeerId, and FastExtension state - engine/stats: Add 10 tests for RateCalculator and TorrentStats https://claude.ai/code/session_014Z9cWnuBb6Gdu2bVqJzf6H
- CI workflow: runs on push/PR to main with parallel jobs for rustfmt, clippy, workspace tests, and frontend build - Release workflow: triggered by version tags, builds cross-platform Tauri bundles (Linux, macOS arm64/x64, Windows) and creates GitHub draft releases with artifacts https://claude.ai/code/session_014Z9cWnuBb6Gdu2bVqJzf6H
- Apply rustfmt formatting to all files - Fix clippy::for_kv_map: iterate over map values directly - Fix clippy::collapsible_else_if and collapsible_if: collapse nested ifs - Fix clippy::io_other_error: use std::io::Error::other() - Fix clippy::unnecessary_sort_by: use sort_by_key - Fix clippy::needless_range_loop: use iterator instead of index loop - Fix clippy::op_ref: remove needless reference on comparison operand - Allow clippy::too_many_arguments on write_block https://claude.ai/code/session_014Z9cWnuBb6Gdu2bVqJzf6H
- Fix clippy::double_ended_iterator_last: use next_back() instead of last() - Fix clippy::manual_contains: use contains() instead of iter().any() - Fix clippy::collapsible_if: collapse nested if in share limits check - Fix clippy::useless_vec: use array literal in generate_torrents example - Allow clippy::too_many_arguments on add_rss_rule tauri command https://claude.ai/code/session_014Z9cWnuBb6Gdu2bVqJzf6H
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BufferPool, MemoryBudget, and HashState (previously had zero tests)
conversion, protocol routing, and compact peer format edge cases
limiting, and port mapping
malformed message handling, NodeId edge cases, and routing table
edge cases, MagnetLink errors, and MerkleTree
PEX encoding, bitfield edge cases, PeerId, and FastExtension state
https://claude.ai/code/session_014Z9cWnuBb6Gdu2bVqJzf6H