Branch Coverage

blib/lib/Data/Dump/JavaScript.pm
Criterion Covered Total %
branch 23 30 76.6


line true false branch
64 7 26 if scalar @{$_[0];} > 1
66 15 18 scalar @{$_[0];} > 1 ? :
68 7 26 scalar @{$_[0];} > 1 ? :
76 6 2 if keys %$object > 0
84 6 2 keys %$object > 0 ? :
100 46 29 if (my $ref = ref $value)
103 8 38 if $ref eq 'HASH'
106 33 5 if $ref eq 'ARRAY'
109 0 0 $$value ? :
0 5 if $ref eq 'SCALAR'
110 3 2 $value ? :
5 0 if $ref eq 'Data::Dump::JavaScript::_Bool'
113 0 0 if (&blessed($value) and my $sub = $value->can('TO_JSON'))
119 3 26 unless defined $value
124 11 0 if B::svref_2object(\$value)->FLAGS & 12288 and 0 + $value eq $value and $value * 0 == 0