Skip to content

Commit

Permalink
Merge pull request #91 from bkonyi/fix_non_DA_error
Browse files Browse the repository at this point in the history
Fixed issue where `Coverage.parse` was attempting to call `LineValue.parse` for strings which aren't DA line coverage entries.
  • Loading branch information
pq authored Nov 1, 2018
2 parents d599ae8 + 9ed2b49 commit f589cba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/coveralls_entities.dart
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ class Coverage {
List<LineValue> values = [];
var current = 1;
for (int i = 0; i < numeration.length; i++) {
if (!numeration[i].contains('DA')) {
continue;
}
var lineValue = LineValue.parse(numeration[i]);
int distance = lineValue.lineNumber - values.length - 1;
if (distance > 0)
Expand Down

0 comments on commit f589cba

Please sign in to comment.