blib/lib/cPanel/StateFile.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 15 | 23 | 65.2 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
322 | 60 | 1 | 1 | exists $$args_ref{'logger'} and _valid_logger($$args_ref{'logger'}) |
331 | 60 | 1 | 0 | exists $$args_ref{'locker'} and _valid_file_locker($$args_ref{'locker'}) |
346 | 2 | 0 | 54 | eval { do { $data_obj->can('load_from_cache') } } and eval { do { $data_obj->can('save_to_cache') } } |
line | l | !l | condition |
---|---|---|---|
363 | 0 | 54 | $$args_ref{'timeout'} || 60 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
340 | 0 | 0 | 0 | $$args_ref{'state_file'} ||= $$args_ref{'cache_file'} |
403 | 39 | 1 | 424 | not -e $$self{'file_name'} or -z _ |
423 | 15 | 4 | 425 | $$self{'file_mtime'} < $mtime or $$self{'file_size'} != $size |
426 | 19 | 0 | 0 | $guard ||= 'cPanel::StateFile::Guard'->new({'state', $self}) |