| lib/BarefootJS/Evaluator.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 16 | 139 | 11.5 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 95 | 0 | 0 | 0 | defined $name and $name ne "" |
| 121 | 0 | 0 | 0 | $kind eq "array-method" and ($node->{'method'} // "") eq "includes" |
| 0 | 0 | 0 | $kind eq "array-method" and ($node->{'method'} // "") eq "includes" and @{$node->{'args'} // [];} == 1 | |
| 145 | 0 | 0 | 0 | $kind eq "array-method" and ($node->{'method'} // "") eq "join" |
| 0 | 0 | 0 | $kind eq "array-method" and ($node->{'method'} // "") eq "join" and @{$node->{'args'} // [];} <= 1 | |
| 183 | 0 | 0 | 0 | ref $callee eq "HASH" and ($callee->{'kind'} // "") eq "member" |
| 190 | 0 | 0 | 0 | ref $arrow eq "HASH" and ($arrow->{'kind'} // "") eq "arrow" |
| 262 | 14 | 0 | 36 | $f & 1024 && !($f & 768) |
| 266 | 5 | 24 | 14 | defined $v && !ref($v) && !_is_string($v) |
| 315 | 0 | 0 | 0 | $n != 0 && $n == $n |
| 367 | 0 | 0 | 0 | _is_string($l) and _is_string($r) |
| 387 | 9 | 1 | 3 | $ln and $rn |
| 398 | 0 | 0 | 0 | $lb and $rb |
| 401 | 0 | 0 | 6 | _is_string($l) and _is_string($r) |
| 411 | 9 | 1 | 3 | _is_number($l) and _is_number($r) |
| 413 | 3 | 0 | 0 | $lf != $lf and $rf != $rf |
| 438 | 0 | 0 | 0 | $kind eq "member" and not $callee->{'computed'} |
| 440 | 0 | 0 | 0 | ref $obj eq "HASH" and ($obj->{'kind'} // "") eq "identifier" |
| 499 | 0 | 0 | 0 | $key eq "length" and _is_string($obj) |
| line | l | !l | condition |
|---|---|---|---|
| 45 | 0 | 0 | $node->{'kind'} // "" |
| 96 | 0 | 0 | $node->{'args'} // [] |
| 101 | 0 | 0 | $node->{'parts'} // [] |
| 102 | 0 | 0 | $p->{'type'} // "" |
| 103 | 0 | 0 | $p->{'value'} // "" |
| 112 | 0 | 0 | $node->{'elements'} // [] |
| 116 | 0 | 0 | $node->{'properties'} // [] |
| 121 | 0 | 0 | $node->{'method'} // "" |
| 122 | 0 | 0 | $node->{'args'} // [] |
| 145 | 0 | 0 | $node->{'method'} // "" |
| 146 | 0 | 0 | $node->{'args'} // [] |
| 155 | 0 | 0 | $node->{'args'} // [] |
| 183 | 0 | 0 | $callee->{'kind'} // "" |
| 185 | 0 | 0 | $callee->{'property'} // "" |
| 187 | 0 | 0 | $node->{'args'} // [] |
| 190 | 0 | 0 | $arrow->{'kind'} // "" |
| 204 | 0 | 0 | $arrow_node->{'params'} // [] |
| 434 | 0 | 0 | $callee->{'kind'} // "" |
| 436 | 0 | 0 | $callee->{'name'} // "" |
| 440 | 0 | 0 | $obj->{'kind'} // "" |
| 441 | 0 | 0 | $obj->{'name'} // "" |
| 0 | 0 | $callee->{'property'} // "" | |
| 532 | 0 | 0 | $direction // "" |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 186 | 0 | 0 | 0 | $prop eq "map" or $prop eq "filter" |
| 260 | 0 | 0 | 50 | not defined $v or ref $v |
| 333 | 0 | 0 | 0 | _is_string($l) or _is_string($r) |
| 346 | 0 | 0 | 0 | $ln == 0 or $ln != $ln |
| 356 | 0 | 0 | 0 | $op eq "<" or $op eq "<=" |
| 0 | 0 | 0 | $op eq "<" or $op eq "<=" or $op eq ">" | |
| 0 | 0 | 0 | $op eq "<" or $op eq "<=" or $op eq ">" or $op eq ">=" | |
| 373 | 0 | 0 | 0 | $ln != $ln or $rn != $rn |
| 389 | 0 | 0 | 3 | $lf != $lf or $rf != $rf |
| 397 | 0 | 0 | 6 | $lb or $rb |
| 507 | 0 | 0 | 0 | $i != $f or $i < 0 |
| 0 | 0 | 0 | $i != $f or $i < 0 or $i >= @$obj |