Condition Coverage

lib/Perl/Critic/Policy/ValuesAndExpressions/RequireConsistentQuoting.pm
Criterion Covered Total %
condition 84 95 88.4


and 3 conditions

line !l l&&!r l&&r condition
145 204 0 100 $delim->{'start'} eq $start and $delim->{'end'} eq $end
153 25 0 100 $current_is_bracket and $current_delim
200 75 3 2 $has_single_quotes and $has_double_quotes
226 126 4 16 $content =~ /\\[\$\@\"]/u and not $self->_has_quote_sensitive_escapes($string)
130 4 12 $content =~ /\\[\$\@\"]/u and not $self->_has_quote_sensitive_escapes($string) and not $self->would_interpolate($string)
255 72 6 12 $has_single_quotes and $has_double_quotes
293 23 5 7 $double_quote_suggestion and $double_quote_suggestion eq "''"
300 23 0 5 $double_quote_suggestion and $double_quote_suggestion eq "qq()"
376 70 0 2 $has_version and @args == 1
379 36 22 12 @args == 1 and $self->_is_pragma($elem)
382 50 7 1 $has_qw and not $qw_uses_parens
419 4 3 28 $has_simple_strings || $has_q_operators and not $has_qw
424 0 7 0 $has_qw and $string_count > 0 || $has_q_operators
437 1134 29 374 $child->isa("PPI::Token::Word") and not $found_module
446 529 0 15 $child->isa("PPI::Token::Structure") and $child->content eq ";"
448 357 50 122 $child->isa("PPI::Token::Operator") and $child->content eq ","
470 101 49 29 $expr_child->isa("PPI::Token::Operator") and $expr_child->content eq ","
530 1427 1 111 $current->isa("PPI::Statement::Include") and $current->type =~ /^(use|no)$/u
536 79 20 12 @args == 1 and $self->_is_pragma($current)
565 5 26 4 not $would_interpolate and $string =~ /\\[\$\@]/u

or 2 conditions

line l !l condition
163 0 2 $operator //= "q"

or 3 conditions

line l !l&&r !l&&!r condition
205 9 21 48 $has_double_quotes or $self->_has_quote_sensitive_escapes($string)
30 24 24 $has_double_quotes or $self->_has_quote_sensitive_escapes($string) or $self->would_interpolate_from_single_quotes($string)
304 0 2 21 index($string, '"') != -1 || index($string, q[']) != -1
336 4 3 126 $_->isa("PPI::Token::Symbol") or $_->isa("PPI::Structure")
419 21 10 4 $has_simple_strings || $has_q_operators
424 3 0 4 $string_count > 0 || $has_q_operators
465 2 0 15 $child->isa("PPI::Statement") or $child->isa("PPI::Structure")
501 19 65 160 $elem->isa("PPI::Token::Quote::Single") or $elem->isa("PPI::Token::Quote::Double")
84 7 153 $elem->isa("PPI::Token::Quote::Single") or $elem->isa("PPI::Token::Quote::Double") or $elem->isa("PPI::Token::Quote::Literal")
72 9 144 $elem->isa("PPI::Token::Quote::Single") or $elem->isa("PPI::Token::Quote::Double") or $elem->isa("PPI::Token::Quote::Literal") or $elem->isa("PPI::Token::Quote::Interpolate")
572 3 2 3 $would_interpolate or $has_single_quotes