ParseUInt16() was just added in #21328.
test: add ParseUInt16() unit test and fuzz coverage #21488
pull jonatack wants to merge 1 commits into bitcoin:master from jonatack:ParseUInt16-test-coverage changing 2 files +39 −0-
jonatack commented at 7:45 PM on March 20, 2021: member
-
test: add ParseUInt16() test coverage 3d086f42ab
- DrahtBot added the label Tests on Mar 20, 2021
-
practicalswift commented at 9:22 PM on March 20, 2021: contributor
cr ACK 3d086f42ab58f0f5984101d5285d5a707e3dc8e7: patch looks correct & more coverage is better than less coverage
- MarcoFalke merged this on Mar 21, 2021
- MarcoFalke closed this on Mar 21, 2021
-
in src/test/util_tests.cpp:1552 in 3d086f42ab
1547 | + BOOST_CHECK(!ParseUInt16("-1", &n)); 1548 | + BOOST_CHECK(!ParseUInt16("1 ", &n)); 1549 | + BOOST_CHECK(!ParseUInt16("1a", &n)); 1550 | + BOOST_CHECK(!ParseUInt16("aap", &n)); 1551 | + BOOST_CHECK(!ParseUInt16("0x1", &n)); // no hex 1552 | + BOOST_CHECK(!ParseUInt16("0x1", &n)); // no hex
kiminuo commented at 9:16 AM on March 21, 2021:These two lines look the same to me.
jonatack deleted the branch on Mar 21, 2021sidhujag referenced this in commit fc65f9795d on Mar 21, 2021fanquake referenced this in commit 80cb51cc6b on Mar 22, 2021sidhujag referenced this in commit 495322941e on Mar 22, 2021Fabcien referenced this in commit c38178957a on Feb 21, 2022DrahtBot locked this on Aug 16, 2022
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 21:14 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 21:14 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me