Branch Coverage

blib/lib/Persistent/Hash.pm
Criterion Covered Total %
branch 22 184 11.9


line true false branch
60 0 0 unless defined $classname
61 0 0 unless defined $id
62 0 0 unless $id =~ /^[0-9]+$/
65 0 0 if tied %$self
66 0 0 unless defined $untied_self
71 0 0 unless (defined $object_info)
82 0 0 unless ($self->LOAD_ON_DEMAND)
93 0 0 unless defined $self
95 0 0 if tied %$self
96 0 0 unless defined $self
104 0 0 unless defined $self
112 0 0 unless defined $self
114 0 0 if tied %$self
115 0 0 unless defined $untied_self
123 0 0 unless defined $self
125 0 0 if tied %$self
126 0 0 unless defined $untied_self
133 0 3 unless defined $self
135 0 3 ref $self ? :
146 0 0 unless defined $self
148 0 0 if tied %$self
149 0 0 unless defined $untied_self
151 0 0 unless $untied_self->STORABLE
152 0 0 if not $untied_self->_IsDirty and $untied_self->SAVE_ONLY_IF_DIRTY
156 0 0 if (not defined $$untied_self{'_object_id'}) { }
159 0 0 unless defined $object_id
170 0 0 unless defined $object_id
182 0 0 unless defined $self
184 0 0 if tied %$self
185 0 0 unless defined $untied_self
187 0 0 unless $untied_self->STORABLE
188 0 0 unless $$untied_self{'_object_id'}
193 0 0 if ($delete_status) { }
217 0 0 unless defined $self
219 0 0 if tied %$self
220 0 0 unless defined $untied_self
229 0 0 unless defined $self
231 0 0 if tied %$self
232 0 0 unless defined $untied_self
236 0 0 unless (defined $id)
250 0 0 unless defined $self
252 0 0 if tied %$self
253 0 0 unless defined $untied_self
273 0 9 unless defined $untied_self
274 0 9 if tied %$untied_self
276 0 9 unless $untied_self->LOAD_ON_DEMAND
277 9 0 unless defined $$untied_self{'_object_id'}
278 0 0 if defined $$untied_self{'_object_id'} and defined $$untied_self{'_initialized'}
285 0 0 unless defined $untied_self
286 0 0 if tied %$untied_self
288 0 0 unless defined $$untied_self{'_object_id'}
298 0 0 if not $$untied_self{'_data_fields'}{$key} and $untied_self->STRICT_FIELDS
299 0 0 unless defined $$untied_self{'_data'}{$key}
304 0 0 if not $$untied_self{'_index_fields'}{$key} and $untied_self->STRICT_FIELDS
305 0 0 unless defined $$untied_self{'_index_data'}{$key}
316 0 0 unless defined $untied_self
317 0 0 if tied %$untied_self
323 0 0 if ref $$untied_self{'_data'}{$key}
326 0 0 if $$untied_self{'_index_dirty'} == 1
327 0 0 if $$untied_self{'_data_dirty'} == 1
334 0 0 unless defined $untied_self
335 0 0 if tied %$untied_self
350 0 0 unless defined $untied_self
351 0 0 if tied %$untied_self
353 0 0 if $$untied_self{'_storage_module_preloaded'}
357 0 0 if ($@)
372 0 3 if $classname->DEBUG_LEVEL
414 0 0 if $untied_self->DEBUG_LEVEL
417 0 0 unless $untied_self->_IsInitialized
419 0 0 if ($$untied_self{'_index_fields'}{$key}) { }
0 0 elsif ($$untied_self{'_data_fields'}{$key}) { }
439 0 0 if $untied_self->DEBUG_LEVEL
441 0 0 unless $untied_self->_IsInitialized
455 0 4 if $untied_self->DEBUG_LEVEL
457 0 4 unless $untied_self->_IsInitialized
459 2 2 if ($$untied_self{'_index_fields'}{$key}) { }
2 0 elsif ($$untied_self{'_data_fields'}{$key}) { }
0 0 elsif ($untied_self->STRICT_FIELDS) { }
485 0 2 if $untied_self->DEBUG_LEVEL
487 0 2 unless $untied_self->_IsInitialized
489 2 0 if ($untied_self->STRICT_FIELDS) { }
491 1 1 if ($$untied_self{'_index_fields'}{$key})
495 1 0 if ($$untied_self{'_data_fields'}{$key})
503 0 0 if ($$untied_self{'_index_fields'}{$key})
515 0 0 if $untied_self->DEBUG_LEVEL
518 0 0 unless $untied_self->_IsInitialized
520 0 0 if ($$untied_self{'_index_fields'}{$key}) { }
0 0 elsif ($$untied_self{'_data_fields'}{$key}) { }
537 0 2 if $untied_self->DEBUG_LEVEL
539 0 2 unless $untied_self->_IsInitialized
546 0 1 if $untied_self->DEBUG_LEVEL
548 0 1 unless $untied_self->_IsInitialized