Condition Coverage

blib/lib/Perl/Critic/Policy/RegularExpressions/ProhibitUnusedCapture.pm
Criterion Covered Total %
condition 55 71 77.4


and 3 conditions

line !l l&&!r l&&r condition
89 103 3 14 $re->modifier_asserted("g") and not _check_if_in_while_condition_or_block($elem)
95 85 2 33 _enough_assignments($elem, \@captures) and not %named_captures
96 70 1 16 _is_in_slurpy_array_context($elem) and not %named_captures
131 119 18 0 &none(sub {
178 0 0 21 1 == @args and $args[0]->isa("PPI::Statement::Expression")
224 4 0 4 $psib and $psib->isa("PPI::Token::Cast")
241 60 25 2 $psib and $psib->content eq "=~"
298 25 46 0 &none(sub {
323 1 14 3 $prior_token->isa('PPI::Token::Operator') && '!~' eq $prior_token->content
330 30 2 165 $parent and not $parent->isa("PPI::Statement::Sub")
410 258 338 0 $parent and not &$parent()
424 684 0 87 $elem->isa("PPI::Token::Structure") and ";" eq $elem->content
465 14 1 1 $prev->isa('PPI::Token::Word') && $SPLIT eq $prev->content
492 225 10 1 $arg->{'negated'} and _is_condition_of_if_statement($elem)
493 0 1 0 $nsib and not $nsib->isa("PPI::Structure::Block")
520 0 10 1 $elem and $elem->isa("PPI::Structure::Condition")
656 0 0 4 $capture_ref->{$name} and $content =~ / \G ( [{] [^}]+ [}] | [[] [^]] []] ) /cgmsx
660 0 0 5 0 < $num and $num <= @{$captures;}
721 10 14 2 $num >= 0 and $ZERO_BASED_CAPTURE_REFERENCE{$variable_name}
742 88 16 10 $re and $number < 0

or 2 conditions

line l !l condition
83 3 13 $named_captures{$struct->name} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
187 24 0 5 $var->isa("PPI::Token::Symbol") or $var->isa("PPI::Token::Cast")
230 2 2 0 '@' eq $sigil || '%' eq $sigil
597 69 12 366 $elem->isa("PPI::Token::Magic") or $capture_ref->{$content}