Branch Coverage

blib/lib/Config/Entities.pm
Criterion Covered Total %
branch 57 74 77.0


line true false branch
30 14 24 if ($ref) { }
31 0 14 if ($ref eq 'ARRAY') { }
14 0 elsif ($ref eq 'HASH' or $value->isa('Config::Entities')) { }
0 0 elsif ($ref eq 'SCALAR') { }
62 5 6 if (ref $entity[0] eq 'HASH' and exists $entity[0]{$key}) { }
1 5 elsif ($hashref->{$key} and $hashref->{$key} eq 'Config::Entities::entity') { }
5 0 elsif ($options{'ancestry'}) { }
70 5 9 if (defined $entity[$index]{$key})
85 8 0 if ($coordinate)
88 0 24 unless $child
92 5 3 $options{'ancestry'} ? :
99 10 2 ref $args[$#args] eq 'HASH' ? :
108 6 6 if ($options->{'properties_file'})
114 1 5 ref $options->{'properties_file'} eq 'ARRAY' ? :
120 6 6 if ($options->{'properties'})
126 3 9 if ($options->{'entity'})
132 8 4 if (scalar @entities_roots)
135 32 20 if ($_ =~ /^(.*)\.pmc?$/ and -f $File::Find::name)
141 16 16 if (scalar @directories)
144 4 20 unless (defined $hashref->{$dir})
157 32 0 $properties ? :
161 0 32 if $@
179 122 10 if ($child)
181 53 69 if ($ref eq 'HASH' or $ref eq 'Config::Entities')
182 6 35 if ($parent and $child->{'Config::Entities::inherit'})
201 6 0 if (ref $inherit eq 'ARRAY')
204 2 6 if ($spec_ref) { }
6 0 elsif (defined $parent->{$spec}) { }
205 2 0 if ($spec_ref eq 'HASH') { }
214 6 0 unless defined $child->{$spec}
224 1 1 if ($spec->{'name'}) { }
1 0 elsif ($spec->{'coordinate'}) { }
227 1 0 unless defined $child->{$as}
231 0 1 unless ($as)
239 1 0 if $spec->{'using'}
248 43 84 if (ref $value eq 'HASH') { }
252 37 6 unless (defined $hashref->{$key})