diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-03-21 08:12:51 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-03-21 08:12:56 +0100 |
commit | d2a78ee9288e4d3bace9125bcfae6b7747f85982 (patch) | |
tree | 5ccabf2111fec86a848065918b50f248496e02e5 /src/test/fuzz | |
parent | 9dbec0560054ba35d7df166f0fc75def70245e34 (diff) | |
parent | 3d086f42ab58f0f5984101d5285d5a707e3dc8e7 (diff) |
Merge #21488: test: add ParseUInt16() unit test and fuzz coverage
3d086f42ab58f0f5984101d5285d5a707e3dc8e7 test: add ParseUInt16() test coverage (Jon Atack)
Pull request description:
`ParseUInt16()` was just added in #21328.
ACKs for top commit:
practicalswift:
cr ACK 3d086f42ab58f0f5984101d5285d5a707e3dc8e7: patch looks correct & more coverage is better than less coverage
Tree-SHA512: bf7f96deb7c1531419565907f0ea8a8e32b368d4b823a3e80928b2c118edbf643ea06e357b4b5504a89f855caeed289daa9f823c740231ed6ad1b8ed00285ce8
Diffstat (limited to 'src/test/fuzz')
-rw-r--r-- | src/test/fuzz/parse_numbers.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/fuzz/parse_numbers.cpp b/src/test/fuzz/parse_numbers.cpp index 1ad5fb6a05..2c546e9b4a 100644 --- a/src/test/fuzz/parse_numbers.cpp +++ b/src/test/fuzz/parse_numbers.cpp @@ -21,6 +21,9 @@ FUZZ_TARGET(parse_numbers) uint8_t u8; (void)ParseUInt8(random_string, &u8); + uint16_t u16; + (void)ParseUInt16(random_string, &u16); + int32_t i32; (void)ParseInt32(random_string, &i32); (void)atoi(random_string); |