Branch Coverage

blib/lib/JSON/String.pm
Criterion Covered Total %
branch 19 22 86.3


line true false branch
26 0 175 if $str_ref and $encoder
28 121 54 unless ref $data
30 21 33 unless $encoder
33 22 32 if (ref $data eq 'ARRAY') { }
32 0 elsif (ref $data eq 'HASH') { }
54 1 43 if (@_)
72 1 58 if $error
80 1 24 unless (ref $ref eq 'SCALAR')
83 1 23 unless (defined $$ref)
86 1 22 unless (length $$ref)
92 0 21 unless (ref $data eq 'ARRAY' or ref $data eq 'HASH')