blib/lib/File/Cache/Persistent.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 22 | 26 | 84.6 |
line | true | false | branch |
---|---|---|---|
35 | 11 | 7 | if $$this{'prefix'} |
41 | 10 | 8 | if (not $$this{'timeout'}) { } |
44 | 1 | 9 | if (not -e $path) { } |
46 | 0 | 1 | if (not $havecache) { } |
58 | 2 | 7 | if ($havecache and not $this->_is_modified($path)) { } |
73 | 3 | 5 | if (not $havecache) { } |
2 | 3 | elsif (time - $$this{'data'}{$path}[3] <= $$this{'timeout'}) { } | |
75 | 0 | 3 | unless -e $path |
86 | 2 | 1 | if (-e $path) { } |
88 | 1 | 1 | if (not $this->_is_modified($path)) { } |
115 | 1 | 0 | if $$this{'prefix'} |
156 | 1 | 10 | if (defined $$this{'reader'}) { } |
161 | 0 | 1 | if $@ |