Branch Coverage

blib/lib/JSON/MergePatch.pm
Criterion Covered Total %
branch 28 30 93.3


line true false branch
17 30 22 if (defined $target and not $opt->{'repeat'})
21 28 24 if (ref $patch eq 'HASH')
22 6 22 unless (ref $target eq 'HASH')
27 22 10 if (defined $patch->{$key}) { }
31 4 6 if (exists $target->{$key})
36 28 0 ref $target ? :
39 8 16 ref $patch ? :
46 34 34 if ($opt->{'repeat'}) { }
53 4 30 if ($@)
60 2 28 if ($@)
65 8 54 if (ref $decoded_source eq 'ARRAY')
69 30 24 if (ref $decoded_source eq 'HASH')
70 26 4 if (ref $decoded_target eq 'HASH') { }
74 28 0 if (exists $decoded_target->{$key} and exists $decoded_source->{$key})
75 6 22 if (not defined $decoded_target->{$key} || defined $decoded_source->{$key} or defined $decoded_target->{$key} and defined $decoded_source->{$key} and $decoded_target->{$key} eq $decoded_source->{$key})