Condition Coverage

blib/lib/Perlito6/Precedence.pm
Criterion Covered Total %
condition 51 77 66.2


and 3 conditions

line !l l&&!r l&&r condition
51 1597 481 66 $c ge 'a' and $c le 'z'
644 1434 0 $c ge '0' and $c le '9'
74 1448 37 0 is_ident_middle($c1) and is_ident_middle($c2) || $c2 eq '('
109 564 29 0 is_ident_middle($c1) and is_ident_middle($c2) || $c2 eq '('
468 0 1574 2902 defined $token and $token->[0] ne 'end'
469 2710 192 0 $token->[1] eq ',' and $last->[1] eq '*start*' || $last->[1] eq ','
478 2830 72 0 $Operator->{'prefix'}{$token->[1]} and $last->[1] eq '*start*' || !is_term($last)
483 2045 539 298 $Operator->{'postfix'}{$token->[1]} and is_term($last)
2584 298 0 $Operator->{'postfix'}{$token->[1]} and is_term($last) and $Allow_space_before->{'postfix'}{$token->[1]} || !$last_has_space
485 95 110 12 scalar @{$op_stack;} and $pr <= $$Precedence{$op_stack->[0][1]}
494 2527 57 93 $token->[1] eq 'block' and is_term($last)
2584 0 93 $token->[1] eq 'block' and is_term($last) and $last_has_space
517 171 0 45 scalar @{$op_stack;} and $pr < $$Precedence{$op_stack->[0][1]}
522 395 43 134 scalar @{$op_stack;} and $pr <= $$Precedence{$op_stack->[0][1]}
551 0 1574 0 defined $token and $token->[0] ne 'end'

or 2 conditions

line l !l condition
155 961 1519 $param->{'assoc'} || 'left'

or 3 conditions

line l !l&&r !l&&!r condition
51 66 0 2078 $c ge 'a' and $c le 'z' or $c ge '0' and $c le '9'
74 0 0 37 is_ident_middle($c2) || $c2 eq '('
92 0 0 3529 $c01 eq "\253" or $c01 eq "\273"
98 0 1 3528 $c02 eq '<<' or $c02 eq '>>'
109 0 0 29 is_ident_middle($c2) || $c2 eq '('
116 0 0 593 $c01 eq "\253" or $c01 eq "\273"
121 0 0 593 $c02 eq '<<' or $c02 eq '>>'
469 0 0 192 $last->[1] eq '*start*' || $last->[1] eq ','
478 19 1 52 $last->[1] eq '*start*' || !is_term($last)
483 0 205 93 $Allow_space_before->{'postfix'}{$token->[1]} || !$last_has_space