Branch Coverage

blib/lib/JSON/Transform.pm
Criterion Covered Total %
branch 65 84 77.3


line true false branch
26 8 13 if ($name eq 'transformImpliedDest') { }
11 2 elsif ($name eq 'transformCopy') { }
2 0 elsif ($name eq 'transformMove') { }
34 0 2 unless _pointer(1, $data, $srcptr)
43 10 9 if ($mapping) { }
45 0 10 if $opFrom eq '<%' and ref $srcdata ne 'HASH'
47 0 10 if $opFrom eq '<@' and ref $srcdata ne 'ARRAY'
62 18 3 if ($name eq 'jsonPointer') { }
3 0 elsif ($name eq 'variableUser') { }
77 2 8 if ($name eq 'exprObjectMapping') { }
5 3 elsif ($name eq 'exprArrayMapping') { }
3 0 elsif ($name eq 'exprSingleValue') { }
108 19 39 if $pairs
109 16 42 if $pair
116 36 85 if ($name eq 'jsonPointer') { }
3 82 elsif ($name eq 'variableUser') { }
29 53 elsif ($name eq 'variableSystem') { }
24 29 elsif ($name eq 'jsonOtherNotDouble' or $name eq 'jsonOtherNotGrave') { }
6 23 elsif ($name eq 'exprStringQuoted') { }
23 0 elsif ($name eq 'exprSingleValue') { }
118 20 16 unless $expr->{'children'}
119 20 16 if $as_location
120 0 16 unless _pointer(1, $topdata, $text)
124 0 3 unless exists $uservals->{$var}
128 0 29 unless exists $sysvals->{$var}
134 0 6 unless $expr->{'children'}
141 2 4 if ($othername eq 'exprKeyRemove') { }
4 0 elsif ($othername eq 'exprKeyAdd') { }
162 5 5 if (ref $data eq 'HASH') { }
5 0 elsif (ref $data eq 'ARRAY') { }
177 11 43 if $is_set and not length $pointer
178 9 9 $contains ? :
18 25 unless $pointer =~ s[^/][]
180 25 0 length $pointer ? :
184 22 7 if (ref $data eq 'HASH') { }
7 0 elsif (ref $data eq 'ARRAY') { }
185 0 3 unless exists $data->{$p} or $is_set
187 2 20 @parts == 0 && $is_delete ? :
191 0 0 unless ($p =~ /^\d+$/ or @$data > $p) or $is_set
192 0 7 @parts == 0 && $is_delete ? :
198 7 18 if defined $lastptr and $is_set
199 9 16 $contains ? :