gotwarlost / istanbul

Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale.
Other
8.7k stars 787 forks source link

Coverage color code #714

Open yarandoo opened 7 years ago

yarandoo commented 7 years ago

HI,

I have read the documentation but cant understand the following report. Please note that the code is marked as yellow(Branch uncovered) but in the left side of each line there is a 80x. My understanding is that this lines were called X number of times. And I cant see any particular branches within that block of code.

screen shot 2016-10-25 at 2 33 37 pm

Will greatly appreciate if someone can explain the above coverage report. Thanks!

TrejGun commented 7 years ago

it is broken ;)

jwhitmarsh commented 7 years ago

@TrejGun do you mean his code is broken or the coloring/highlighting is broken?