Branch Coverage

blib/lib/Trinket/Directory/DataAccess/RAM.pm
Criterion Covered Total %
branch 25 50 50.0


line true false branch
123 0 1 if $$params{'file'}
141 0 5 if $$params{'file'}
145 0 5 if (defined $$self{'save_file'})
149 0 0 unless CORE::open FIN, $$self{'save_file'}
157 2 3 if $DIRS{$dir_name}{'created'} ne 1
160 0 3 if $$self{'cache_objects'}
177 0 2 if (defined $$self{'save_file'})
180 0 0 unless CORE::open FOUT, '> ' . $$self{'save_file'}
211 0 0 if ($@)
234 1 105 if (defined $id and $self->is_deleted_id($id))
239 106 0 unless (defined $id)
257 106 0 if ($dirty = $obj->_find_dirty_indices)
263 3 632 if ($dirty_old)
270 0 106 if ($@)
274 106 0 if ($is_new)
283 0 106 if ($@)
340 0 15 unless defined $op and defined $operand
478 0 24 if ($$operand[0] ne 'STRING' or $$operand[2] ne 'STRING')
507 2 665 unless defined $$self{'directory'}
573 0 3 unless $self->index_exists($name)
577 3 0 if (defined $value) { }
580 0 3 if not keys %{$$name_index{$value};}
583 0 0 if $$name_index{$value}{$id}
585 0 0 unless (keys %{$$name_index{$value};})
600 7 946 unless $self->index_exists($name)