Branch Coverage

blib/lib/Bot/Cobalt/Plugin/RDB/SearchCache.pm
Criterion Covered Total %
branch 16 22 72.7


line true false branch
35 0 8 unless defined $ckey and defined $match
36 0 8 unless ref $resultset eq 'ARRAY'
55 2 3 unless defined $ckey and defined $match and exists $self->{'Cache'}{$ckey} and $self->{'Cache'}{$ckey}{$match}
59 1 2 wantarray ? :
63 2 8 if defined $max
71 0 1 unless (defined $ckey)
78 0 1 unless exists $self->{'Cache'}{$ckey} and keys %{$$self{'Cache'}{$ckey};}
80 0 1 if defined $match
89 2 6 unless defined $ckey and ref $self->{'Cache'}{$ckey}
93 5 1 unless scalar keys %$cacheref > $self->MaxKeys
103 1 0 if delete $cacheref->{$nextkey}