Branch Coverage

blib/lib/Factory/Sub.pm
Criterion Covered Total %
branch 22 24 91.6


line true false branch
12 2 1 if (@import)
22 1 4 if (scalar @{$_[$i];} == 1)
27 1 1 $fallback ? :
32 1 5 if (scalar @args == 1) { }
43 17 18 if (scalar @{$factory;} - 1 == scalar @params)
46 8 21 unless eval { do { $factory_params[$i] = $factory->[$i]->(ref $factory->[$i] eq 'Type::Tiny' && scalar @{$factory->[$i]{'coercion'}{'type_coercion_map'};} ? $factory->[$i]->coerce($factory_params[$i]) : $factory_params[$i]); 1 } }
48 8 21 ref $factory->[$i] eq 'Type::Tiny' && scalar @{$factory->[$i]{'coercion'}{'type_coercion_map'};} ? :
56 1 1 if ($self->{'fallback'})
59 3 0 if (not defined $_) { }
65 23 61 if ($ref eq 'ARRAY') { }
12 49 elsif ($ref eq 'HASH') { }
0 49 elsif ($ref eq 'SCALAR') { }