What
Expand unit-test coverage of src/experimental/quic_server.cpp from 43.7% line / 17.5% branch to >= 80% line / >= 70% branch (per coverage.yml).
This file is a new target identified in the 2026-04-26 re-measurement; no prior narrow test-expansion sub-issue exists for it.
Why
Where
- File:
src/experimental/quic_server.cpp (~378 lcov-executable lines)
- Tests: extend
tests/test_messaging_quic_server.cpp (and add a focused fixture if needed)
- Coverage workflow:
.github/workflows/coverage.yml
How
Technical Approach
- Read
quic_server.cpp / quic_server.h to enumerate accept-loop and error branches.
- Use the 2026-04-26 lcov report for uncovered lines/branches.
- Add tests for:
- Connection acceptance failures (token validation, retry, version negotiation)
- Per-connection error fan-out and shutdown ordering
- Resource limits (max concurrent connections, stream caps)
- Graceful shutdown with in-flight streams
- Use the existing in-process QUIC harness; no real UDP sockets.
Acceptance Criteria
Part of #953
What
Expand unit-test coverage of
src/experimental/quic_server.cppfrom 43.7% line / 17.5% branch to >= 80% line / >= 70% branch (percoverage.yml).This file is a new target identified in the 2026-04-26 re-measurement; no prior narrow test-expansion sub-issue exists for it.
Why
Part of #953— project-wide coverage push to 80%/70%.experimental/.Where
src/experimental/quic_server.cpp(~378 lcov-executable lines)tests/test_messaging_quic_server.cpp(and add a focused fixture if needed).github/workflows/coverage.ymlHow
Technical Approach
quic_server.cpp/quic_server.hto enumerate accept-loop and error branches.Acceptance Criteria
src/experimental/quic_server.cppline coverage >= 80%src/experimental/quic_server.cppbranch coverage >= 70%Part of #953