Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: cygan on February 25, 2022, 03:59:42 PM



Title: Bitcoin Core 0.23.0 in progress...
Post by: cygan on February 25, 2022, 03:59:42 PM
happened to come across this tweet today, in which the developer Marco Falke shares with the public the further development compared to the current 0.22.0 version :)
since i unfortunately don't know that much about it, it would be nice if someone could explain the graphic shown for a normal user like me :-X

https://pbs.twimg.com/media/FMcsvpaXMAcGCcK?format=jpg&name=small
Quote
60% overall line coverage with fuzz tests. The upcoming Bitcoin Core 23.0 release will be the most fuzzed release.
https://twitter.com/MarcoFalke/status/1497215035617202176 (https://twitter.com/MarcoFalke/status/1497215035617202176)
https://marcofalke.github.io/btc_cov/fuzz.coverage/index.html (https://marcofalke.github.io/btc_cov/fuzz.coverage/index.html)


Title: Re: Bitcoin Core 0.23.0 in progress...
Post by: NotATether on February 26, 2022, 11:47:36 AM
This is just a chart that shows how much of the source code is ran by some test program in the /tests folder. It basically measures how much of the source code (lines, functions, and if/else paths) is covered by tests and the results are grouped by directory. It is used in profiling to see which functions are called the most so they can potentially be optimized.


Title: Re: Bitcoin Core 0.23.0 in progress...
Post by: NotATether on February 26, 2022, 12:06:36 PM
It's surprising source code for wallet have very low coverage (only 18.6% of function covered).

This is the coverage report for the "fuzz tests", a kind of test where you supply random, arbitrary data to functions and check if they crash, leak memory, or throw an exception. Other tests may have higher coverage for these folders. If you ask me, it's probably due to a lack of test cases written for these subsystems.


Title: Re: Bitcoin Core 0.23.0 in progress...
Post by: cygan on February 26, 2022, 12:17:12 PM
@NotATether
many thanks for the clarification :)
have then in relation to all the developer posts again learned something new to it


Title: Re: Bitcoin Core 0.23.0 in progress...
Post by: PawGo on February 26, 2022, 12:41:52 PM
It makes me wonder if they would like to share results from unit tests coverage check. Hmmm maybe if I have nothing better to do I will launch Bitcoin Core project in Sonarqube and see results.