Branch Coverage

blib/lib/Devel/Examine/Subs/Preprocessor.pm
Criterion Covered Total %
branch 54 60 90.0


line true false branch
24 57 0 if (not defined &Devel::Examine::Subs::Preprocessor::trace)
31 16 32 if $ENV{'TRACE'}
44 18 33 if $ENV{'TRACE'}
60 14 31 if $ENV{'TRACE'}
65 42 2 if (exists $self->{'pre_procs'}{$string}) { }
74 3 7 if $ENV{'TRACE'}
77 1 7 if $ENV{'TRACE'}
83 3 5 if (not $p->{'module'} or $p->{'module'} eq '')
93 1 4 if ($@)
102 172 32 if (defined &{$namespace . $sub;})
112 2 5 if $ENV{'TRACE'}
116 0 5 if $ENV{'TRACE'}
126 2 3 if (defined $p->{'line_num'}) { }
1 2 elsif ($p->{'inject_use'}) { }
2 0 elsif ($p->{'inject_after_sub_def'}) { }
149 1 0 unless ($index)
156 1 0 if ($index)
195 56 5 if ($file_contents[$count] =~ /^(\s*)\S/) { }
206 11 47 if ($e =~ /$single_line/) { }
1 46 elsif ($e =~ /$multi_line/) { }
212 1 0 if ($file_contents[$count] =~ /\s*\{\s*(?!\s*[\S])/)
218 1 56 if ($is_multi)
231 10 13 if $ENV{'TRACE'}
235 8 13 if $ENV{'TRACE'}
239 13 8 defined $p->{'limit'} ? :
243 1 12 if (not $exec or ref $exec ne 'CODE')
251 146 337 if ($changed)
254 3 143 if $limit == 0
264 5 1 if $ENV{'TRACE'}
268 2 1 if $ENV{'TRACE'}