# Codecov misreporting coverage

**URL:** <https://community.codecov.com/t/codecov-misreporting-coverage/1226>\
**Category:** Bug Fixes\
**Tags:** cpp, github\
**Created:** [April 6, 2020, 1:53pm UTC](https://community.codecov.com/t/codecov-misreporting-coverage/1226 "2020-04-06T13:53:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DX-MON](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/dx-mon/32/666_2.png) [@DX-MON](https://community.codecov.com/u/DX-MON)\
**Post date:** [April 6, 2020, 1:53pm UTC](https://community.codecov.com/t/codecov-misreporting-coverage/1226/1 "2020-04-06T13:53:57Z")

</div>

### Description

We have two implementations of a type called fd\_t - one is a simple RAII wrapper and the other is based around interface inheritance and implementation to allow it to be used more generically at a cost (the vtable). Both are in a header named ‘fd’ - but at different paths in the repo.

These two different versions are also in different namespaces, and are named the same as they’re designed to be drop-in replaceable with each other.

The advanced (vtabled) version shows 100% coverage as we’d expect, however the RAII wrapper version shows very minimal coverage despite having a very similar exhaustive test suite. I suspect codecov is mis-merging the coverage for one as part of the coverage for the other.

I have run `lcov` locally, and it shows 100% coverage of both versions as we’d expect.

### Repository

[GitHub - bad-alloc-heavy-industries/substrate: A collection of headers containing useful tools and gadgets for building C++ programs](https://github.com/bad-alloc-heavy-industries/substrate) | [Codecov](https://codecov.io/gh/bad-alloc-heavy-industries/substrate)

---

<div class="post-metadata">

**Author:** ![DX-MON](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/dx-mon/32/666_2.png) [@DX-MON](https://community.codecov.com/u/DX-MON)\
**Post date:** [April 17, 2020, 1:38pm UTC](https://community.codecov.com/t/codecov-misreporting-coverage/1226/2 "2020-04-17T13:38:14Z")

</div>

This has now been solved per my re-post.
