Condition Coverage

blib/lib/Perl/Critic/Policy/Subroutines/RequireArgUnpacking.pm
Criterion Covered Total %
condition 44 66 66.6


and 3 conditions

line !l l&&!r l&&r condition
115 19 0 0 _is_cast_of_array($magic) and _is_postfix_foreach($magic)
144 4 8 10 $next and $next->isa("PPI::Structure::Subscript")
149 4 1 11 $prev and $prev->isa("PPI::Token::Operator")
5 0 11 $prev and $prev->isa("PPI::Token::Operator") and is_assignment_operator($prev->content)
1 0 11 $prev and $prev->isa("PPI::Token::Operator") and is_assignment_operator($prev->content) and !$next || $next->isa('PPI::Token::Structure') && $Perl::Critic::Policy::Subroutines::RequireArgUnpacking::SCOLON eq $next->content
172 10 0 40 _legal_before_size_check($prev) and _legal_after_size_check($next)
247 0 0 0 $sibling->isa("PPI::Token::Word") and $sibling =~ / \A for (?:each)? \z /msx
260 11 8 0 $prev and $prev->content eq $AT
19 0 0 $prev and $prev->content eq $AT and $prev->isa("PPI::Token::Cast")
275 0 0 0 $DOLLAR_ARG eq $magic->content && $prev && $prev->isa('PPI::Token::Cast') && $DOLLAR eq $prev->content && $next && $next->isa('PPI::Structure::Subscript')
303 2 0 2 $self->{'_allow_closures'} and _is_dereference_operator($subroutine_name)
367 17 2 1 $prev->isa("PPI::Token::Word") and "sub" eq $prev->content
374 18 0 1 $prev->isa("PPI::Token::Operator") and ":" eq $prev->content
387 17 0 1 $prev->isa("PPI::Token::Label") and $prev->content =~ / \A sub \s* : \z /msx
392 14 3 0 $prev->isa("PPI::Token::Prototype") and not $prev = $prev->sprevious_sibling
396 14 0 3 $prev->isa("PPI::Token::Word") and "sub" eq $prev->content

or 3 conditions

line l !l&&r !l&&!r condition
149 0 11 0 !$next || $next->isa('PPI::Token::Structure') && $Perl::Critic::Policy::Subroutines::RequireArgUnpacking::SCOLON eq $next->content
170 38 12 14 $prev or $next
183 17 7 16 $prev or $next
374 2 0 20 $prev->isa("PPI::Token::Word") or $prev->isa("PPI::Structure::List")
2 1 19 $prev->isa("PPI::Token::Word") or $prev->isa("PPI::Structure::List") or $prev->isa("PPI::Token::Attribute")
1 17 2 $prev->isa("PPI::Token::Word") or $prev->isa("PPI::Structure::List") or $prev->isa("PPI::Token::Attribute") or $prev->isa("PPI::Token::Operator") and ":" eq $prev->content