Branch Coverage

blib/lib/Cache/BaseCache.pm
Criterion Covered Total %
branch 35 44 79.5


line true false branch
58 40 94 defined $p_explicit_expires_in ? :
96 6 116 unless (defined $p_object)
103 0 116 if ($p_object->get_expires_at eq $Cache::BaseCache::EXPIRES_NOW) { }
24 92 elsif ($p_object->get_expires_at eq $Cache::BaseCache::EXPIRES_NEVER) { }
40 52 elsif ($p_time >= $p_object->get_expires_at) { }
133 72 62 if ($p_expires_in eq $Cache::BaseCache::EXPIRES_NEVER) { }
155 0 62 if (uc $p_expires_in eq uc $Cache::BaseCache::EXPIRES_NOW) { }
0 62 elsif (uc $p_expires_in eq uc $Cache::BaseCache::EXPIRES_NEVER) { }
62 0 elsif ($p_expires_in =~ /^\s*([+-]?(?:\d+|\d*\.\d*))\s*$/) { }
0 0 elsif ($p_expires_in =~ /^\s*([+-]?(?:\d+|\d*\.\d*))\s*(\w*)\s*$/ and exists $_Expiration_Units{$2}) { }
196 88 22 unless $self->get_namespace eq $AUTO_PURGE_NAMESPACE
199 28 82 unless my $object = $self->get_object($p_key)
202 32 50 if (Object_Has_Expired($object))
236 62 182 unless my $object = $self->_get_backend->restore($self->get_namespace, $p_key)
356 44 8 defined $p_options_hash_ref ? :
389 4 48 if (defined $auto_purge_interval)
430 44 330 if (defined $$options_hash_ref{$p_option_name}) { }
451 0 22 unless $self->_should_auto_purge
457 22 0 unless (defined $self->get($real_namespace))
498 14 26 if ($self->_needs_auto_purge)
533 36 76 if ($self->get_auto_purge_on_set)
546 0 88 if ($self->get_auto_purge_on_get)