-
Hello, does anyone know how I can achieve a higher level of coverage for my unit test, since the gcov tool that checks for code coverage indicates that I am missing a branch in the following code statement? Right now it is not clear to me how to cover the second branch that the report indicates. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is discussed over on |
Beta Was this translation helpful? Give feedback.
This is discussed over on
gcovr
's FAQ: https://gcovr.com/en/stable/faq.html#why-does-c-code-have-so-many-uncovered-branches. I haven't looked to deeply as we typically look at line coverage. However, it it good to understand the data. Thanks for noting this.