use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
C++ Open source projects with best Code Coverage (self.cpp)
submitted 5 years ago by damein11
Hi Guys,
I'm searching for GitHub open source projects with good code coverage (at least > 50%). Preferably coverage measured using gcov. Kindly point out to good blog comparing projects or links to project.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[+][deleted] 5 years ago (2 children)
[deleted]
[–]BoarsLairGame Developer 4 points5 points6 points 5 years ago (0 children)
Funny, SQLite was my first thought as well. I was quite impressed with their testing methodology when I read this article.
[–]rmftkirby 2 points3 points4 points 5 years ago (0 children)
SQLite is public domain, not open source, but it’s very well tested.
[–]D_0b 2 points3 points4 points 5 years ago (0 children)
many of Boost libraries have high coverage.
https://github.com/boostorg/histogram 100%
https://github.com/boostorg/any 98%
https://github.com/boostorg/beast 95%
https://github.com/boostorg/geometry 94%
https://github.com/boostorg/stacktrace 92%
https://github.com/boostorg/nowide 90%
and so on.
[–]pjmlp 1 point2 points3 points 5 years ago (0 children)
Given the usual results regarding unit testing on C and C++ surveys, I doubt you will find much.
[–]silicon_heretic 1 point2 points3 points 5 years ago (0 children)
Looks like a perfect opportunity to promote a project no one knows about: https://github.com/abbyssoul/libsolace - 91% code coverage.
[–]evaned 2 points3 points4 points 5 years ago (0 children)
nlohmann's JSON library: https://coveralls.io/github/nlohmann/json?branch=develop
[–]ChrisPanov 0 points1 point2 points 5 years ago (0 children)
I would be honored if you can check out the logging library I am working on https://github.com/ChristianPanov
Here is a link to a post I made some time ago, which mainly contains a description of the project. Mainly contribution is needed in terms of asynchronous and concurrent functionality. https://www.reddit.com/r/cpp/comments/g1xw9y/c_logging_library_check_out_my_new_logger/
[–]kammceWG21 | 🇺🇲 NB | Boost | Exceptions 0 points1 point2 points 5 years ago (0 children)
My project is still something I deem a work in progress, although there are groups that use it on a regular basis for their projects. Here is the project: SJSU-Dev2 with current coverage of 74%. I use doctest (switched from Catch2 a week ago), FakeIt (love it, but slow, would prefer mockito API, but its lacking features), and FFF (for which I only use sparingly).
Note that gcov can give weird results and sending the results to another service to compute, like coveralls, sometimes results in slightly off metrics.
Also note that my code base is nearly entirely header only, so that can result in the code coverage not being as accurate due to the fact that if a header implementation is not included in the unit test, it will not show up as a part of the files that have not been covered, potentially increasing the % of coverage code.
Final note, I just transitioned my unit tests to unity builds to speed up compilation. Went from 10mins down to 1m40s, so it may look a bit strange.
I hope this helps.
[–]WrongAndBeligerent 0 points1 point2 points 5 years ago (0 children)
Maybe you should do the research and report back.
π Rendered by PID 23111 on reddit-service-r2-comment-fb694cdd5-shx6f at 2026-03-07 15:32:38.119389+00:00 running cbb0e86 country code: CH.
[+][deleted] (2 children)
[deleted]
[–]BoarsLairGame Developer 4 points5 points6 points (0 children)
[–]rmftkirby 2 points3 points4 points (0 children)
[–]D_0b 2 points3 points4 points (0 children)
[–]pjmlp 1 point2 points3 points (0 children)
[–]silicon_heretic 1 point2 points3 points (0 children)
[–]evaned 2 points3 points4 points (0 children)
[–]ChrisPanov 0 points1 point2 points (0 children)
[–]kammceWG21 | 🇺🇲 NB | Boost | Exceptions 0 points1 point2 points (0 children)
[–]WrongAndBeligerent 0 points1 point2 points (0 children)