What
Expand unit test coverage for protocols/http2/http2_server.cpp from current 38.3% line / 19.4% branch to >=70% line / >=50% branch.
Part of #953.
Why
Where
- Source:
protocols/http2/http2_server.cpp (554 LOC)
- Tests:
tests/unit/protocols/http2/
How
Approach
- Audit existing http2_server tests for uncovered branches.
- Add tests for error paths: malformed client requests, GOAWAY initiation, RST_STREAM emission, stream ID exhaustion.
- Add tests for boundary cases: max concurrent streams, server push, header table updates, settings frame interleaving.
- Add tests for protocol violations: invalid pseudo-headers, header compression errors, flow-control violations.
- Re-run coverage workflow to verify thresholds met.
Acceptance Criteria
What
Expand unit test coverage for
protocols/http2/http2_server.cppfrom current 38.3% line / 19.4% branch to >=70% line / >=50% branch.Part of #953.
Why
Where
protocols/http2/http2_server.cpp(554 LOC)tests/unit/protocols/http2/How
Approach
Acceptance Criteria
protocols/http2/http2_server.cppline coverage >= 70%protocols/http2/http2_server.cppbranch coverage >= 50%