Skip to content

Add comprehensive test coverage across all crates - #1

Merged
jspwrd merged 4 commits into
mainfrom
claude/analyze-test-coverage-dPXTG
Mar 11, 2026
Merged

Add comprehensive test coverage across all crates#1
jspwrd merged 4 commits into
mainfrom
claude/analyze-test-coverage-dPXTG

Conversation

@jspwrd

@jspwrd jspwrd commented Mar 11, 2026

Copy link
Copy Markdown
Owner
  • 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

claude added 4 commits March 11, 2026 06:02
- 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
@jspwrd
jspwrd merged commit 4bcc3b9 into main Mar 11, 2026
4 checks passed
@jspwrd
jspwrd deleted the claude/analyze-test-coverage-dPXTG branch April 22, 2026 03:01
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.

2 participants