Repository navigation
Commit 45c3368
committed
benchmark: cover rejected input in socket address parse
The parse benchmark only measured inputs that parse successfully, so the
rejection paths were unmeasured. Add a group covering the four ways the
parser bails: a non-address host and a legacy hex form that only
uv_inet_pton rejects, an out of range port, and an unterminated IPv6
address that never reaches uv_ip6_addr.
Assisted-by: Claude Opus 5
Signed-off-by: Guilherme Araújo <arauujogui@gmail.com>1 parent 7fd8d95 commit 45c3368
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
| |||
0 commit comments