Branch Coverage

blib/lib/EntityModel/Class.pm
Criterion Covered Total %
branch 27 62 43.5


line true false branch
165 2 1 ref $_[0] && ref $_[0] eq 'HASH' ? :
168 0 7 if not ref $_
171 0 3 if $classInfo{$pkg} or $pkg->isa('EntityModel::BaseClass')
224 7 0 if $_
230 0 1 if ($INC{$file})
237 1 0 unless (eval { do { &Module::Load::load($c); 1 } })
238 0 1 unless $@ =~ /^Can't locate /
250 3 0 if $$info{'_log'} or not exists $$info{'_log'}
253 0 3 if (exists $$info{'_logMask'}{'default'})
258 0 3 if (exists $$info{'_logMask'}{'methods'})
275 0 3 if (exists $$info{'_vcs'})
291 0 3 if (my $match = delete $$info{'~~'})
293 0 0 if (ref $match) { }
298 0 0 unless defined $self and defined $target
299 0 0 unless ref $self and ref $target
300 0 0 unless $self->isa($pkg)
301 0 0 unless $target->isa($pkg)
302 0 0 unless refaddr $self == refaddr $target
315 1 6 if ($type eq 'array') { }
2 4 elsif ($type eq 'hash') { }
340 2 0 unless $pkg->can('import')
341 2 1 if %methodList
353 9 0 unless *$sym{'CODE'}
371 0 0 unless *$sym{'CODE'}
401 0 0 ref $allowed eq 'CODE' ? :
0 0 defined $allowed ? :
444 0 4 unless $v
445 0 4 $meth ? :
447 3 1 if ($action eq 'add') { }
1 0 elsif ($action eq 'drop') { }
457 1 0 if ($$attrDef{'type'} eq 'array') { }