Branch Coverage

blib/lib/Object/Container.pm
Criterion Covered Total %
branch 52 66 78.7


line true false branch
15 1 12 if ($@)
25 9 8 unless $name
30 4 4 if ($name =~ /^-base$/i) { }
49 2 2 if ($Object::Container::_HAVE_EAC) { }
63 6 5 $target ? :
103 10 12 unless ref $self
106 19 3 if (defined $args and not ref $args) { }
3 0 elsif (ref $args eq 'HASH') { }
108 6 13 if (@rest == 1 and ref $rest[0] eq 'CODE') { }
121 2 1 if (ref $$args{'initializer'} eq 'CODE') { }
131 1 2 if $$args{'preload'}
138 1 21 if $is_preload
145 0 1 unless ref $self
147 1 0 if delete $self->registered_classes->{$class}
152 0 1 unless ref $self
159 11 21 unless ref $self
163 18 3 $initializer ? :
166 3 29 unless ($obj)
168 1 2 if (my($trigger) = grep({$class =~ /$$_[0]/;} @{$self->autoloader_rules;}))
174 1 2 $initializer ? :
178 2 30 unless $obj
183 0 2 unless ref $self
194 0 3 unless ref $self
197 2 4 if grep {$class eq $_;} @except
206 0 12 if ref $class or not defined $class or not length $class
214 3 11 unless exists $$pack{$part}
217 0 11 if ref $entry ne 'GLOB'
221 0 9 unless %{$pack;}
225 3 0 if exists $$pack{'VERSION'} and defined *{$$pack{'VERSION'};}{'SCALAR'} and defined ${$$pack{'VERSION'};}
227 6 0 if exists $$pack{'ISA'} and defined *{$$pack{'ISA'};}{'ARRAY'} and @{$$pack{'ISA'};} != 0
232 0 0 if ref $entry ne 'GLOB' or defined *{$entry;}{'CODE'}
243 9 3 if _is_class_loaded($class)
258 0 12 if $e