Commit 171b954
authored
test(quic): add extended coverage tests for connection module (#1000)
Add 127 new GTest cases targeting lower-coverage code paths in
src/protocols/quic/connection.cpp:
- String conversion default branches (out-of-range enum values)
- Constructor variants (DCID lengths, server vs client)
- Transport parameter application side effects
- Connection ID add/retire ordering and edge cases
- Receive packet error and ignore paths
- generate_packets() in idle/closing/closed states
- Timer behavior with very short idle timeouts
- close()/close_application() interaction and idempotency
- PMTUD enable/disable side effects on path_mtu()
- has_pending_data() across pending crypto/ACK/close states
- active_peer_cid() fallback paths
All tests are deterministic, perform no real network IO,
and use public API only. Suite passes in 400ms;
existing 78-test connection module suite unaffected.
Closes #9901 parent f070a78 commit 171b954
2 files changed
Lines changed: 1712 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4650 | 4650 | | |
4651 | 4651 | | |
4652 | 4652 | | |
| 4653 | + | |
4653 | 4654 | | |
4654 | 4655 | | |
4655 | 4656 | | |
| |||
0 commit comments