sarath
sarath

Reputation: 31

gcov line count is different from no of lines in source code

output of gcov says no of lines executed 70 % of 10

but my code has more than 10 lines..

it does not count braces , else statement

please help ..

Upvotes: 1

Views: 1461

Answers (1)

Douglas Leeder
Douglas Leeder

Reputation: 53320

gcov only counts lines of code that actually make it into the binary - braces are just part of the syntax.

Presumably the else is being optimized/compiled out?

Upvotes: 1

Related Questions