Branch Coverage

blib/lib/Net/Google/SafeBrowsing2/Redis.pm
Criterion Covered Total %
branch 0 60 0.0


line true false branch
93 0 0 unless bless $self, $class
110 0 0 unless (exists $$self{'redis'})
131 0 0 if $$self{'backward_compatible'}
144 0 0 unless $$self{'backward_compatible'}
146 0 0 if ($type eq 's') { }
0 0 elsif ($type eq 'a') { }
158 0 0 if (scalar @$chunks == 0)
213 0 0 unless ($redis->exists($key))
218 0 0 unless $$self{'backward_compatible'}
219 0 0 if $$chunk{'hostkey'} eq $hostkey
234 0 0 unless ($redis->exists($key))
240 0 0 unless $$self{'backward_compatible'}
241 0 0 if $$chunk{'hostkey'} eq $hostkey
268 0 0 unless $$self{'backward_compatible'}
280 0 0 unless $$self{'backward_compatible'}
291 0 0 if ($redis->scard("ah$host") == 0)
312 0 0 unless $$self{'backward_compatible'}
323 0 0 if ($redis->scard("sh$host") == 0)
344 0 0 unless $$self{'backward_compatible'}
351 0 0 if $$chunk{'chunknum'} == $chunknum and exists $$chunk{'timestamp'} and exists $$chunk{'hash'} and $$chunk{'timestamp'} >= $timestamp
365 0 0 unless $$self{'backward_compatible'}
376 0 0 unless $$self{'backward_compatible'}
384 0 0 unless $$self{'backward_compatible'}
386 0 0 if (scalar @$keys > 0) { }
404 0 0 unless $$self{'keep_all'}
414 0 0 unless $$self{'backward_compatible'}
420 0 0 if $key =~ /^h$num/
434 0 0 if (scalar @$keys == 0) { }
458 0 0 if (scalar @$keys > 0) { }
471 0 0 if (scalar $self->redis->keys('mac') == 0) { }