Condition Coverage

blib/lib/Perl/Critic/Policy/ValuesAndExpressions/PreventSQLInjection.pm
Criterion Covered Total %
condition 43 59 72.8


and 3 conditions

line !l l&&!r l&&r condition
337 0 26 27 defined $sql_injections && scalar @$sql_injections != 0
366 0 5 282 defined $token and $token ne ''
370 122 28 55 $token->isa('PPI::Token::Operator') and $token->content eq '.'
106 0 44 $token->isa('PPI::Token::Structure') and $token->content eq ';'
78 25 3 $token->isa('PPI::Token::Operator') and $token->content eq ':'
78 24 1 $token->isa('PPI::Token::Operator') and $token->content eq ','
417 12 1 9 defined $function_name and not $is_quoted
457 18 0 4 $next_sibling->isa('PPI::Token::Operator') and $next_sibling->content eq '->'
481 0 6 12 $previous_sibling->isa('PPI::Token::Operator') and $previous_sibling->content eq '->'
502 9 0 1 defined $self->{'_safe_functions_regex'} && $full_name =~ /$self->{'_safe_functions_regex'}/
538 38 0 20 $sibling->isa('PPI::Token::Operator') and $sibling->content eq '->'
13 0 8 $sibling->isa('PPI::Token::Word') and $sibling->method_call
13 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'}/
731 0 80 0 defined $line_number and $line_number =~ /\A\d+\Z/

or 2 conditions

line l !l condition
769 18 36 $doc->find('PPI::Token::Comment') || []

or 3 conditions

line l !l&&r !l&&!r condition
370 6 71 205 $token->isa('PPI::Token::HereDoc') or $token->isa('PPI::Token::Quote')
452 0 0 22 not defined $next_sibling or $next_sibling eq ''
462 0 0 4 not defined $function or $function eq ''
536 0 0 58 not defined $sibling or $sibling eq ''