Branch Coverage

blib/lib/Test/Mock/Redis.pm
Criterion Covered Total %
branch 42 44 95.4


line true false branch
120 7 17 defined $args{'server'} ? :
123 5 19 if ($instances->{$server})
124 1 4 if $instances->{$server}{'_shutdown'}
604 3475 118 unless defined $index
1275 29 122 if $index < 0
1284 7 40 if $end >= $length
1300 11 58 unless $self->_is_list($key)
1315 5 20 unless $self->_is_hash($key)
1330 7 25 unless $self->_is_set($key)
1345 3 17 unless $self->_is_zset($key)
1355 1 5 if defined $self->{'_multi_commands'}
1373 1 3 unless defined $self->{'_multi_commands'}
1381 1 2 if ($cb and 'CODE' eq ref $cb)
1386 0 1 $want_list{$method} ? :
1407 2 5 $want_list{$method} ? :
1412 1 1 if @exceptions
1420 1 2 unless defined $self->{'_multi_commands'}
1591 2078 20 $self->EXISTS($key) ? :
1605 3 3073 if (exists $expires->{$self}{$key} and time >= $expires->{$self}{$key})
1625 0 5 if ($now >= $expires->{$self}{$key}) { }
1634 1 31 if $count
1649 1 7 unless exists $expires->{$self}{$key}