Branch Coverage

blib/lib/Config/Entities.pm
Criterion Covered Total %
branch 46 58 79.3


line true false branch
30 4 6 if ($ref) { }
31 0 4 if ($ref eq 'ARRAY') { }
4 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 7 0 if ($coordinate)
88 0 22 unless $child
92 5 2 $options{'ancestry'} ? :
99 9 2 ref $args[$#args] eq 'HASH' ? :
108 6 5 if ($options->{'properties_file'})
114 1 5 ref $options->{'properties_file'} eq 'ARRAY' ? :
120 6 5 if ($options->{'properties'})
126 2 9 if ($options->{'entity'})
132 8 3 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 $@
177 47 59 if ($child and ref $child eq 'HASH' || ref $child eq 'Config::Entities')
178 4 32 if ($parent and $child->{'Config::Entities::inherit'})
180 4 0 if ($inherit)
182 4 0 if (defined $parent->{$key})
183 4 0 unless defined $child->{$key}
195 36 73 if (ref $value eq 'HASH') { }
199 32 4 unless (defined $hashref->{$key})