Commit 7e0c1d4
authored
test(http): expand http_parser.cpp coverage with 112 cases (#1014)
Covers branches not reached by the existing http_parser_test suite: URL
encode/decode edge cases (percent truncation, lowercase hex, high-bit
bytes), query string delimiter handling (leading/trailing '&',
double '&', duplicate keys, URL-encoded delimiters), cookie
malformed-pair handling, parse_request_line / parse_status_line error
branches, parse_headers edge cases (multi-colon, empty value),
multipart form-data edge cases (missing Content-Disposition, quoted
boundary, empty field), chunked encoding boundary conditions (empty
body, exact-chunk-size, multi-chunk, lowercase Content-Length
removal, HTTP/1.0 fallback), byte-vector vs string_view parse parity,
binary body preservation, and round-trip invariants.
Follows the same pattern as tests/unit/hpack_coverage_test.cpp (#1009)
and tests/unit/quic_frame_coverage_test.cpp (#1011). Static symbol
verification in lieu of local build (CMake/ninja/compiler unavailable
in this environment).
Part of #953.
Closes #10131 parent 87e6cfc commit 7e0c1d4
2 files changed
Lines changed: 1265 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4703 | 4703 | | |
4704 | 4704 | | |
4705 | 4705 | | |
| 4706 | + | |
| 4707 | + | |
| 4708 | + | |
| 4709 | + | |
| 4710 | + | |
| 4711 | + | |
| 4712 | + | |
| 4713 | + | |
4706 | 4714 | | |
4707 | 4715 | | |
4708 | 4716 | | |
| |||
0 commit comments