# Help understanding red and yellow on the same exception line of code

**URL:** <https://community.codecov.com/t/help-understanding-red-and-yellow-on-the-same-exception-line-of-code/2619>\
**Category:** Bug Fixes\
**Created:** [March 5, 2021, 4:35am UTC](https://community.codecov.com/t/help-understanding-red-and-yellow-on-the-same-exception-line-of-code/2619 "2021-03-05T04:35:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![williamfgc](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/williamfgc/32/1618_2.png) [@williamfgc](https://community.codecov.com/u/williamfgc)\
**Post date:** [March 5, 2021, 4:35am UTC](https://community.codecov.com/t/help-understanding-red-and-yellow-on-the-same-exception-line-of-code/2619/1 "2021-03-05T04:35:46Z")

</div>

### Description

Codecov reports from gcov generated xml show red and yellow lines for the same exception message. I have a test that triggers this exception. I don’t know how to interpret that (I assume all lines should be green as the exception is thrown). See here:

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

### Commit SHAs

> <https://github.com/ORNL/ncio/commit/37e1e18d1279e357a170705858f89b0365546872>
>
> Bump current coverage

### Repository

> **[GitHub - ORNL/ncio: No Cost Input Output data management framework](https://github.com/ORNL/ncio)**
>
> No Cost Input Output data management framework

### CI/CD or Build URL

GitHub Actions. See github workflow job for coverage: [ncio/.github/workflows/ci-github-actions.yaml at main · ORNL/ncio · GitHub](https://github.com/ORNL/ncio/blob/main/.github/workflows/ci-github-actions.yaml#L187)

### Uploader

Using the codecov uploader action: [ncio/.github/workflows/ci-github-actions.yaml at main · ORNL/ncio · GitHub](https://github.com/ORNL/ncio/blob/main/.github/workflows/ci-github-actions.yaml#L191)  
from:  
[Codecov · Actions · GitHub Marketplace · GitHub](https://github.com/marketplace/actions/codecov)

### Codecov Output

Output here, unfold “Upload Coverage” step: [https://github.com/ORNL/ncio/runs/2034668432](https://github.com/ORNL/ncio/runs/2034668432)?

### Expected Results

Should be all green, not red and yellow on the same exception  
See here:

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

### Actual Results

See problem description in first bullet.

### Additional Information

html report generated locally with gcov shows all green

---

<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:** [March 9, 2021, 1:11am UTC](https://community.codecov.com/t/help-understanding-red-and-yellow-on-the-same-exception-line-of-code/2619/2 "2021-03-09T01:11:31Z")

</div>

Hi @williamfgc, if you view the [raw upload](https://codecov.io/gh/ORNL/ncio/commit/aceb9b3127f0d196d1a5feb52dae0658fdfa83db/build), you’ll see these lines

```auto
            <line number="205" hits="12" branch="true" condition-coverage="50% (2/4)">
              <conditions>
                <condition number="0" type="jump" coverage="50%"/>
              </conditions>
            </line>

```

Because we are also pulling in branch coverage, the yellow means that this is a partial hit. As not all branches are covered, we do not show it as green.
