Branch Coverage

blib/lib/filtered.pm
Criterion Covered Total %
branch 58 66 87.8


line true false branch
61 0 114 if (&$pkg2file($$self{'_TARGET'}) ne $filename)
72 24 90 if (exists $MYINC{$self}{$filename})
75 24 24 if ($_[1]) { }
77 12 12 if $$self{'_PREV'}[0]
84 24 0 if $MYINC{$self}{$filename}
91 81 90 if (-f $realfilename)
101 57 24 if (defined $$self{'_AS'})
102 38 19 if ($$self{'_PPI'}) { }
116 81 1605 if ($state == 1) { }
72 1533 elsif (eof $fh) { }
441 1092 elsif (defined $$self{'_AS'} and not $$self{'_PPI'}) { }
118 24 57 if $$self{'_PREV'}[0]
120 12 69 if (defined $$self{'_WITH'})
123 15 66 if (exists $ENV{'FILTERED_ROOT'})
124 15 0 if (eval { do { require Filter::tee } }) { }
126 12 3 if (defined $$self{'_AS'}) { }
134 3 12 unless -d $dir
171 57 409 unless @args
172 114 295 if ($args[0] eq 'by') { }
81 214 elsif ($args[0] eq 'as') { }
12 202 elsif ($args[0] eq 'with') { }
76 126 elsif ($args[0] eq 'use_ppi') { }
69 57 elsif ($args[0] eq 'on') { }
188 45 12 unless defined $target
193 0 114 unless defined $filter
194 0 114 unless defined $target
195 51 63 unless exists $hook{$filter}
196 36 78 exists $INC{&$pkg2file($target)} ? :
199 18 96 unless (defined eval "require $target")
201 6 12 if $$prev[0]
204 81 15 if (defined $as) { }
213 96 0 if (defined $import) { }
0 0 elsif ($_[0]->isa('Exporter')) { }