Branch Coverage

blib/lib/Cache/CacheFactory/Expiry/Size.pm
Criterion Covered Total %
branch 22 42 52.3


line true false branch
35 0 2 unless $@
43 2 0 if exists $$param{'max_size'}
45 0 2 if exists $$param{'no_devel_size'}
48 0 2 if exists $$param{'no_overrule_memorycache_size'}
51 0 2 if exists $$param{'no_cache_cache_size_during_purge'}
54 0 2 unless defined $$self{'max_size'}
73 0 9 if $use_devel_size and not $$self{'no_devel_size'}
82 0 8 if $self->using_devel_size
107 64 8 if (not defined $type) { }
115 0 8 if $seen{$item}++
116 0 8 if ($type eq 'ARRAY') { }
8 0 elsif ($type eq 'HASH') { }
158 0 4 if $$self{'max_size'} == $Cache::CacheFactory::NO_MAX_SIZE
160 4 0 if (not $$self{'no_overrule_memorycache_size'} and $storage->isa('Cache::MemoryCache')) { }
166 4 0 if exists $$self{'_cache_size'}
172 0 0 if exists $$self{'_cache_size'}
175 2 2 if $cachesize <= $$self{'max_size'}
179 2 0 if exists $$self{'_cache_size'}
188 0 4 if $$self{'max_size'} == $Cache::CacheFactory::NO_MAX_SIZE
203 4 0 unless ($$self{'no_cache_cache_size_during_purge'})
205 4 0 if (not $$self{'no_overrule_memorycache_size'} and $storage->isa('Cache::MemoryCache')) { }