# Why only one braces is not covered in my project?

**URL:** <https://community.codecov.com/t/why-only-one-braces-is-not-covered-in-my-project/3819>\
**Category:** Support\
**Created:** [August 11, 2022, 3:46am UTC](https://community.codecov.com/t/why-only-one-braces-is-not-covered-in-my-project/3819 "2022-08-11T03:46:59Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulocoutinhox](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/paulocoutinhox/32/2587_2.png) [@paulocoutinhox](https://community.codecov.com/u/paulocoutinhox)\
**Post date:** [August 11, 2022, 3:46am UTC](https://community.codecov.com/t/why-only-one-braces-is-not-covered-in-my-project/3819/1 "2022-08-11T03:46:59Z")

</div>

Hi,

In my project appear in report that only one braces is not covered:

> **[Code coverage done right.](https://app.codecov.io/gh/nativium/nativium/blob/main/modules/app-core/implementation/cpp/nativium/core/ApplicationCoreImpl.cpp)**
>
> Hosted coverage report highly integrated with GitHub, Bitbucket and GitLab. Awesome pull request comments to enhance your QA.

![image](https://user-images.githubusercontent.com/395096/183943266-735bd834-a77a-4cce-8fcc-a5cbe149976f.png)

Why this happen?

Thanks.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [August 11, 2022, 3:51am UTC](https://community.codecov.com/t/why-only-one-braces-is-not-covered-in-my-project/3819/2 "2022-08-11T03:51:39Z")

</div>

@paulocoutinhox this is coming from the coverage reports being uploaded to Codecov. You can see on the latest commit [here](https://app.codecov.io/gh/nativium/nativium/commit/d159c2c95d8a7a9a5f51329643a12620da588dfb)

```auto
SF:/Users/runner/work/nativium/nativium/modules/app-core/implementation/cpp/nativium/core/ApplicationCoreImpl.cpp
FN:13,_ZN8nativium4core19ApplicationCoreImplC1Ev
...
DA:52,1
DA:53,0

```

Notice how the line `DA:53,0` is showing 0. That’s why we are showing it as uncovered.

I’m not too adept with C or C flavors, but maybe we can figure this out together. Do you have a CI/CD link to share? Maybe there’s something in the way you are collecting coverage.

---

<div class="post-metadata">

**Author:** ![paulocoutinhox](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/paulocoutinhox/32/2587_2.png) [@paulocoutinhox](https://community.codecov.com/u/paulocoutinhox)\
**Post date:** [August 11, 2022, 4:16am UTC](https://community.codecov.com/t/why-only-one-braces-is-not-covered-in-my-project/3819/3 "2022-08-11T04:16:43Z")

</div>

Hi man, thanks.

This is from my open source project:

> **[GitHub - nativium/nativium: C++ Multiplatform Modular Toolkit Template](https://github.com/nativium/nativium)**
>
> C++ Multiplatform Modular Toolkit Template. Contribute to nativium/nativium development by creating an account on GitHub.

I run lcov and upload to codecov.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [August 11, 2022, 4:23am UTC](https://community.codecov.com/t/why-only-one-braces-is-not-covered-in-my-project/3819/4 "2022-08-11T04:23:39Z")

</div>

Ok, so it’s definitely coming from your MacOS build. Can you walk me through a little in the codebase where [this](https://github.com/nativium/nativium/blob/main/.github/workflows/macos.yml#L58-L62) is getting run? Especially with where it’s running `lcov`

Unrelated, but I would install the [Codecov app](https://github.com/apps/codecov) as well or you’re going to run into connection issues down the line.

---

<div class="post-metadata">

**Author:** ![paulocoutinhox](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/paulocoutinhox/32/2587_2.png) [@paulocoutinhox](https://community.codecov.com/u/paulocoutinhox)\
**Post date:** [August 11, 2022, 5:07am UTC](https://community.codecov.com/t/why-only-one-braces-is-not-covered-in-my-project/3819/5 "2022-08-11T05:07:09Z")

</div>

Hi, sure!

This is these two lcov calls:

> <https://github.com/nativium/nativium/blob/main/targets/tests/verbs/coverage.py#L61-L94>

One is:

> lcov -d build/tests/debug/x86\_64 -c -o build/tests/debug/x86\_64/lcov.coverage.info

The other is:

> lcov -r build/tests/debug/x86\_64/lcov.coverage.info “_Xcode.app_” “_.conan_” “_/tests/_” -o build/tests/debug/x86\_64/lcov.coverage.info

After, i upload to codecov:

> <https://github.com/nativium/nativium/blob/main/.github/workflows/macos.yml#L64-L69>

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [August 15, 2022, 2:12am UTC](https://community.codecov.com/t/why-only-one-braces-is-not-covered-in-my-project/3819/6 "2022-08-15T02:12:48Z")

</div>

@paulocoutinhox got it, I’m not totally sure why `lcov` spits out coverage this way, but I have an inkling on what Codecov can do to fix it up. Let me forward this over to the product team and see what we can do.

---

<div class="post-metadata">

**Author:** ![paulocoutinhox](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/paulocoutinhox/32/2587_2.png) [@paulocoutinhox](https://community.codecov.com/u/paulocoutinhox)\
**Post date:** [August 15, 2022, 6:21am UTC](https://community.codecov.com/t/why-only-one-braces-is-not-covered-in-my-project/3819/7 "2022-08-15T06:21:55Z")

</div>

Sure. Thanks about your attention.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [September 1, 2022, 4:21pm UTC](https://community.codecov.com/t/why-only-one-braces-is-not-covered-in-my-project/3819/8 "2022-09-01T16:21:25Z")

</div>

hi @paulocoutinhox sorry for the delay here. I released a new version of the uploader, would you be able to try updating this for your Codecov Action?

```auto
- name: Code Coverage - Upload
  uses: codecov/codecov-action@v3
  with:
    files: build/tests/debug/x86_64/lcov.coverage.info
    fail_ci_if_error: true
    functionalities: fixes
    verbose: true

```

Note the `functionalities: fixes` line.

---

<div class="post-metadata">

**Author:** ![paulocoutinhox](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/paulocoutinhox/32/2587_2.png) [@paulocoutinhox](https://community.codecov.com/u/paulocoutinhox)\
**Post date:** [September 1, 2022, 5:36pm UTC](https://community.codecov.com/t/why-only-one-braces-is-not-covered-in-my-project/3819/9 "2022-09-01T17:36:43Z")

</div>

Hi,

Done.

But it still with same problem:

> **[Code coverage done right.](https://app.codecov.io/gh/nativium/nativium/blob/main/modules/app-core/implementation/cpp/nativium/core/ApplicationCoreImpl.cpp)**
>
> Hosted coverage report highly integrated with GitHub, Bitbucket and GitLab. Awesome pull request comments to enhance your QA.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [September 1, 2022, 5:47pm UTC](https://community.codecov.com/t/why-only-one-braces-is-not-covered-in-my-project/3819/10 "2022-09-01T17:47:26Z")

</div>

@paulocoutinhox it needs to be added [here](https://github.com/nativium/nativium/blob/main/.github/workflows/macos.yml#L69) as well

---

<div class="post-metadata">

**Author:** ![paulocoutinhox](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/paulocoutinhox/32/2587_2.png) [@paulocoutinhox](https://community.codecov.com/u/paulocoutinhox)\
**Post date:** [September 1, 2022, 6:40pm UTC](https://community.codecov.com/t/why-only-one-braces-is-not-covered-in-my-project/3819/11 "2022-09-01T18:40:24Z")

</div>

Hi,

You are correct, sorry, my mistake.

After add it to macos too, the problem persists:

> **[Code coverage done right.](https://app.codecov.io/gh/nativium/nativium/blob/main/modules/app-core/implementation/cpp/nativium/core/ApplicationCoreImpl.cpp)**
>
> Hosted coverage report highly integrated with GitHub, Bitbucket and GitLab. Awesome pull request comments to enhance your QA.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [September 1, 2022, 7:44pm UTC](https://community.codecov.com/t/why-only-one-braces-is-not-covered-in-my-project/3819/12 "2022-09-01T19:44:30Z")

</div>

@paulocoutinhox sorry about that, I patched the uploader and it should ~~propagate in about an hour or two~~ be live.

---

<div class="post-metadata">

**Author:** ![paulocoutinhox](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/paulocoutinhox/32/2587_2.png) [@paulocoutinhox](https://community.codecov.com/u/paulocoutinhox)\
**Post date:** [September 1, 2022, 11:06pm UTC](https://community.codecov.com/t/why-only-one-braces-is-not-covered-in-my-project/3819/13 "2022-09-01T23:06:58Z")

</div>

Hi,

I have uploaded again, but still the same.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [September 2, 2022, 4:54am UTC](https://community.codecov.com/t/why-only-one-braces-is-not-covered-in-my-project/3819/14 "2022-09-02T04:54:38Z")

</div>

@paulocoutinhox, hmmm it looks like it’s still picking up `0.3.0` instead of `0.3.1` [here](https://github.com/nativium/nativium/runs/8146655544?check_suite_focus=true#step:16:26). Let me check tomorrow why that might be happening.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [September 2, 2022, 2:32pm UTC](https://community.codecov.com/t/why-only-one-braces-is-not-covered-in-my-project/3819/15 "2022-09-02T14:32:01Z")

</div>

@paulocoutinhox ok, the new version should have been pushed. Sorry about that again, I should have checked myself.

---

<div class="post-metadata">

**Author:** ![paulocoutinhox](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/paulocoutinhox/32/2587_2.png) [@paulocoutinhox](https://community.codecov.com/u/paulocoutinhox)\
**Post date:** [September 2, 2022, 3:47pm UTC](https://community.codecov.com/t/why-only-one-braces-is-not-covered-in-my-project/3819/16 "2022-09-02T15:47:35Z")

</div>

No problem tom, relax.

I still need that flag?

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [September 2, 2022, 4:28pm UTC](https://community.codecov.com/t/why-only-one-braces-is-not-covered-in-my-project/3819/17 "2022-09-02T16:28:10Z")

</div>

@paulocoutinhox yes, you’ll need the flag still (and going forward). You can push a commit up now.

---

<div class="post-metadata">

**Author:** ![paulocoutinhox](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/paulocoutinhox/32/2587_2.png) [@paulocoutinhox](https://community.codecov.com/u/paulocoutinhox)\
**Post date:** [September 2, 2022, 5:00pm UTC](https://community.codecov.com/t/why-only-one-braces-is-not-covered-in-my-project/3819/18 "2022-09-02T17:00:01Z")

</div>

hi @tom it is 100% now.

> **[GitHub - nativium/nativium: C++ Multiplatform Modular Toolkit Template](https://github.com/nativium/nativium)**
>
> C++ Multiplatform Modular Toolkit Template. Contribute to nativium/nativium development by creating an account on GitHub.

thanks for your time and help 🙂
