Skip to content

Commit

Permalink
LineValue.parse for strings which aren't DA line coverage entries.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkonyi committed Oct 26, 2018
1 parent d599ae8 commit 9ed2b49
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 9ed2b49

Please sign in to comment.