Branch Coverage

blib/lib/Object/Container.pm
Criterion Covered Total %
branch 53 68 77.9


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') { }
120 2 1 if (exists $args->{'initializer'} and ref $args->{'initializer'} eq 'CODE') { }
126 1 0 exists $args->{'args'} ? :
130 1 2 if $args->{'preload'}
137 1 21 if $is_preload
144 0 1 unless ref $self
146 1 0 if delete $self->registered_classes->{$class}
151 0 1 unless ref $self
158 11 21 unless ref $self
162 18 3 $initializer ? :
165 3 29 unless ($obj)
167 1 2 if (my($trigger) = grep({$class =~ /$_->[0]/;} @{$self->autoloader_rules;}))
173 1 2 $initializer ? :
177 2 30 unless $obj
182 0 2 unless ref $self
193 0 3 unless ref $self
196 2 4 if grep {$class eq $_;} @except
205 0 12 if ref $class or not defined $class or not length $class
213 3 11 unless exists $pack->{$part}
216 0 11 if ref $entry ne "GLOB"
220 0 9 unless %{$pack;}
224 3 0 if exists $pack->{'VERSION'} and defined *{$pack->{'VERSION'};}{"SCALAR"} and defined ${$$pack{"VERSION"};}
226 6 0 if exists $pack->{'ISA'} and defined *{$pack->{'ISA'};}{"ARRAY"} and @{$pack->{'ISA'};} != 0
231 0 0 if ref $entry ne "GLOB" or defined *{$entry;}{"CODE"}
242 9 3 if _is_class_loaded($class)
257 0 12 if $e