Branch Coverage

blib/lib/KiokuDB/Collapser.pm
Criterion Covered Total %
branch 49 64 76.5


line true false branch
73 529 1039 if ($args{'shallow'})
94 1545 1 if $self->compact
102 68 0 ref $ref_or_id ? :
114 9487 104 if (my $id = $args{'id'}) { }
119 137 9350 if (not $prev and $l->id_in_storage($id))
125 915 8572 $prev ? :
152 0 167 unless ($id)
153 0 0 unless $prev
165 1703 11291 if $weak
167 1703 11291 $weak ? :
178 0 2462 if (my $entry = $b->intrinsic_entry($seen)) { }
2461 1 elsif (my $id = $self->_buffer->object_to_id($seen) || $self->live_objects->object_to_id($seen)) { }
181 9 2452 unless &blessed($seen)
195 0 8658 if (my $entry = $$o{'only_in_storage'} && $self->live_objects->object_to_entry($ref))
199 6286 2372 if (my $id = $self->_ref_id($ref)) { }
2372 0 elsif ($self->compact and not &isweak($_[1])) { }
200 0 6286 if (not $self->compact and my $only = $$o{'only'})
201 0 0 unless ($only->contains($ref))
208 33 6253 if (ref $collapsed eq 'KiokuDB::Reference' and $collapsed->id eq $id) { }
240 223 8472 if (my $id = $l->object_to_id($ref)) { }
245 2372 6100 if ($b->options->{'only_known'}) { }
246 2372 0 if ($self->compact) { }
272 37 0 if (my $id = $self->_ref_id($ref)) { }
273 0 37 if (not $self->compact and my $only = $self->_buffer->options->{'only'})
274 0 0 unless ($only->contains($ref))
322 3 4250 if ($$o{'only_in_storage'} and $in_storage)
326 1679 2571 if (my $only = $$o{'only'})
327 878 801 unless ($only->contains($object))
328 876 2 if ($in_storage) { }
336 2184 1188 unless ($id)
337 3 2181 if ($$o{'only_known'}) { }
344 66 2115 if (defined(my $conflict = $l->id_to_object($id))) { }