Branch Coverage

blib/lib/KiokuDB/Entry.pm
Criterion Covered Total %
branch 64 70 91.4


line true false branch
29 842 2899 if ($self->has_id and my $prev = $self->prev) { }
93 5 5 if ($self->has_prev) { }
111 54 117 $self->has_object ? :
0 171 $self->has_backend_data ? :
140 1 2088 if ($self->class eq 'KiokuDB::Set::Stored') { }
151 67 6413 if ($ref eq 'HASH') { }
2209 4204 elsif ($ref eq 'ARRAY') { }
2 4202 elsif ($ref eq 'KiokuDB::Entry') { }
4201 1 elsif ($ref eq 'KiokuDB::Reference') { }
183 1 2082 if ($self->class eq 'KiokuDB::Set::Stored') { }
211 1989 2582 if $self->root
212 2 4569 if $self->deleted
214 31 4540 if ($self->has_tied)
227 11075 12 if ($v == 1) { }
230 0 11075 if length $extra
232 11022 53 if length $id
234 4794 6281 if length $class
237 2 11073 if $flags & 2
239 31 11044 if (my $tied = ($flags & 12) >> 2)
266 0 12 if $root and $root ne '1'
267 0 12 if $deleted and $deleted ne '1'
269 12 0 if $id
270 1 11 if $root
271 1 11 if $class
272 1 11 if $tied
273 1 11 if $deleted
280 4569 2 $self->has_data ? :
2 4569 $self->has_backend_data ? :
27 4544 $self->has_class_meta ? :
100 4471 $self->has_class_version ? :
295 11075 0 if ($refs)
297 11073 2 if defined $data
298 2 11073 if ref $backend_data
299 27 11048 if ref $meta
300 96 10979 if defined $version