Branch Coverage

lib/Class/Factory.pm
Criterion Covered Total %
branch 28 42 66.6


line true false branch
18 3 2 unless $class
36 3 4 if $factory_class
39 2 2 if ($factory_class)
55 0 6 unless ($object_type)
59 0 6 unless ($object_class)
66 1 5 if ($set_object_class)
79 0 5 if ($INC{$object_class}) { }
85 2 3 if ($@)
106 0 3 unless ($object_type)
110 0 3 unless ($object_class)
116 1 2 if ($set_object_class)
131 0 1 unless ($object_type)
147 0 1 unless ($object_type)
171 0 2 unless ref $CLASS_BY_FACTORY_AND_TYPE{$class} eq 'HASH'
178 0 2 unless ref $CLASS_BY_FACTORY_AND_TYPE{$class} eq 'HASH'
185 0 1 unless ref $REGISTER{$class} eq 'HASH'
191 0 1 unless ($type)
196 0 1 unless ref $REGISTER{$class} eq 'HASH'
203 0 1 unless ref $REGISTER{$class} eq 'HASH'
214 2 0 if (ref $impl_info eq 'ARRAY')
235 4 1 if (ref $impl_info eq 'ARRAY')