Branch Coverage

blib/lib/KiokuDB/Collapser/Buffer.pm
Criterion Covered Total %
branch 27 32 84.3


line true false branch
31 35 2490 unless $self->object_to_id($_)
49 0 0 if (defined(my $obj = $self->_ids->{$id})) { }
114 0 17768 if @args
130 682 863 if (my(@flatten) = grep({not $fc->includes($_);} @$simple))
143 4 8553 if ($self->compact_data($data, $flatten))
151 8648 8718 if (ref $data eq 'KiokuDB::Reference') { }
6033 2685 elsif (ref $data eq 'ARRAY') { }
2388 297 elsif (ref $data eq 'HASH') { }
43 254 elsif (ref $data eq 'SCALAR' or ref $data eq 'REF') { }
90 164 elsif (ref $data eq 'KiokuDB::Entry') { }
154 6059 2589 if (my $entry = $$flatten{$id})
159 4 6055 if ($entry->tied or $entry->class) { }
188 165 1514 unless my $entry = $$entries{$id}
189 0 1514 if $entry->has_root
219 3374 0 unless $$args{$id}
223 2037 1337 if (not $l->object_to_id($object)) { }