Branch Coverage

blib/lib/Redis/Namespace.pm
Criterion Covered Total %
branch 19 82 23.1


line true false branch
332 0 20 unless $namespace
337 16 16 if ($item and not $type) { }
4 12 elsif ($type eq 'SCALAR') { }
4 8 elsif ($type eq 'ARRAY') { }
4 4 elsif ($type eq 'HASH') { }
360 0 20 unless $namespace
365 16 16 if ($item and not $type) { }
4 12 elsif ($type eq 'SCALAR') { }
4 8 elsif ($type eq 'ARRAY') { }
4 4 elsif ($type eq 'HASH') { }
621 0 4 if ($args{'guess'})
623 0 0 if ($count) { }
0 0 elsif ($self->{'warning'}) { }
648 0 0 if ($filters)
649 0 0 if (ref $filters eq 'HASH') { }
651 0 0 if (@extra > 0) { }
677 0 0 if ($self->{'strict'} and $UNSAFE_COMMANDS{$command})
681 0 0 unless ($before and $after)
682 0 0 if ($self->{'strict'})
688 0 0 if (@args and ref $args[-1] eq 'CODE') { }
699 0 0 if (not $wantarray) { }
0 0 elsif ($wantarray) { }
713 0 0 unless ($self->{'guess'})
718 0 0 if (my $cache = $self->{'guess_cache'}{$command})
723 0 0 if ($movablekeys)
728 0 0 unless $info->[0]
730 0 0 unless ($name)
731 0 0 if ($self->{'warning'})
739 0 0 unless $flags
740 0 0 if ($movablekeys)
747 0 0 if ($first > 0)
761 0 0 if (@args and ref $args[-1] eq 'CODE')
766 0 0 unless my(@keys) = eval { do { $self->{'redis'}->command_getkeys($command, @args) } }
775 0 0 if $args[$j] ne $key
777 0 0 if ($i + 1 < @keys) { }
787 0 0 if (@list == 0) { }
0 0 elsif (@list == 1) { }
810 0 0 if (scalar @keys != scalar @want)
814 0 0 if ($keys[$i] ne $want[$i])
870 0 0 unless ref $cb eq 'CODE'
882 0 0 unless ref $cb eq 'CODE'