Branch Coverage

blib/lib/Test/Mock/Redis.pm
Criterion Covered Total %
branch 30 30 100.0


line true false branch
120 7 17 defined $args{'server'} ? :
123 5 19 if ($instances->{$server})
124 1 4 if $instances->{$server}{'_shutdown'}
583 3293 118 unless defined $index
1252 24 111 if $index < 0
1261 6 33 if $end >= $length
1277 11 56 unless $self->_is_list($key)
1292 5 20 unless $self->_is_hash($key)
1307 7 25 unless $self->_is_set($key)
1322 3 17 unless $self->_is_zset($key)
1332 1 5 if defined $self->{'_multi_commands'}
1376 1 2 unless defined $self->{'_multi_commands'}
1546 1992 19 $self->EXISTS($key) ? :
1560 3 2885 if (exists $expires->{$self}{$key} and time >= $expires->{$self}{$key})
1589 1 11 unless exists $expires->{$self}{$key}