Added unit tests for CompressScript function located in: compressor.cpp
Tested following cases for the CScript:
- CKeyID
- CScriptID
- Uncompressed CPubKey (of size : 65)
- Compressed CPubKey (of size: 32)
Added unit tests for CompressScript function located in: compressor.cpp
Tested following cases for the CScript:
@mmachicao Nice first-time contribution! Can you measure the coverage before and after your patch?
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.<!--2502f1a698b3751726fa55edcda76cd3-->
| Coverage | Change (pull 15104, eb0e9343315bf23eab513f9154e5ffd3ca11927a) | Reference (master, 9c719987718d9fcc3a689e50f5212acc7ead7606) |
|---|---|---|
| Lines | -0.0258 % | 87.3841 % |
| Functions | -0.0151 % | 84.4347 % |
| Branches | -0.0202 % | 51.4189 % |
<sup>Updated at: 2019-01-05T19:12:19.596954.</sup>
Thanks for adding tests!
DrahtBot's coverage statistics show a decrease in coverage? I don't see how this is possible @MarcoFalke
Also: Third pary libraries are separated by a new line
1 | @@ -2,13 +2,12 @@ 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | +#include <boost/test/unit_test.hpp>
third-party libraries are separated by a new line (like it was before), so please don't change that.
Yes, please keep the order of includes the same and only add new ones where necessary.
Feel free to take over this branch where I've cleaned up the changes to header ordering: https://github.com/laanwj/bitcoin/tree/2019_01_24_upd15104
<!--cf906140f33d8803c4a75a2196329ecb-->Needs rebase