Branch Coverage

lib/JSON/Pointer/Extend.pm
Criterion Covered Total %
branch 20 24 83.3


line true false branch
17 2 1 if $opt{'-pointer'}
18 2 1 if $opt{'-document'}
36 3 8 if ($pointer =~ m[(.*?)/\*(.+)?]) { }
1 7 elsif ($pointer eq '') { }
40 0 3 if (ref $arr_ref ne 'ARRAY')
45 2 1 if ($tail) { }
60 0 1 if (ref $arr_ref ne 'ARRAY')
71 1 6 $root_pointer ? :
78 3 5 if (scalar @_ > 1)
80 0 3 if ($ref ne 'HASH' and $ref ne 'ARRAY')
89 3 3 if (scalar @_ > 1)
90 0 3 if (ref $_[1] ne 'HASH')