Branch Coverage

blib/lib/RSH/SmartHash.pm
Criterion Covered Total %
branch 10 24 41.6


line true false branch
56 0 0 if (scalar @hash_refs == 0)
59 0 0 if (ref $hash_refs[$i] ne 'HASH')
61 0 0 if (defined $key and defined $hash_refs[$i]{$key})
85 0 3 if (defined $change_callback and ref($change_callback ne 'CODE'))
92 1 2 unless (defined $dirty)
117 0 37 if (defined $old_val and defined $val and ref $old_val eq ref $val and defined($old_val ne $val) and $old_val ne $val) { }
0 37 elsif (not defined $old_val || defined $val) { }
124 0 0 if (defined $$self{'change_callback'})
132 1 36 if (defined $$self{'change_callback'})
142 191 16 if (defined $$self{'hash'}{$key}) { }
164 0 0 if (not exists $$self{'hash'}{$key}) { }
211 7 0 if (defined $val)