Branch Coverage

blib/lib/SIAM/Driver/Simple.pm
Criterion Covered Total %
branch 43 60 71.6


line true false branch
93 0 1 unless defined $$self{'logger'}
98 0 1 unless (defined $$drvopts{$param})
108 0 1 unless (-r $$self{'datafile'})
135 0 1 if ($@)
142 0 1 if (ref $data ne 'ARRAY')
173 0 59 unless (defined $id)
182 0 59 unless (defined $class)
194 298 19 if ($key ne '_contains_')
207 19 40 if (defined $$obj{'_contains_'})
251 0 114 unless (defined $id)
257 0 114 unless (defined $$self{'objects'}{$id})
265 557 2 unless ($key =~ /^_compute_/o)
290 0 3 unless (defined $obj)
296 2 1 if ($key eq 'siam.contract.content_md5hash') { }
298 2 0 if ($$obj{'siam.object.class'} eq 'SIAM::Contract')
301 0 2 if ($st->mtime != $$self{'datafile_lastmod'}) { }
0 2 elsif (defined $$self{'computable_cache'}{$key}) { }
321 1 0 if (defined $val)
345 12 8 if (defined $$self{'contains'}{$id})
381 20 35 if (defined $options)
383 20 0 if (defined $$options{'match_attribute'})
398 35 0 if (defined $$self{'contains'}{$container_id}{$class})
422 20 40 if (defined $$self{'contains'}{$id})
447 0 2 unless (defined $container_id)
453 1 1 if ($container_id ne 'SIAM.ROOT')
517 20 57 unless ($attr =~ /^siam\./o)
612 49 1 unless ($obj->is_root)
628 49 1 if (&{$filter_callback;}($contained_obj))
637 1 49 if ($obj->is_root)
642 13 36 if (scalar @{$contained_data;} > 0)