Branch Coverage

blib/lib/File/Store.pm
Criterion Covered Total %
branch 28 54 51.8


line true false branch
105 0 4 unless $#args % 2
139 0 4 if (ref $_[0] ne 'File::Store')
142 0 4 unless $#args % 2
145 0 4 if exists $args{'expire'}
147 0 4 if exists $args{'size'}
149 0 4 if exists $args{'max'}
152 0 4 if %args
171 2 1 if (ref $_[0] ne 'File::Store')
180 1 2 unless (defined $mtime)
187 1 1 unless ($this->cached($file) == $mtime)
196 0 1 unless open F, '<', $file
250 1 2 if (ref $_[0] ne 'File::Store')
253 1 2 unless (@files)
267 2 0 unless exists $$this{'cache'}{$f}
294 0 6 if (ref $_[0] ne 'File::Store')
302 0 6 if ($$this{'option'}{'expire'} > 0)
306 0 0 if ($$this{'cache'}{$f}{'when'} < time - $$this{'option'}{'expire'})
316 0 6 if ($$this{'option'}{'size'} > 0 and $$this{'size'} > $$this{'option'}{'size'})
332 0 6 if ($$this{'option'}{'max'} > 0 and $$this{'count'} > $$this{'option'}{'max'})
364 0 1 if (ref $_[0] ne 'File::Store')
380 0 0 if (ref $_[0] ne 'File::Store')
396 0 2 if (ref $_[0] ne 'File::Store')
398 0 2 unless $file
400 1 1 unless exists $$this{'cache'}{$file}
415 0 0 if (ref $_[0] ne 'File::Store')
420 0 0 unless exists $$this{'cache'}{$f}
424 0 0 if $m != $$this{'cache'}{$f}{'mtime'}