lib/DB/Object/Cache/Tables.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 0 | 35 | 0.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
83 | 0 | 0 | 0 | @_ and $self->_is_hash($_[0]) |
94 | 0 | 0 | 0 | $ts and time - $ts < $timeout |
105 | 0 | 0 | 0 | $tables_cache_file->exists and not $tables_cache_file->is_empty |
144 | 0 | 0 | 0 | -s $f and $last_update |
0 | 0 | 0 | -s $f and $last_update and (stat $f)[9] != $last_update | |
170 | 0 | 0 | 0 | -e $tables_cache_file and not -w $tables_cache_file |
line | l | !l | condition |
---|---|---|---|
64 | 0 | 0 | shift @_ || (return $self->error('No tables cache file path was provided.')) |
71 | 0 | 0 | $self->read($f) || (return) |
101 | 0 | 0 | shift @_ || $self->cache_file || (return {}) |
133 | 0 | 0 | shift @_ || (return $self->error('No hash reference was provided to add to tables cache.')) |
146 | 0 | 0 | $self->read($f) || (return) |
165 | 0 | 0 | shift @_ || (return $self->error('No table cache data was provided to write to cache file "', $self->cache_file, '".')) |
166 | 0 | 0 | shift @_ || $self->cache_file || (return $self->error('No cache file was set to write data to it.')) |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
94 | 0 | 0 | 0 | $opts->{'ignore_ttl'} or $ts and time - $ts < $timeout |