Branch Coverage

blib/lib/JIP/DataPath.pm
Criterion Covered Total %
branch 28 34 82.3


line true false branch
30 1 18 unless (exists $param{'document'})
45 7 20 if (@{$path_parts;} == 0)
51 10 10 unless $contains
56 8 2 if ($type eq 'HASH' and length $last_part) { }
2 0 elsif ($type eq 'ARRAY' and $last_part =~ /^\d+$/x) { }
69 2 3 if (@{$path_parts;} == 0)
75 2 1 unless $contains
80 1 0 if ($type eq 'HASH' and length $last_part) { }
0 0 elsif ($type eq 'ARRAY' and $last_part =~ /^\d+$/x) { }
101 4 5 if (@{$path_parts;} == 0)
108 0 5 unless $contains
113 4 1 if ($type eq 'HASH' and length $last_part) { }
1 0 elsif ($type eq 'ARRAY' and $last_part =~ /^\d+$/x) { }
150 49 31 if ($type eq 'HASH' and exists $context->{$part}) { }
15 16 elsif ($type eq 'ARRAY' and $part =~ /^\d+$/x and @{$context;} > $part) { }
151 20 29 if $last
156 7 8 if $last