Branch Coverage

blib/lib/Anansi/ObjectManager.pm
Criterion Covered Total %
branch 11 250 4.4


line true false branch
128 0 0 unless defined $parameters{'USER'}
129 0 0 if ref($parameters{'USER'}) =~ /^(|ARRAY|CODE|FORMAT|GLOB|HASH|IO|LVALUE|REF|Regexp|SCALAR|VSTRING)$/i
131 0 0 unless defined $parameters{'USES'}
132 0 0 if (ref($parameters{'USES'}) =~ /^(|CODE|FORMAT|GLOB|HASH|IO|LVALUE|REF|Regexp|SCALAR|VSTRING)$/i) { }
0 0 elsif (ref($parameters{'USES'}) =~ /^ARRAY$/i) { }
135 0 0 unless defined $$user{'IDENTIFICATION'}
137 0 0 unless (defined $userIndex)
144 0 0 if $index == $instance
145 0 0 unless defined $$self{'INSTANCE_' . $users[$index]}{'USER_' . $instance}
146 0 0 unless defined $$self{'INSTANCE_' . $instance}
149 0 0 if $instance == $found
151 0 0 if $found == scalar @users
155 0 0 if ref($uses) =~ /^(|CODE|FORMAT|GLOB|HASH|IO|LVALUE|REF|Regexp|SCALAR|VSTRING)$/i
156 0 0 unless defined $$uses{'IDENTIFICATION'}
158 0 0 unless (defined $usesIndex)
162 0 0 unless (defined $$uses{'USER_' . $userIndex})
165 0 0 if $usesIndex == $found
167 0 0 if $found == scalar @users
171 0 0 unless defined $$user{'IDENTIFICATION'}
173 0 0 unless (defined $userIndex)
180 0 0 if $index == $instance
181 0 0 unless defined $$self{'INSTANCE_' . $users[$index]}{'USER_' . $instance}
182 0 0 unless defined $$self{'INSTANCE_' . $instance}
185 0 0 if $instance == $found
187 0 0 if $found == scalar @users
191 0 0 unless defined $$uses{'IDENTIFICATION'}
193 0 0 unless (defined $usesIndex)
197 0 0 if (not defined $$uses{'USER_' . $userIndex})
200 0 0 if $usesIndex == $found
202 0 0 if $found == scalar @users
246 1 0 unless defined $$self{'INSTANCE_' . $instance}
250 0 0 if $instance == $user
251 0 0 if (defined $$self{'INSTANCE_' . $instance}{'USER_' . $user})
252 0 0 if undef == $$self{'INSTANCE_' . $instance}{'USER_' . $user}
253 0 0 unless defined $$self{'INSTANCE_' . $user}
257 0 0 if (scalar @{$$self{'IDENTIFICATIONS'};} == $user)
259 0 0 if (defined $$self{'INSTANCE_' . $instance})
260 0 0 if 0 == $$self{'INSTANCE_' . $instance}{'REGISTERED'}
306 1 1 if (not defined $instance) { }
0 1 elsif (ref($instance) =~ /^(CODE|FORMAT|GLOB|HASH|IO|LVALUE|REF|Regexp|SCALAR|VSTRING)$/i) { }
1 0 elsif (ref($instance) =~ /^$/) { }
317 0 1 if $instance =~ /^\s*$/
318 1 0 unless defined $$self{'IDENTIFICATIONS'}
319 0 0 unless ref($$self{'IDENTIFICATIONS'}) =~ /^ARRAY$/i
321 0 0 if $instance == @{$$self{'IDENTIFICATIONS'};}[$index]
323 0 0 unless $instance =~ /^\d+$/
324 0 0 if 0 + $instance < scalar @{$$self{'IDENTIFICATIONS'};}
326 0 0 unless defined $$instance{'IDENTIFICATION'}
327 0 0 if $$instance{'IDENTIFICATION'} =~ /^\s*$/
329 0 0 if $$instance{'IDENTIFICATION'} == @{$$self{'IDENTIFICATIONS'};}[$index]
402 0 1 if ref($class) =~ /^(ARRAY|CODE|FORMAT|GLOB|HASH|IO|LVALUE|REF|Regexp|SCALAR|VSTRING)$/i
403 0 1 unless ref($class) =~ /^$/
404 1 0 if (not defined $NAMESPACE) { }
489 0 0 unless defined $parameters{'USER'}
490 0 0 if ref($parameters{'USER'}) =~ /^(|ARRAY|CODE|FORMAT|GLOB|HASH|IO|LVALUE|REF|Regexp|SCALAR|VSTRING)$/i
492 0 0 unless defined $$user{'IDENTIFICATION'}
494 0 0 unless defined $userIndex
495 0 0 unless defined $$self{'INSTANCE_' . $userIndex}
496 0 0 if (not defined $parameters{'USES'}) { }
0 0 elsif (ref($parameters{'USES'}) =~ /^(|CODE|FORMAT|GLOB|HASH|IO|LVALUE|REF|Regexp|SCALAR|VSTRING)$/i) { }
0 0 elsif (ref($parameters{'USES'}) =~ /^ARRAY$/i) { }
498 0 0 unless defined $$self{'INSTANCE_' . $identification}
499 0 0 if (defined $$self{'INSTANCE_' . $identification}{'USER_' . $userIndex})
500 0 0 if (not defined $$self{'INSTANCE_' . $identification}{'PACKAGE'}) { }
0 0 elsif (not ref($$self{'INSTANCE_' . $identification}{'PACKAGE'}) =~ /^$/) { }
0 0 elsif (not $$self{'INSTANCE_' . $identification}{'PACKAGE'} =~ /^Anansi::.*$/) { }
508 0 0 if (defined $$self{'INSTANCE_' . $identification})
509 0 0 if defined $$self{'INSTANCE_' . $identification}{'USER_' . $userIndex}
517 0 0 if (ref($uses) =~ /^(CODE|FORMAT|GLOB|HASH|IO|LVALUE|REF|Regexp|SCALAR|VSTRING)$/i) { }
0 0 elsif (ref($uses) =~ /^$/) { }
521 0 0 unless defined $usesIndex
522 0 0 unless defined $$self{'INSTANCE_' . $usesIndex}
523 0 0 if (defined $$self{'INSTANCE_' . $usesIndex}{'USER_' . $userIndex})
524 0 0 if (not defined $$self{'INSTANCE_' . $usesIndex}{'PACKAGE'}) { }
0 0 elsif (not ref($$self{'INSTANCE_' . $usesIndex}{'PACKAGE'}) =~ /^$/) { }
0 0 elsif (not $$self{'INSTANCE_' . $usesIndex}{'PACKAGE'} =~ /^Anansi::.*$/) { }
532 0 0 if (defined $$self{'INSTANCE_' . $usesIndex})
533 0 0 if defined $$self{'INSTANCE_' . $usesIndex}{'USER_' . $userIndex}
537 0 0 unless defined $$uses{'IDENTIFICATION'}
539 0 0 unless defined $usesIndex
540 0 0 unless defined $$self{'INSTANCE_' . $usesIndex}
541 0 0 if (defined $$self{'INSTANCE_' . $usesIndex}{'USER_' . $userIndex})
542 0 0 if (not defined $$self{'INSTANCE_' . $usesIndex}{'PACKAGE'}) { }
0 0 elsif (not ref($$self{'INSTANCE_' . $usesIndex}{'PACKAGE'}) =~ /^$/) { }
0 0 elsif (not $$self{'INSTANCE_' . $usesIndex}{'PACKAGE'} =~ /^Anansi::.*$/) { }
550 0 0 if (defined $$self{'INSTANCE_' . $usesIndex})
551 0 0 if defined $$self{'INSTANCE_' . $usesIndex}{'USER_' . $userIndex}
558 0 0 unless defined $$uses{'IDENTIFICATION'}
560 0 0 unless defined $usesIndex
561 0 0 if (defined $$self{'INSTANCE_' . $usesIndex}{'USER_' . $userIndex})
562 0 0 if (not defined $$self{'INSTANCE_' . $usesIndex}{'PACKAGE'}) { }
0 0 elsif (not ref($$self{'INSTANCE_' . $usesIndex}{'PACKAGE'}) =~ /^$/) { }
0 0 elsif (not $$self{'INSTANCE_' . $usesIndex}{'PACKAGE'} =~ /^Anansi::.*$/) { }
570 0 0 if (defined $$self{'INSTANCE_' . $usesIndex})
571 0 0 if defined $$self{'INSTANCE_' . $usesIndex}{'USER_' . $userIndex}
642 0 0 if ref($instance) =~ /^(|ARRAY|CODE|FORMAT|GLOB|HASH|IO|LVALUE|REF|Regexp|SCALAR|VSTRING)$/i
643 0 0 unless (defined $$instance{'IDENTIFICATION'})
648 0 0 unless defined $instanceIndex
649 0 0 unless defined $$instance{'REGISTERED'}
651 0 0 unless defined $$self{'INSTANCE_' . $instanceIndex}
683 0 0 if ref($instance) =~ /^(|ARRAY|CODE|FORMAT|GLOB|HASH|IO|LVALUE|REF|Regexp|SCALAR|VSTRING)$/i
684 0 0 unless defined $$instance{'IDENTIFICATION'}
754 0 0 unless defined $$instance{'IDENTIFICATION'}
756 0 0 unless defined $instanceIndex
758 0 0 unless defined $$self{'INSTANCE_' . $instanceIndex}
759 0 0 if (0 == $$instance{'REGISTERED'})
761 0 0 if $instanceIndex == $identification
762 0 0 unless defined $$self{'INSTANCE_' . $identification}
763 0 0 if defined $$self{'INSTANCE_' . $instanceIndex}{'USER_' . $identification}
810 0 0 if ref($instance) =~ /^(|ARRAY|CODE|FORMAT|GLOB|HASH|IO|LVALUE|REF|Regexp|SCALAR|VSTRING)$/i
811 0 0 unless defined $$instance{'IDENTIFICATION'}
813 0 0 unless defined $instanceIndex
814 0 0 unless defined $$self{'INSTANCE_' . $instanceIndex}
817 0 0 if $instanceIndex == $identification
818 0 0 unless defined $$self{'INSTANCE_' . $identification}
819 0 0 if defined $$self{'INSTANCE_' . $identification}{'USER_' . $instanceIndex}
821 0 0 if 0 == scalar @identifications
866 0 0 if ref($instance) =~ /^(|ARRAY|CODE|FORMAT|GLOB|HASH|IO|LVALUE|REF|Regexp|SCALAR|VSTRING)$/i
867 0 0 unless defined $$instance{'IDENTIFICATION'}
869 0 0 unless defined $instanceIndex
870 0 0 unless defined $$self{'INSTANCE_' . $instanceIndex}
873 0 0 if $instanceIndex == $identification
874 0 0 if defined $$self{'INSTANCE_' . $instanceIndex}{'USER_' . $identification}
876 0 0 if 0 == scalar @identifications
900 1 0 if defined $OBJECTMANAGER