What
Expand unit-test coverage of src/internal/quic_socket.cpp from 43.7% line / 21.3% branch to >= 80% line / >= 70% branch (per coverage.yml).
This file currently has no dedicated, narrowly-scoped test expansion; it is a new target identified in the 2026-04-26 re-measurement.
Why
Where
- File:
src/internal/quic_socket.cpp (~439 lcov-executable lines)
- Tests: extend
tests/test_quic_socket.cpp
- Coverage workflow:
.github/workflows/coverage.yml
How
Technical Approach
- Read
quic_socket.cpp / quic_socket.h to enumerate API and error branches.
- Use the 2026-04-26 lcov report for uncovered lines/branches.
- Add tests for:
- Datagram send/recv error mapping (
Result<T> paths)
- PMTU probing edge cases
- ECN marking and feedback handling
- Path validation / migration error paths
- Use existing QUIC fixtures (loopback datagram transport); no real network.
Acceptance Criteria
Part of #953
What
Expand unit-test coverage of
src/internal/quic_socket.cppfrom 43.7% line / 21.3% branch to >= 80% line / >= 70% branch (percoverage.yml).This file currently has no dedicated, narrowly-scoped test expansion; it is a new target identified in the 2026-04-26 re-measurement.
Why
Part of #953— project-wide coverage push to 80%/70%.Where
src/internal/quic_socket.cpp(~439 lcov-executable lines)tests/test_quic_socket.cpp.github/workflows/coverage.ymlHow
Technical Approach
quic_socket.cpp/quic_socket.hto enumerate API and error branches.Result<T>paths)Acceptance Criteria
src/internal/quic_socket.cppline coverage >= 80%src/internal/quic_socket.cppbranch coverage >= 70%Part of #953