Branch Coverage

blib/lib/ArrayHashSearch.pm
Criterion Covered Total %
branch 34 50 68.0


line true false branch
32 0 1 unless ref $sourcearrayref eq 'ARRAY' and (defined $targetscalar and not ref $targetscalar)
38 1 7 if ($_ eq $targetscalar)
59 0 4 unless ref $sourcearrayref eq 'ARRAY' and (defined $targetscalar and not ref $targetscalar)
65 2 15 if (not ref $_ and $_ eq $targetscalar)
73 2 3 if (ref $_)
75 0 2 unless ref $_ eq 'ARRAY'
78 2 0 if $found
96 0 0 unless ref $sourcehashref eq 'HASH' and (defined $targetscalar and not ref $targetscalar)
102 0 0 if ($_ eq $targetscalar)
123 0 3 unless ref $sourcehashref eq 'HASH' and (defined $targetscalar and not ref $targetscalar)
129 1 6 if (not ref $_ and $_ eq $targetscalar)
137 2 4 if (ref $_)
139 0 2 unless ref $_ eq 'HASH'
142 2 0 if $found
161 0 11 unless ref $sourcestructureref eq 'HASH' || ref $sourcestructureref eq 'ARRAY' and (defined $targetscalar and not ref $targetscalar)
164 7 4 if (ref $sourcestructureref eq 'HASH') { }
4 0 elsif (ref $sourcestructureref eq 'ARRAY') { }
169 1 18 if (not ref $_ and $_ eq $targetscalar)
177 5 13 if (ref $_)
179 0 5 unless ref $_ eq 'HASH' or ref $_ eq 'ARRAY'
182 3 2 if $found
191 1 16 if (not ref $_ and $_ eq $targetscalar)
199 4 0 if (ref $_)
201 0 4 unless ref $_ eq 'HASH' or ref $_ eq 'ARRAY'
204 3 1 if $found