Branch Coverage

blib/lib/Collection.pm
Criterion Covered Total %
branch 22 38 57.8


line true false branch
197 7 0 if (%$created)
198 0 7 if (ref $self->_on_create eq 'CODE')
220 10 0 if (my $item_refs = $self->fetch($id))
251 0 28 unless defined $id
254 6 22 if (exists $$coll_ref{$id})
260 21 6 if (scalar @fetch and my $results = $self->_fetch(@fetch))
266 0 13 if exists $$coll_ref{$key}
270 13 0 if (ref $ref) { }
297 1 4 if (not @ids) { }
331 3 4 unless @store_ids
335 0 10 unless ref $ref
336 6 4 if ($self->is_record_changed($ref))
340 6 1 if (%to_store)
341 0 6 if (ref $self->_on_store eq 'CODE')
361 0 4 if (ref $self->_on_delete eq 'CODE')
382 10 0 if (ref $record eq 'HASH') { }
395 0 0 if UNIVERSAL::can($record, '_changed')
396 0 0 if UNIVERSAL::can($record, '_get_attr')
407 0 0 if $self->is_record_changed($value)