blib/lib/Perl/Critic/Policy/ControlStructures/ProhibitMutatingListFunctions.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 18 | 23 | 78.2 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
41 | 173 | 0 | 47 | defined $elem && $elem->isa('PPI::Token::Magic') && $elem->content eq '$_' |
130 | 4 | 1 | 27 | $sib and $sib->isa("PPI::Token::Operator") |
135 | 22 | 0 | 3 | $psib and $psib->isa("PPI::Token::Operator") |
228 | 0 | 0 | 1 | @args >= $MUTATING_SUBSTR_ARG_COUNT && _is_topic($args[0][0]) |
line | l | !l | condition |
---|---|---|---|
112 | 81 | 0 | $node->find('PPI::Token') || [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
146 | 4 | 56 | 135 | $elem->isa("PPI::Token::Regexp::Substitute") or $elem->isa("PPI::Token::Regexp::Transliterate") |
163 | 6 | 6 | 12 | $mods{'d'} or $mods{'s'} |
165 | 6 | 6 | 12 | $mods{'c'} or $mods{'s'} |