Misapprehension 13: Branch coverage subsumes statement coverage, therefore you can conclude 50% statement coverage from 50% branch coverage

actually subsumes statement coverage, i.e. you can conclude 100% statement coverage from 100% . But you cannot conclude 50% statement coverage from 50% . See the figure below for an example.

Can you conclude 50% statement coverage from 50% branch coverage?

Can you conclude 50% statement coverage from 50% branch coverage?

If you execute an arbitrary test case for the code snippet in the figure above, you will get 50% branch coverage, but you will not get 50% statement coverage, because the two branches that are present contain a different number of statements each.