Branch Coverage

blib/lib/Anansi/ObjectManager.pm
Criterion Covered Total %
branch 11 390 2.8


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 if (not defined $user->{'Anansi'}) { }
0 0 elsif (not ref($user->{'Anansi'}) =~ /^HASH$/i) { }
0 0 elsif (not defined do { $$user{'Anansi'} }->{'ObjectManager'}) { }
0 0 elsif (not ref(do { $$user{'Anansi'} }->{'ObjectManager'}) =~ /^HASH$/i) { }
0 0 elsif (not defined do { ${$$user{'Anansi'};}{'ObjectManager'} }->{'IDENTIFICATION'}) { }
147 0 0 unless (defined $userIndex)
154 0 0 if $index == $instance
155 0 0 unless defined $$self{'INSTANCE_' . $users[$index]}{'USER_' . $instance}
156 0 0 unless defined $$self{'INSTANCE_' . $instance}
159 0 0 if $instance == $found
161 0 0 if $found == scalar @users
165 0 0 if ref($uses) =~ /^(|CODE|FORMAT|GLOB|HASH|IO|LVALUE|REF|Regexp|SCALAR|VSTRING)$/i
166 0 0 if (not defined $uses->{'Anansi'}) { }
0 0 elsif (not ref($uses->{'Anansi'}) =~ /^HASH$/i) { }
0 0 elsif (not defined do { $$uses{'Anansi'} }->{'ObjectManager'}) { }
0 0 elsif (not ref(do { $$uses{'Anansi'} }->{'ObjectManager'}) =~ /^HASH$/i) { }
0 0 elsif (not defined do { ${$$uses{'Anansi'};}{'ObjectManager'} }->{'IDENTIFICATION'}) { }
178 0 0 unless (defined $usesIndex)
182 0 0 unless (defined $$uses{'USER_' . $userIndex})
185 0 0 if $usesIndex == $found
187 0 0 if $found == scalar @users
191 0 0 if (not defined $user->{'Anansi'}) { }
0 0 elsif (not ref($user->{'Anansi'}) =~ /^HASH$/i) { }
0 0 elsif (not defined do { $$user{'Anansi'} }->{'ObjectManager'}) { }
0 0 elsif (not ref(do { $$user{'Anansi'} }->{'ObjectManager'}) =~ /^HASH$/i) { }
0 0 elsif (not defined do { ${$$user{'Anansi'};}{'ObjectManager'} }->{'IDENTIFICATION'}) { }
203 0 0 unless (defined $userIndex)
210 0 0 if $index == $instance
211 0 0 unless defined $$self{'INSTANCE_' . $users[$index]}{'USER_' . $instance}
212 0 0 unless defined $$self{'INSTANCE_' . $instance}
215 0 0 if $instance == $found
217 0 0 if $found == scalar @users
221 0 0 if (not defined $uses->{'Anansi'}) { }
0 0 elsif (not ref($uses->{'Anansi'}) =~ /^HASH$/i) { }
0 0 elsif (not defined do { $$uses{'Anansi'} }->{'ObjectManager'}) { }
0 0 elsif (not ref(do { $$uses{'Anansi'} }->{'ObjectManager'}) =~ /^HASH$/i) { }
0 0 elsif (not defined do { ${$$uses{'Anansi'};}{'ObjectManager'} }->{'IDENTIFICATION'}) { }
233 0 0 unless (defined $usesIndex)
237 0 0 if (not defined $$uses{'USER_' . $userIndex})
240 0 0 if $usesIndex == $found
242 0 0 if $found == scalar @users
286 1 0 unless defined $$self{'INSTANCE_' . $instance}
290 0 0 if $instance == $user
291 0 0 if (defined $$self{'INSTANCE_' . $instance}{'USER_' . $user})
292 0 0 if undef == $$self{'INSTANCE_' . $instance}{'USER_' . $user}
293 0 0 unless defined $$self{'INSTANCE_' . $user}
297 0 0 if (scalar @{$self->{'IDENTIFICATIONS'};} == $user)
299 0 0 if (defined $$self{'INSTANCE_' . $instance})
300 0 0 if (not defined do { $$self{'INSTANCE_' . $instance} }->{'Anansi'}) { }
0 0 elsif (not ref(do { $$self{'INSTANCE_' . $instance} }->{'Anansi'}) =~ /^HASH$/i) { }
0 0 elsif (not defined do { ${$$self{'INSTANCE_' . $instance};}{'Anansi'} }->{'ObjectManager'}) { }
0 0 elsif (not ref(do { ${$$self{'INSTANCE_' . $instance};}{'Anansi'} }->{'ObjectManager'}) =~ /^HASH$/i) { }
0 0 elsif (not defined do { ${${$$self{'INSTANCE_' . $instance};}{'Anansi'};}{'ObjectManager'} }->{'IDENTIFICATION'}) { }
0 0 elsif (not defined do { ${${$$self{'INSTANCE_' . $instance};}{'Anansi'};}{'ObjectManager'} }->{'REGISTERED'}) { }
0 0 elsif (0 == do { ${${$$self{'INSTANCE_' . $instance};}{'Anansi'};}{'ObjectManager'} }->{'REGISTERED'}) { }
360 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) =~ /^$/) { }
371 0 1 if $instance =~ /^\s*$/
372 1 0 unless defined $self->{'IDENTIFICATIONS'}
373 0 0 unless ref($self->{'IDENTIFICATIONS'}) =~ /^ARRAY$/i
375 0 0 if $instance == @{$$self{'IDENTIFICATIONS'};}[$index]
377 0 0 unless $instance =~ /^\d+$/
378 0 0 if (0 + $instance < scalar @{$self->{'IDENTIFICATIONS'};})
382 0 0 unless defined $instance->{'Anansi'}
383 0 0 unless ref($instance->{'Anansi'}) =~ /^HASH$/i
384 0 0 unless defined do { $$instance{'Anansi'} }->{'ObjectManager'}
385 0 0 unless ref(do { $$instance{'Anansi'} }->{'ObjectManager'}) =~ /^HASH$/i
386 0 0 unless defined do { ${$$instance{'Anansi'};}{'ObjectManager'} }->{'IDENTIFICATION'}
387 0 0 unless ref(do { ${$$instance{'Anansi'};}{'ObjectManager'} }->{'IDENTIFICATION'}) =~ /^$/
388 0 0 unless do { ${$$instance{'Anansi'};}{'ObjectManager'} }->{'IDENTIFICATION'} =~ /^\d+$/
390 0 0 if do { ${$$instance{'Anansi'};}{'ObjectManager'} }->{'IDENTIFICATION'} == @{$$self{'IDENTIFICATIONS'};}[$index]
463 0 1 if ref($class) =~ /^(ARRAY|CODE|FORMAT|GLOB|HASH|IO|LVALUE|REF|Regexp|SCALAR|VSTRING)$/i
464 0 1 unless ref($class) =~ /^$/
465 1 0 if (not defined $NAMESPACE) { }
550 0 0 unless defined $parameters{'USER'}
551 0 0 if ref($parameters{'USER'}) =~ /^(|ARRAY|CODE|FORMAT|GLOB|HASH|IO|LVALUE|REF|Regexp|SCALAR|VSTRING)$/i
553 0 0 unless defined $user->{'Anansi'}
554 0 0 unless ref($user->{'Anansi'}) =~ /^HASH$/i
555 0 0 unless defined do { $$user{'Anansi'} }->{'ObjectManager'}
556 0 0 unless ref(do { $$user{'Anansi'} }->{'ObjectManager'}) =~ /^HASH$/i
557 0 0 unless defined do { ${$$user{'Anansi'};}{'ObjectManager'} }->{'IDENTIFICATION'}
559 0 0 unless defined $userIndex
560 0 0 unless defined $$self{'INSTANCE_' . $userIndex}
561 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) { }
563 0 0 unless defined $$self{'INSTANCE_' . $identification}
564 0 0 if (defined $$self{'INSTANCE_' . $identification}{'USER_' . $userIndex})
565 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::.*$/) { }
573 0 0 if (defined $$self{'INSTANCE_' . $identification})
574 0 0 if defined $$self{'INSTANCE_' . $identification}{'USER_' . $userIndex}
582 0 0 if (ref($uses) =~ /^(CODE|FORMAT|GLOB|HASH|IO|LVALUE|REF|Regexp|SCALAR|VSTRING)$/i) { }
0 0 elsif (ref($uses) =~ /^$/) { }
586 0 0 unless defined $usesIndex
587 0 0 unless defined $$self{'INSTANCE_' . $usesIndex}
588 0 0 if (defined $$self{'INSTANCE_' . $usesIndex}{'USER_' . $userIndex})
589 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::.*$/) { }
597 0 0 if (defined $$self{'INSTANCE_' . $usesIndex})
598 0 0 if defined $$self{'INSTANCE_' . $usesIndex}{'USER_' . $userIndex}
602 0 0 unless defined $uses->{'Anansi'}
603 0 0 unless ref($uses->{'Anansi'}) =~ /^HASH$/i
604 0 0 unless defined do { $$uses{'Anansi'} }->{'ObjectManager'}
605 0 0 unless ref(do { $$uses{'Anansi'} }->{'ObjectManager'}) =~ /^HASH$/i
606 0 0 unless defined do { ${$$uses{'Anansi'};}{'ObjectManager'} }->{'IDENTIFICATION'}
608 0 0 unless defined $usesIndex
609 0 0 unless defined $$self{'INSTANCE_' . $usesIndex}
610 0 0 if (defined $$self{'INSTANCE_' . $usesIndex}{'USER_' . $userIndex})
611 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::.*$/) { }
619 0 0 if (defined $$self{'INSTANCE_' . $usesIndex})
620 0 0 if defined $$self{'INSTANCE_' . $usesIndex}{'USER_' . $userIndex}
627 0 0 unless defined $uses->{'Anansi'}
628 0 0 unless ref($uses->{'Anansi'}) =~ /^HASH$/i
629 0 0 unless defined do { $$uses{'Anansi'} }->{'ObjectManager'}
630 0 0 unless ref(do { $$uses{'Anansi'} }->{'ObjectManager'}) =~ /^HASH$/i
631 0 0 unless defined do { ${$$uses{'Anansi'};}{'ObjectManager'} }->{'IDENTIFICATION'}
633 0 0 unless defined $usesIndex
634 0 0 if (defined $$self{'INSTANCE_' . $usesIndex}{'USER_' . $userIndex})
635 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::.*$/) { }
643 0 0 if (defined $$self{'INSTANCE_' . $usesIndex})
644 0 0 if defined $$self{'INSTANCE_' . $usesIndex}{'USER_' . $userIndex}
715 0 0 unless defined $instance
716 0 0 if ref($instance) =~ /^(|ARRAY|CODE|FORMAT|GLOB|HASH|IO|LVALUE|REF|Regexp|SCALAR|VSTRING)$/i
717 0 0 if (not defined $instance->{'Anansi'}) { }
0 0 elsif (not ref($instance->{'Anansi'}) =~ /^HASH$/i) { }
722 0 0 if (not defined do { $$instance{'Anansi'} }->{'ObjectManager'}) { }
0 0 elsif (not ref(do { $$instance{'Anansi'} }->{'ObjectManager'}) =~ /^HASH$/i) { }
727 0 0 if (not defined do { ${$$instance{'Anansi'};}{'ObjectManager'} }->{'IDENTIFICATION'}) { }
0 0 elsif (not ref(do { ${$$instance{'Anansi'};}{'ObjectManager'} }->{'IDENTIFICATION'}) =~ /^$/) { }
0 0 elsif (not do { ${$$instance{'Anansi'};}{'ObjectManager'} }->{'IDENTIFICATION'} =~ /^\d+$/) { }
738 0 0 unless defined $instanceIndex
739 0 0 unless defined do { ${$$instance{'Anansi'};}{'ObjectManager'} }->{'REGISTERED'}
741 0 0 unless defined $$self{'INSTANCE_' . $instanceIndex}
773 0 0 unless defined $instance
774 0 0 if ref($instance) =~ /^(|ARRAY|CODE|FORMAT|GLOB|HASH|IO|LVALUE|REF|Regexp|SCALAR|VSTRING)$/i
775 0 0 unless defined $instance->{'Anansi'}
776 0 0 unless ref($instance->{'Anansi'}) =~ /^HASH$/i
777 0 0 unless defined do { $$instance{'Anansi'} }->{'ObjectManager'}
778 0 0 unless ref(do { $$instance{'Anansi'} }->{'ObjectManager'}) =~ /^HASH$/i
779 0 0 unless defined do { ${$$instance{'Anansi'};}{'ObjectManager'} }->{'IDENTIFICATION'}
780 0 0 unless ref(do { ${$$instance{'Anansi'};}{'ObjectManager'} }->{'IDENTIFICATION'}) =~ /^$/
781 0 0 unless do { ${$$instance{'Anansi'};}{'ObjectManager'} }->{'IDENTIFICATION'} =~ /^\d+$/
782 0 0 unless defined do { ${$$instance{'Anansi'};}{'ObjectManager'} }->{'REGISTERED'}
852 0 0 unless defined $instance
853 0 0 if ref($instance) =~ /^(|ARRAY|CODE|FORMAT|GLOB|HASH|IO|LVALUE|REF|Regexp|SCALAR|VSTRING)$/i
854 0 0 unless defined $instance->{'Anansi'}
855 0 0 unless ref($instance->{'Anansi'}) =~ /^HASH$/i
856 0 0 unless defined do { $$instance{'Anansi'} }->{'ObjectManager'}
857 0 0 unless ref(do { $$instance{'Anansi'} }->{'ObjectManager'}) =~ /^HASH$/i
858 0 0 unless defined do { ${$$instance{'Anansi'};}{'ObjectManager'} }->{'IDENTIFICATION'}
860 0 0 unless defined $instanceIndex
861 0 0 unless defined do { ${$$instance{'Anansi'};}{'ObjectManager'} }->{'REGISTERED'}
862 0 0 if (0 < do { ${$$instance{'Anansi'};}{'ObjectManager'} }->{'REGISTERED'})
865 0 0 unless defined $$self{'INSTANCE_' . $instanceIndex}
866 0 0 if (0 == do { ${$$instance{'Anansi'};}{'ObjectManager'} }->{'REGISTERED'})
868 0 0 if $instanceIndex == $identification
869 0 0 unless defined $$self{'INSTANCE_' . $identification}
870 0 0 if defined $$self{'INSTANCE_' . $instanceIndex}{'USER_' . $identification}
917 0 0 if ref($instance) =~ /^(|ARRAY|CODE|FORMAT|GLOB|HASH|IO|LVALUE|REF|Regexp|SCALAR|VSTRING)$/i
918 0 0 unless defined $instance->{'Anansi'}
919 0 0 unless ref($instance->{'Anansi'}) =~ /^HASH$/i
920 0 0 unless defined do { $$instance{'Anansi'} }->{'ObjectManager'}
921 0 0 unless ref(do { $$instance{'Anansi'} }->{'ObjectManager'}) =~ /^HASH$/i
922 0 0 unless defined do { ${$$instance{'Anansi'};}{'ObjectManager'} }->{'IDENTIFICATION'}
924 0 0 unless defined $instanceIndex
925 0 0 unless defined $$self{'INSTANCE_' . $instanceIndex}
928 0 0 if $instanceIndex == $identification
929 0 0 unless defined $$self{'INSTANCE_' . $identification}
930 0 0 if defined $$self{'INSTANCE_' . $identification}{'USER_' . $instanceIndex}
932 0 0 if 0 == scalar @identifications
977 0 0 if ref($instance) =~ /^(|ARRAY|CODE|FORMAT|GLOB|HASH|IO|LVALUE|REF|Regexp|SCALAR|VSTRING)$/i
978 0 0 unless defined $instance->{'Anansi'}
979 0 0 unless ref($instance->{'Anansi'}) =~ /^HASH$/i
980 0 0 unless defined do { $$instance{'Anansi'} }->{'ObjectManager'}
981 0 0 unless ref(do { $$instance{'Anansi'} }->{'ObjectManager'}) =~ /^HASH$/i
982 0 0 unless defined do { ${$$instance{'Anansi'};}{'ObjectManager'} }->{'IDENTIFICATION'}
984 0 0 unless defined $instanceIndex
985 0 0 unless defined $$self{'INSTANCE_' . $instanceIndex}
988 0 0 if $instanceIndex == $identification
989 0 0 if defined $$self{'INSTANCE_' . $instanceIndex}{'USER_' . $identification}
991 0 0 if 0 == scalar @identifications
1015 1 0 if defined $OBJECTMANAGER