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') { }
613 0 4 if ($args{'guess'})
615 0 0 if ($count) { }
0 0 elsif ($self->{'warning'}) { }
640 0 0 if ($filters)
641 0 0 if (ref $filters eq 'HASH') { }
643 0 0 if (@extra > 0) { }
669 0 0 if ($self->{'strict'} and $UNSAFE_COMMANDS{$command})
673 0 0 unless ($before and $after)
674 0 0 if ($self->{'strict'})
680 0 0 if (@args and ref $args[-1] eq 'CODE') { }
691 0 0 if (not $wantarray) { }
0 0 elsif ($wantarray) { }
705 0 0 unless ($self->{'guess'})
710 0 0 if (my $cache = $self->{'guess_cache'}{$command})
715 0 0 if ($movablekeys)
720 0 0 unless $info->[0]
722 0 0 unless ($name)
723 0 0 if ($self->{'warning'})
731 0 0 unless $flags
732 0 0 if ($movablekeys)
739 0 0 if ($first > 0)
753 0 0 if (@args and ref $args[-1] eq 'CODE')
758 0 0 unless my(@keys) = eval { do { $self->{'redis'}->command_getkeys($command, @args) } }
767 0 0 if $args[$j] ne $key
769 0 0 if ($i + 1 < @keys) { }
779 0 0 if (@list == 0) { }
0 0 elsif (@list == 1) { }
802 0 0 if (scalar @keys != scalar @want)
806 0 0 if ($keys[$i] ne $want[$i])
862 0 0 unless ref $cb eq 'CODE'
874 0 0 unless ref $cb eq 'CODE'