Branch Coverage

blib/lib/Hub/Data/FileCache.pm
Criterion Covered Total %
branch 16 58 27.5


line true false branch
27 0 16 unless my $param_filename = shift()
29 0 16 unless can($handler, 'reload')
32 0 16 if (defined $instance) { }
33 0 0 if ($$instance{'handlers'}{$handler}) { }
37 0 0 if ($$instance{'lastread'}) { }
64 0 16 unless my $filename = shift()
68 0 16 unless $filepath
70 0 16 if (defined $instance)
71 0 0 if (defined $classname) { }
72 0 0 if ref $_ eq $classname
78 0 16 if wantarray
88 0 0 unless my $filename = shift()
90 0 0 defined $path ? :
112 0 0 defined $fn ? :
114 0 0 defined $fn ? :
117 0 0 defined $$instance{'filename'} ? :
120 0 0 if (defined $stats)
123 0 0 if (not defined $stats or $stats->mtime == 0)
129 0 0 if ($$opts{'force'} or $stats->mtime > $$instance{'lastread'} or $$opts{'force_dirs'} and -d $$instance{'filename'}) { }
0 0 elsif (-d $$instance{'filename'}) { }
136 0 0 if (-e $md_filename)
138 0 0 if ($md_stats->mtime > $$instance{'lastread'})
162 8 8 UNIVERSAL::can($_, 'delay_reading') ? :
166 0 16 if $delay_reading
169 16 0 if (defined $stats)
173 8 8 if (-f $filename) { }
8 0 elsif (-d $filename) { }
179 8 0 if (opendir DIR, $filename) { }
190 16 0 if $_