What
Expand unit test coverage for http/websocket_server.cpp from current 39.9% line / 19.7% branch to >=70% line / >=50% branch.
Part of #953 .
Why
File is 308 LOC. WebSocket server has many protocol-level branches (frame types, control frames, fragmented messages) that are typically under-tested.
v1.0 readiness gate requires >=80% line coverage ecosystem-wide (see Prepare network_system for v1.0 release #964 ).
Where
Source: http/websocket_server.cpp (308 LOC)
Tests: tests/unit/http/
How
Approach
Audit existing websocket_server tests for uncovered branches.
Add tests for control frames: PING/PONG, CLOSE with various status codes, unsolicited control frames.
Add tests for fragmented messages: continuation frames, interleaved control frames between fragments, max fragment size.
Add tests for protocol violations: invalid opcodes, masked-from-server frames, payload size violations, RSV bit misuse.
Add tests for connection lifecycle: handshake failures, abrupt disconnects, idle timeout.
Re-run coverage workflow to verify thresholds met.
Acceptance Criteria
What
Expand unit test coverage for
http/websocket_server.cppfrom current 39.9% line / 19.7% branch to >=70% line / >=50% branch.Part of #953.
Why
Where
http/websocket_server.cpp(308 LOC)tests/unit/http/How
Approach
Acceptance Criteria
http/websocket_server.cppline coverage >= 70%http/websocket_server.cppbranch coverage >= 50%