-
Notifications
You must be signed in to change notification settings - Fork 38.7k
test: add ParseUInt16() unit test and fuzz coverage #21488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
cr ACK 3d086f4: patch looks correct & more coverage is better than less coverage |
| BOOST_CHECK(!ParseUInt16("0x1", &n)); // no hex | ||
| BOOST_CHECK(!ParseUInt16("0x1", &n)); // no hex |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two lines look the same to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Fixed in #21491, co-crediting you
3d086f4 test: add ParseUInt16() test coverage (Jon Atack) Pull request description: `ParseUInt16()` was just added in bitcoin#21328. ACKs for top commit: practicalswift: cr ACK 3d086f4: patch looks correct & more coverage is better than less coverage Tree-SHA512: bf7f96deb7c1531419565907f0ea8a8e32b368d4b823a3e80928b2c118edbf643ea06e357b4b5504a89f855caeed289daa9f823c740231ed6ad1b8ed00285ce8
7e34448 test: remove duplicate assertions in util_tests (Jon Atack) Pull request description: as noticed by Kiminuo in bitcoin/bitcoin#21488 (comment) ACKs for top commit: practicalswift: cr ACK 7e34448: patch looks correct vasild: ACK 7e34448 Tree-SHA512: ad3d5983ad3a665155d766843dfda7178ced47e82154838331e428ed0828a467c1cf4bf99270aaf191e94156d485fafd0a7d5bc68248c4c1304a00ca5a2a9d2e
7e34448 test: remove duplicate assertions in util_tests (Jon Atack) Pull request description: as noticed by Kiminuo in bitcoin#21488 (comment) ACKs for top commit: practicalswift: cr ACK 7e34448: patch looks correct vasild: ACK 7e34448 Tree-SHA512: ad3d5983ad3a665155d766843dfda7178ced47e82154838331e428ed0828a467c1cf4bf99270aaf191e94156d485fafd0a7d5bc68248c4c1304a00ca5a2a9d2e
Summary: This is a backport of [[bitcoin/bitcoin#21328 | core#21328]] [2/3] and [[bitcoin/bitcoin#21488 | core#21488]] (unit tests) bitcoin/bitcoin@2875a76 Depends on D11077 and D11081 Test Plan: `ninja all check-all bitcoin-fuzzers` Reviewers: #bitcoin_abc, Fabien Reviewed By: #bitcoin_abc, Fabien Subscribers: Fabien Differential Revision: https://reviews.bitcoinabc.org/D11078
ParseUInt16()was just added in #21328.