Closed bigeasy closed 11 years ago
Okay. It might be an error to have a BRF
if there is no BRDA
. This is output from Istanbul. The issue https://github.com/gotwarlost/istanbul/issues/20 references how Istanbul emits summaries in lcov.
I've forked and created a patch, but I see that your first test does not have branches, but also has no summaries. I assume that you got output from a working JavaScript coverage program, so the bug might be in Istanbul.
When a file contains no branches the
lcov
report will contain noBRDA
record, but it will still have aBRF
andBRH
record. Thelcov-parse
creates abranches
property when aBRDA
is encountered, updates the branches record with a summary when theBRF
is encountered. If noBRDA
record is encountered an error occurs when theBRF
is encountered and the summary data is written to abranches
property that does not exist.Example lcov file for javascript/common.js in the project Stencil.
Meaningful file with no branches;
try/catch
is not considered a branch.