# Parsers in codecov.yaml

**URL:** <https://community.codecov.com/t/parsers-in-codecov-yaml/1442>\
**Category:** Site Feedback\
**Created:** [May 21, 2020, 9:26am UTC](https://community.codecov.com/t/parsers-in-codecov-yaml/1442 "2020-05-21T09:26:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BPylypenko](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@BPylypenko](https://community.codecov.com/u/BPylypenko)\
**Post date:** [May 21, 2020, 9:26am UTC](https://community.codecov.com/t/parsers-in-codecov-yaml/1442/1 "2020-05-21T09:26:59Z")

</div>

Could use, please elaborate on **‘parsers.gcov.branch\_detection’** in codecov.yaml or add reference where I can find more information about (loop, method, macro)?  
And examples when it’s ticked and what happens, how are they counted, and when they are not ticked how test coverage is counted.

> **[codecov.yml Reference](https://docs.codecov.com/docs/codecovyml-reference)**
>
> Top-level sections used in codecov.yml codecov codecov.token The repository upload token Type: StringDefault: N/A codecov.bot The username you want to use for Codecov operations Type: StringDefault: N/AMore Info: https://docs.codecov.io/docs/team-bot...

---

<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:** [May 28, 2020, 8:56pm UTC](https://community.codecov.com/t/parsers-in-codecov-yaml/1442/2 "2020-05-28T20:56:19Z")

</div>

Thanks for the recommendation @BPylypenko. If you feel comfortable, you are welcome to edit the pages (they are open source). If not, I’ll get to this in the next 2 weeks.

---

<div class="post-metadata">

**Author:** ![jamesbraza](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/jamesbraza/32/939_2.png) [@jamesbraza](https://community.codecov.com/u/jamesbraza)\
**Post date:** [November 10, 2020, 1:45am UTC](https://community.codecov.com/t/parsers-in-codecov-yaml/1442/3 "2020-11-10T01:45:51Z")

</div>

Hi @tom yes I have the same question. From what I can see there’s currently minimal documentation for `loop`, `method`, and `macro`.

If anything, can you please provide a link to the `gcov` tool used behind the scenes?

* * *

In the Wikipedia article here: [Gcov - Wikipedia](https://en.wikipedia.org/wiki/Gcov#Command_line_options), it doesn’t mention `loop`, `method`, or `macro`.

---

<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:** [November 12, 2020, 9:59pm UTC](https://community.codecov.com/t/parsers-in-codecov-yaml/1442/4 "2020-11-12T21:59:08Z")

</div>

@jamesbraza, for `gcov` coverage reports uploaded to Codecov with branch coverage, we offer control on whether or not to parse or ignore branch coverage for `methods` (classes), `loops` (for/while), `conditionals` (if/else), and `macros`.

We do not use `gcov` behind the scenes, as this is determined by the coverage report that a user will generate (however they implement `gcov`.
