Branch Coverage

lib/Redis/SQLite.pm
Criterion Covered Total %
branch 63 74 85.1


line true false branch
126 0 19 if -e $file
134 19 0 if ($create)
146 19 0 unless ($ENV{'SAFE'})
188 22 15 if ($x)
198 1 14 if ($x)
218 12 340 unless ($self->{'get'})
262 1 3 if ($s < 0)
266 2 2 if ($e < 0)
287 6 0 if (defined $data)
325 1 1 if $self->exists($new_name)
348 13 162 unless ($self->{'ins'})
370 1 0 if $self->exists($key)
392 7 1 $val ? :
420 3 3 if $x
427 1 2 if $x
458 0 12 unless defined $amt
493 0 12 unless defined $amt
519 72 6 if $str->rows > 0
527 1 5 if $set->rows > 0
575 4 38 if ($pattern) { }
580 13 17 if $ent =~ /$pattern/
634 3 10 unless ($self->{'smembers'})
669 1 1 if ($sql->rows > 0)
695 11 11 if (defined $x and $x eq $key)
713 7 58 unless ($self->{'sadd'})
724 65 0 if ($self->{'sadd'}->rows > 0)
743 3 6 unless ($self->{'srem'})
751 9 0 if ($self->{'srem'}->rows > 0)
769 1 3 unless defined $count
797 2 4 unless ($self->{'srandommember'})
800 0 2 unless $self->{'srandommember'} = $self->{'db'}->prepare('SELECT val FROM sets where key=? ORDER BY RANDOM() LIMIT 1')
921 5 10 if ($seen{$key} == scalar @names)
968 6 20 unless ($self->{'scard'})
1040 320 68 $bin ? :
1080 40 0 $bin ? :
1143 4 1 if ($self->exists($key)) { }
1199 1 2 if $self->exists($key)