| line |
true |
false |
branch |
|
62
|
2 |
59 |
if ($jc->{'_indent'}) |
|
66
|
8 |
53 |
if ($error) |
|
99
|
79 |
121 |
if ($num != int $num) |
|
124
|
4 |
368 |
if (ref $poo eq 'B::SPECIAL') |
|
129
|
2 |
2 |
if ($$poo == 2) { } |
|
|
2 |
0 |
elsif ($$poo == 3) { } |
|
157
|
1 |
5 |
if ($jc->{'_unicode_upper'}) |
|
172
|
242 |
91 |
unless (utf8::is_utf8($input)) |
|
173
|
3 |
6 |
if ($input =~ /[\x{80}-\x{FF}]/ and $jc->{'_strict'}) |
|
176
|
2 |
237 |
unless (valid_utf8($input)) |
|
177
|
1 |
1 |
if ($jc->{'_replace_bad_utf8'}) { } |
|
188
|
2 |
327 |
if ($jc->{'_escape_slash'}) |
|
191
|
327 |
2 |
unless ($jc->{'_no_javascript_safe'}) |
|
195
|
6 |
323 |
if ($jc->{'_unicode_escape_all'}) |
|
208
|
1 |
1 |
if ($@) |
|
217
|
0 |
11 |
if (ref $cv ne 'CODE') |
|
221
|
3 |
8 |
unless (defined $json) |
|
224
|
2 |
6 |
if ($jc->{'_validate'}) |
|
226
|
1 |
1 |
if ($error) |
|
242
|
3 |
6 |
if ($handler) |
|
244
|
0 |
3 |
unless ($output) |
|
250
|
3 |
3 |
if ($jc->{'_strict'}) |
|
261
|
3 |
206 |
if (isnan($input)) { } |
|
|
3 |
203 |
elsif (isinf($input)) { } |
|
|
3 |
200 |
elsif (isneginf($input)) { } |
|
|
200 |
0 |
elsif (isfloat($input)) { } |
|
272
|
57 |
143 |
if ($jc->{'_fformat'}) { } |
|
298
|
23 |
90 |
if ($jc->{'_indent'}) |
|
307
|
23 |
80 |
if ($jc->{'_indent'}) |
|
312
|
23 |
80 |
if ($jc->{'_indent'}) |
|
313
|
6 |
17 |
if ($jc->{'depth'} == 0) |
|
323
|
71 |
191 |
if ($jc->{'_indent'}) |
|
334
|
130 |
33 |
if ($i != 0) |
|
339
|
1 |
162 |
if ($error) |
|
352
|
17 |
63 |
if ($jc->{'_sort'}) |
|
353
|
2 |
15 |
if ($jc->{'cmp'}) { } |
|
362
|
132 |
79 |
if ($i != 0) |
|
368
|
2 |
209 |
if ($error) |
|
373
|
7 |
202 |
if ($error) |
|
383
|
1 |
341 |
if ($jc->{'_indent'} and $jc->{'depth'} == 0) |
|
391
|
372 |
116 |
if ($input_ref) |
|
393
|
4 |
368 |
if ($bool) |
|
399
|
8 |
476 |
unless (defined $input) |
|
405
|
4 |
472 |
if ($ref eq 'JSON::Create::Bool') |
|
406
|
2 |
2 |
if ($$input) { } |
|
415
|
442 |
2 |
unless (keys %{$$jc{'_handlers'};} or $jc->{'_obj_handler'}) |
|
419
|
29 |
82 |
if ($ref and $jc->{'_strict'}) |
|
420
|
1 |
28 |
if ($ref ne $origref) |
|
425
|
140 |
331 |
if ($ref) { } |
|
426
|
80 |
60 |
if ($ref eq 'HASH') { } |
|
|
33 |
27 |
elsif ($ref eq 'ARRAY') { } |
|
|
6 |
21 |
elsif ($ref eq 'SCALAR') { } |
|
428
|
9 |
71 |
if ($error) |
|
434
|
1 |
32 |
if ($error) |
|
439
|
2 |
4 |
if ($jc->{'_strict'}) |
|
443
|
0 |
4 |
if ($error) |
|
448
|
18 |
3 |
if (&blessed($input)) { } |
|
449
|
1 |
17 |
if ($jc->{'_obj_handler'}) { } |
|
451
|
1 |
0 |
if ($error) |
|
457
|
17 |
0 |
if ($handler) { } |
|
458
|
9 |
8 |
if ($handler eq 'bool') { } |
|
|
8 |
0 |
elsif (ref $handler eq 'CODE') { } |
|
459
|
6 |
3 |
if ($$input) { } |
|
468
|
2 |
6 |
if ($error) |
|
482
|
2 |
1 |
if ($jc->{'_type_handler'}) { } |
|
484
|
1 |
1 |
if ($error) |
|
496
|
209 |
122 |
if (&looks_like_number($input) and not $input =~ /^0[^.]/) { } |
|
502
|
5 |
326 |
if ($error) |
|
513
|
2 |
13 |
if ($jc->{'_fatal_errors'}) { } |
|
617
|
7 |
44 |
if ($error) |
|
622
|
1 |
43 |
if ($jc->{'_downgrade_utf8'}) |
|
637
|
2 |
2 |
if ($fformat) { } |
|
671
|
0 |
4 |
if ($k eq 'bool') |
|
675
|
0 |
4 |
if ($k eq 'cmp') |
|
679
|
0 |
4 |
if ($k eq 'downgrade_utf8') |
|
683
|
0 |
4 |
if ($k eq 'escape_slash') |
|
687
|
0 |
4 |
if ($k eq 'fatal_errors') |
|
691
|
2 |
2 |
if ($k eq 'indent') |
|
695
|
0 |
2 |
if ($k eq 'no_javascript_safe') |
|
699
|
0 |
2 |
if ($k eq 'non_finite_handler') |
|
703
|
0 |
2 |
if ($k eq 'obj_handler') |
|
707
|
0 |
2 |
if ($k eq 'replace_bad_utf8') |
|
711
|
2 |
0 |
if ($k eq 'sort') |
|
715
|
0 |
0 |
if ($k eq 'strict') |
|
719
|
0 |
0 |
if ($k eq 'unicode_upper') |
|
723
|
0 |
0 |
if ($k eq 'validate') |