Condition Coverage

lib/Yote/Spiderpup/Transform.pm
Criterion Covered Total %
condition 45 64 70.3


and 3 conditions

line !l l&&!r l&&r condition
41 7 7 8 $pos >= $range->[0] and $pos < $range->[1]
68 16 0 81 not $in_string and $prev ne "\\"
0 13 3 $in_string and $char eq $in_string
13 2 1 $in_string and $char eq $in_string and $prev ne "\\"
80 71 0 2 $char eq ';' || $char eq ',' and $depth == 0
197 36 7 1 $pos >= $range->[0] and $pos < $range->[1]
232 0 26 5 $known_methods and $known_methods->{$name}
247 0 0 29 defined $expr and $expr =~ /\S/
314 34 0 4 $tag eq 'if' || $tag eq 'elseif' and $attr eq "condition"

or 2 conditions

line l !l condition
180 29 0 $local_vars //= {}
295 64 0 $2 // ""

or 3 conditions

line l !l&&r !l&&!r condition
69 1 0 80 $char eq "\"" or $char eq "'"
1 0 80 $char eq "\"" or $char eq "'" or $char eq "`"
80 2 0 78 $char eq "(" or $char eq "["
2 0 78 $char eq "(" or $char eq "[" or $char eq "{"
3 0 75 $char eq ")" or $char eq "]"
3 2 73 $char eq ")" or $char eq "]" or $char eq "}"
2 0 71 $char eq ';' || $char eq ','
251 0 2 27 $expr =~ /^async\s/ or $expr =~ /^function[\s(]/
314 3 1 34 $tag eq 'if' || $tag eq 'elseif'
347 0 0 1 exists $attrs{$attr} or exists $attrs{"*$attr"}
357 8 0 56 $self_close or $void_tags{$tag}