Branch Coverage

blib/lib/Perl/Critic/Policy/BuiltinFunctions/ProhibitStringyEval.pm
Criterion Covered Total %
branch 6 54 11.1


line true false branch
48 350 8 if $elem->content ne "eval"
49 0 8 unless is_function_call($elem)
52 0 8 unless $argument
53 0 8 if $argument->isa("PPI::Structure::Block")
55 0 8 if $self->{'_allow_includes'} and _string_eval_is_an_include($argument)
63 0 0 unless $eval_argument->isa("PPI::Token::Quote")
68 0 0 unless eval {
73 0 0 if @statements > $MAX_STATEMENTS
81 0 0 unless $structure =~ /
89 0 0 unless my $is_q = $eval_argument->isa("PPI::Token::Quote::Single")
93 0 0 if ($statement->isa('PPI::Statement::Package')) { }
0 0 elsif ($statement->isa('PPI::Statement::Include')) { }
94 0 0 unless _string_eval_accept_package($statement)
96 0 0 unless _string_eval_accept_include($statement, $is_q)
98 0 0 unless _string_eval_accept_follow_on($statement)
108 0 0 unless defined $package
109 0 0 unless $package->isa("PPI::Statement::Package")
110 0 0 unless $package->file_scoped
118 0 0 unless defined $include
119 0 0 unless $include->isa("PPI::Statement::Include")
120 0 0 if $include->type eq "no"
122 0 0 if ($is_single_quoted)
126 0 0 if $include->find("PPI::Token::Symbol")
135 0 0 unless $follow_on->isa("PPI::Statement")
139 0 0 if @follow_on_components > 2
140 0 0 unless $follow_on_components[0]->isa("PPI::Token::Number")
141 0 0 if @follow_on_components == 1