Branch Coverage

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


line true false branch
120 7 16 defined $args{'server'} ? :
123 5 18 if ($instances->{$server})
124 1 4 if $instances->{$server}{'_shutdown'}
578 3211 118 unless defined $index
1245 18 105 if $index < 0
1254 6 27 if $end >= $length
1270 8 47 unless $self->_is_list($key)
1285 5 20 unless $self->_is_hash($key)
1300 7 25 unless $self->_is_set($key)
1315 3 17 unless $self->_is_zset($key)
1325 1 5 if defined $self->{'_multi_commands'}
1369 1 2 unless defined $self->{'_multi_commands'}
1539 1925 19 $self->EXISTS($key) ? :
1553 3 2806 if (exists $expires->{$self}{$key} and time >= $expires->{$self}{$key})
1582 1 11 unless exists $expires->{$self}{$key}