Branch Coverage

blib/lib/JIP/DataPath.pm
Criterion Covered Total %
branch 34 40 85.0


line true false branch
27 1 8 unless defined $value
28 4 4 if ref $value
29 3 1 if $value ne $self->default_value
44 1 20 unless (exists $param{'document'})
59 7 20 if (@{$path_parts;} == 0)
65 10 10 unless $contains
70 8 2 if ($type eq 'HASH' and length $last_part) { }
2 0 elsif ($type eq 'ARRAY' and $last_part =~ /^\d+$/x) { }
83 2 3 if (@{$path_parts;} == 0)
89 2 1 unless $contains
94 1 0 if ($type eq 'HASH' and length $last_part) { }
0 0 elsif ($type eq 'ARRAY' and $last_part =~ /^\d+$/x) { }
115 4 5 if (@{$path_parts;} == 0)
122 0 5 unless $contains
127 4 1 if ($type eq 'HASH' and length $last_part) { }
1 0 elsif ($type eq 'ARRAY' and $last_part =~ /^\d+$/x) { }
164 49 31 if ($type eq 'HASH' and exists $context->{$part}) { }
15 16 elsif ($type eq 'ARRAY' and $part =~ /^\d+$/x and @{$context;} > $part) { }
165 20 29 if $last
170 7 8 if $last