Condition Coverage

blib/lib/Perl/Critic/Policy/TryTiny/ProhibitExitingSubroutine.pm
Criterion Covered Total %
condition 31 46 67.3


and 3 conditions

line !l l&&!r l&&r condition
37 0 0 13 $children[1] and $children[1]->isa('PPI::Token::Word')
0 0 13 $children[1] and $children[1]->isa('PPI::Token::Word') and $children[1] eq 'Try::Tiny'
61 0 6 8 $sib and $sib->content eq 'catch'
6 0 8 $sib and $sib->content eq 'catch' and my $catch_block = $sib->snext_sibling
67 0 14 0 $sib and $sib->content eq 'finally'
14 0 0 $sib and $sib->content eq 'finally' and my $finally_block = $sib->snext_sibling
104 0 3 3 $prev_sib and $prev_sib->isa('PPI::Token::Word')
3 1 2 $prev_sib and $prev_sib->isa('PPI::Token::Word') and $prev_sib eq 'sub'
110 42 2 1 $element eq 'return' and not $in_sub_block

or 2 conditions

line l !l condition
92 118 262 $in_for_loop //= 0
93 118 262 $in_sub_block //= 0

or 3 conditions

line l !l&&r !l&&!r condition
96 0 2 3 $element->type eq 'for' or $element->type eq 'foreach'
117 10 0 34 $element eq 'next' or $element eq 'redo'
10 0 34 $element eq 'next' or $element eq 'redo' or $element eq 'last'
118 2 3 5 $in_for_loop || $sib && _is_label($sib)
133 1 0 7 $element eq 'if' or $element eq 'unless'