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
161 226 4 8 $elem->isa('PPI::Token::QuoteLike::Command') and $close eq q[']
277 0 0 8 pos $str == $interpolate_var_end + 4 and substr($str, $interpolate_var_end, 2) eq '\\:'
315 32 72 20 !$single && ($explain{$c} || '')
350 0 0 72 $doc && $doc->child(0)
351 0 0 72 $elem && $elem->child(0)
412 30 0 6 $elem->isa('PPI::Statement::Include') and $elem->type eq 'use'
30 2 4 $elem->isa('PPI::Statement::Include') and $elem->type eq 'use' and ($elem->module || '') eq 'charnames'

or 2 conditions

line l !l condition
208 54 0 _pos_after_interpolate_variable($str, pos($str) - length($1)) || (last)
374 87 5 $elem->next_sibling || (last)
410 36 12 $elem->sprevious_sibling || $elem->parent || (return 0)
412 4 2 $elem->module || ''

or 3 conditions

line l !l&&r !l&&!r condition
77 38 252 0 $policy->{'_single'} ne 'none' || $policy->{'_double'} ne 'none'
161 16 18 238 $elem->isa('PPI::Token::Quote::Single') or $elem->isa('PPI::Token::Quote::Literal')
34 8 230 $elem->isa('PPI::Token::Quote::Single') or $elem->isa('PPI::Token::Quote::Literal') or $elem->isa('PPI::Token::QuoteLike::Command') and $close eq q[']
183 198 12 24 not defined $perlver or $perlver >= $v5006
234 14 12 154 $c eq '[' or $c eq '{'
248 4 4 8 $have_use_charnames or $have_perl_516
277 12 8 0 pos $str == $interpolate_var_end + 2 or pos $str == $interpolate_var_end + 4 and substr($str, $interpolate_var_end, 2) eq '\\:'