Skip to content

Commit

Permalink
Fix invalid condition on '-' taken idicator
Browse files Browse the repository at this point in the history
On taken indicator '-' the current implementation of the  LcovParser was
setting the branch as executed and tried to convert the sign '-' to a number.
Doing so an exception was thrown. Just inverted the condition to fix the
problem.
  • Loading branch information
MichaelKlemm committed May 26, 2020
1 parent 04e2d1c commit 883693a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ private boolean parseBRDALine(String line) {

boolean wasExecuted = false;
int executionCount = 0;
if (taken.equals(TAKEN)) {
if (!taken.equals(TAKEN)) {
executionCount = Integer.parseInt(taken);
wasExecuted = true;
}
Expand Down

0 comments on commit 883693a

Please sign in to comment.