Condition Coverage

blib/lib/Perl/Critic/Policy/ValuesAndExpressions/ProhibitUnknownBackslash.pm
Criterion Covered Total %
condition 40 50 80.0


and 3 conditions

line !l l&&!r l&&r condition
155 210 4 8 $elem->isa('PPI::Token::QuoteLike::Command') and $close eq q[']
260 0 0 8 pos $str == $interpolate_var_end + 4 and substr($str, $interpolate_var_end, 2) eq '\\:'
298 32 72 16 !$single && ($explain{$c} || '')
333 0 0 72 $doc && $doc->child(0)
334 0 0 72 $elem && $elem->child(0)
395 22 0 6 $elem->isa('PPI::Statement::Include') and $elem->type eq 'use'
22 2 4 $elem->isa('PPI::Statement::Include') and $elem->type eq 'use' and ($elem->module || '') eq 'charnames'

or 2 conditions

line l !l condition
202 54 0 _pos_after_interpolate_variable($str, pos($str) - length($1)) || (last)
357 87 5 $elem->next_sibling || (last)
393 28 8 $elem->sprevious_sibling || $elem->parent || (return 0)
395 4 2 $elem->module || ''

or 3 conditions

line l !l&&r !l&&!r condition
72 38 236 0 $policy->{'_single'} ne 'none' || $policy->{'_double'} ne 'none'
155 16 18 222 $elem->isa('PPI::Token::Quote::Single') or $elem->isa('PPI::Token::Quote::Literal')
34 8 214 $elem->isa('PPI::Token::Quote::Single') or $elem->isa('PPI::Token::Quote::Literal') or $elem->isa('PPI::Token::QuoteLike::Command') and $close eq q[']
177 186 8 24 not defined $perlver or $perlver >= 5.006
228 14 12 154 $c eq '[' or $c eq '{'
232 4 4 4 $have_charnames or $have_perl_516
260 12 8 0 pos $str == $interpolate_var_end + 2 or pos $str == $interpolate_var_end + 4 and substr($str, $interpolate_var_end, 2) eq '\\:'