Condition Coverage

blib/lib/Perl/Critic/Policy/ValuesAndExpressions/PreventSQLInjection.pm
Criterion Covered Total %
condition 54 71 76.0


and 3 conditions

line !l l&&!r l&&r condition
141 0 33 36 defined $sql_injections && scalar @$sql_injections != 0
159 0 9 336 defined $token and $token ne ''
164 149 33 61 $token->isa('PPI::Token::Operator') and $token->content eq '.'
126 0 56 $token->isa('PPI::Token::Structure') and $token->content eq ';'
93 30 3 $token->isa('PPI::Token::Operator') and $token->content eq ':'
93 29 1 $token->isa('PPI::Token::Operator') and $token->content eq ','
224 15 1 9 defined $function_name and not $is_quoted
253 19 0 6 $next_sibling->isa('PPI::Token::Operator') and $next_sibling->content eq '->'
278 0 6 12 $previous_sibling->isa('PPI::Token::Operator') and $previous_sibling->content eq '->'
301 9 0 1 defined $self->{'_safe_functions_regex'} && $full_name =~ /$self->{'_safe_functions_regex'}/
321 42 0 22 $sibling->isa('PPI::Token::Operator') and $sibling->content eq '->'
17 0 8 $sibling->isa('PPI::Token::Word') and $sibling->method_call
17 1 7 $sibling->isa('PPI::Token::Word') and $sibling->method_call and defined $self->{'_quoting_methods_regex'}
1 1 6 $sibling->isa('PPI::Token::Word') and $sibling->method_call and defined $self->{'_quoting_methods_regex'} and $sibling->content =~ /$self->{'_quoting_methods_regex'}/
348 104 9 3 $token->isa('PPI::Token::HereDoc') and $token eq '<<"SQL"' || $token eq '<<SQL'
355 4 110 2 not $probably_sql and $self->{'_prefer_upper_case_keywords'}
486 0 0 100 defined $line_number and $line_number =~ /\A\d+\Z/

or 2 conditions

line l !l condition
507 27 48 $doc->find('PPI::Token::Comment') || []

or 3 conditions

line l !l&&r !l&&!r condition
164 10 83 243 $token->isa('PPI::Token::HereDoc') or $token->isa('PPI::Token::Quote')
248 0 0 25 not defined $next_sibling or $next_sibling eq ''
258 0 0 6 not defined $function or $function eq ''
319 0 0 64 not defined $sibling or $sibling eq ''
348 1 3 8 $token eq '<<"SQL"' || $token eq '<<SQL'
372 0 1 78 not defined $sprevious_sibling or $sprevious_sibling eq ''