Branch Coverage

blib/lib/DB/DataStore.pm
Criterion Covered Total %
branch 30 50 60.0


line true false branch
68 0 1 if (@$err)
137 1 3 if ($current_store_id)
140 0 1 unless $old_store
142 1 0 if ($old_store->{'RECORD_SIZE'} >= $save_size)
149 0 0 if $old_store
170 0 2 unless $store_id
187 0 1 unless defined $store_id
204 2 0 if ($store_size >= $record_size)
205 2 0 if (not defined $best_size or $store_size < $best_size)
213 2 1 if ($best_store)
239 6 1 if ($self->{'STORES'}[$store_index])
320 0 5 unless $useSize
321 5 0 unless (-e $filename)
326 0 5 unless CORE::open $FH, "+<$filename"
358 0 0 if ($count > $entries)
390 0 12 unless sysseek $fh, $self->{'RECORD_SIZE'} * ($idx - 1), 0
392 0 12 unless defined $srv
419 5 2 unless $entries
452 16 0 ref $data ? :
455 6 10 if ($to_write_length < $self->{'RECORD_SIZE'})
459 0 6 unless $to_write_length == $self->{'RECORD_SIZE'}
461 16 0 if sysseek $fh, $self->{'RECORD_SIZE'} * ($idx - 1), 0
462 0 16 unless defined $swv
562 5 2 unless $self->{'RECYCLER'}->pop
563 2 5 $recycled_id ? :