0

I have these lines marked partial, why is it?

enter image description here Full coverage report

What does those coverage numbers mean? How came you have 2 hits of the branch content, while the branch itself marks 3/4 ?

Felipe Lavratti
  • 2,887
  • 16
  • 34

1 Answers1

1

According to the gcov report the branch coverage is as follows:

30: 140: if (obj->root) branch 0 taken 11% (fallthrough) branch 1 taken 89% branch 2 taken 0% (fallthrough) branch 3 taken 100%

Raw upload found in the Codecov Commit's Build tab.

In compiled languages there could be multiple execution strategies. In this case there are 4. Codecov detects all branches, as you can see in the coverage report above, there is not much other data to go off.

Steve Peak
  • 2,657
  • 1
  • 17
  • 18
  • Thanks Steve, but, what these data mean? I see where the 3/4 is comming now, what about the percentages and the `taken` and the `falltrough` ? Which is the branch 2 that were never taken? – Felipe Lavratti Dec 22 '16 at 17:13
  • Great question. Codecov does not have any documentation on how gcov works and collects branch data. Maybe this can help: http://stackoverflow.com/questions/7060005/understanding-branches-in-gcov-files – Steve Peak Dec 22 '16 at 17:39