Branch Coverage

blib/lib/Memoize/ExpireLRU.pm
Criterion Covered Total %
branch 44 78 56.4


line true false branch
55 0 3 unless $self->{'CACHESIZE'}
57 1 2 unless $self->{'TUNECACHESIZE'}
60 0 3 unless defined $self->{'INSTANCE'}
62 0 3 if ($_->{'INSTANCE'} eq $self->{'INSTANCE'})
66 2 1 if ($self->{'TUNECACHESIZE'})
77 0 3 if ($self->{'TIE'})
83 0 0 if ($@)
87 0 0 unless ($rc)
105 0 46 if $DEBUG
107 24 22 if (exists $self->{'C'}{$key}) { }
113 0 24 unless (defined $i)
131 21 3 if (defined $self->{'T'})
132 21 0 if defined $self->{'T'}
136 0 24 if ($DEBUG)
138 0 0 if defined $self->{'T'}
144 16 6 if (exists $self->{'TUNECACHESIZE'}) { }
146 0 16 if $DEBUG
153 16 5 unless defined $self->{'TI'} and defined $self->{'TI'}[$i - $j] and defined $self->{'TI'}[$i - $j]{'k'} and $self->{'TI'}[$i - $j]{'k'} eq $key
156 0 5 if $DEBUG
161 0 6 if $DEBUG
169 0 22 if $DEBUG
179 0 22 if defined $self->{'TC'}
186 0 22 if defined $self->{'TC'}
194 0 13 if defined $self->{'TC'}
196 11 2 if defined $self->{'T'}
200 16 6 if (defined $self->{'T'})
201 1 15 if (scalar @{$self->{'TI'};} > $self->{'TUNECACHESIZE'} - $self->{'CACHESIZE'})
212 0 24 if $DEBUG
226 0 0 if ($time < $Aref->[$n]{'t'}) { }
231 0 0 if ($t <= $b) { }
233 0 0 if ($Aref->[$t]{'t'} == $time) { }
0 0 elsif ($Aref->[$b]{'t'} == $time) { }
245 0 0 if $l == $n
256 0 24 if ($key ne $Aref->[$n]{'k'})
265 1 0 if $EndDebug
275 1 1 unless $self->{'INSTANCE'} eq $Instance
298 2 4 unless defined $self->{'T'}
299 2 2 unless $k
313 4 18 if ($i == $self->{'CACHESIZE'})