Branch Coverage

blib/lib/Data/Merger.pm
Criterion Covered Total %
branch 31 42 73.8


line true false branch
167 12 10 if ($type eq 'HASH') { }
10 0 elsif ($type eq 'ARRAY') { }
190 8 4 unless (exists $$options{'hashes'}{'overwrite'})
199 23 0 if (exists $$contents{$section} or $$options{'hashes'}{'overwrite'} eq 1) { }
207 2 21 if (not defined $value and $$options{'undefined'}{'overwrite'} ne 1)
213 9 12 if ($contents_type and $value_type) { }
9 3 elsif (not $contents_type || $value_type) { }
3 0 elsif ($$options{'hashes'}{'overwrite'} eq 1) { }
215 3 6 if ($contents_type eq $value_type) { }
5 1 elsif ($$options{'hashes'}{'overwrite'} eq 1) { }
1 0 elsif ($$options{'hashes'}{'overwrite'} eq 0) { }
271 9 1 unless (exists $$options{'arrays'}{'overwrite'})
282 22 0 if (exists $$contents[$count] or $$options{'arrays'}{'overwrite'} eq 1) { }
290 12 10 if (not defined $value and $$options{'undefined'}{'overwrite'} ne 1)
298 4 6 if ($contents_type and $value_type) { }
6 0 elsif (not $contents_type || $value_type) { }
0 0 elsif ($$options{'arrays'}{'overwrite'} eq 1) { }
300 0 4 if ($contents_type eq $value_type) { }
3 1 elsif ($$options{'arrays'}{'overwrite'} eq 1) { }
1 0 elsif ($$options{'arrays'}{'overwrite'} eq 0) { }
358 19 0 unless (exists $$options{'undefined'}{'overwrite'})