Branch Coverage

blib/lib/Trinket/Directory.pm
Criterion Covered Total %
branch 55 72 76.3


line true false branch
179 1 6 unless $self->init(@_)
195 2 5 if (defined $desc)
196 1 1 unless $self->open($desc, $props)
225 0 1 if $$props{'cache_objects'}
226 0 1 if $$self{'cache_objects'}
236 0 1 unless $data->create($name, $props)
263 0 5 if $$props{'cache_objects'}
264 0 5 if $$self{'cache_objects'}
274 2 3 unless $data->open($name, $props)
296 0 2 unless $self->is_ready
318 0 0 unless $self->is_ready
338 0 0 unless ($self->is_ready)
366 1 106 unless $self->is_ready
369 0 106 unless defined $obj
384 2 104 if (defined $old_id and $old_dir ne $self)
391 0 106 unless (defined($id = $data->store_object($obj)))
398 103 3 if $$self{'cache_objects'}
421 0 549 unless $self->is_ready
425 521 28 if defined $$self{'cache'}[$id] and $$self{'cache_objects'}
438 1 4 if $$self{'cache_objects'}
466 0 6 unless $self->is_ready
469 2 4 $is_obj ? :
470 2 4 $is_obj ? :
475 0 6 unless defined $id
478 4 2 unless ($is_obj)
481 2 2 if $$self{'cache_objects'}
484 3 1 unless defined $obj
488 1 5 unless defined $obj
499 3 2 if $$self{'cache_objects'}
525 0 15 if (@_) { }
539 523 20 if defined $obj
585 2 667 unless defined $$self{'data_access'}
610 15 6 if defined $$self{'parser'}{$parser}
629 2 10 unless (${$class . '::DESCRIPTION';})
632 0 2 if $@
648 2 3 if $self->is_ready