Branch Coverage

blib/lib/Math/Formula/Config/JSON.pm
Criterion Covered Total %
branch 29 34 85.2


line true false branch
45 0 2 unless open my $fh, ">:raw", $fn
49 0 2 unless $fh->close
64 18 10 if (builtin::blessed($what) and $what->isa("Math::Formula"))
65 2 16 if (my $r = $what->returns)
70 24 4 if (builtin::blessed($what) and $what->isa('Math::Formula::Type')) { }
0 4 elsif (ref $what eq 'CODE') { }
4 0 elsif (length $what) { }
72 2 2 $what->value ? :
4 4 $what->isa('MF::FLOAT') ? :
4 8 $what->isa('MF::BOOLEAN') ? :
12 12 $what->isa('MF::STRING') ? :
85 2 26 if (keys %attrs)
109 0 2 unless $set
120 2 12 if (ref $encoded eq "JSON::PP::Boolean")
124 2 10 if ($encoded =~ /^\=(.*?)(?:;\s*(.*))?$/)
134 3 6 $encoded =~ qr/^[0-9][0-9.e+\-]+$/ ? :
1 9 if ($encoded =~ qr/^[0-9]+$/) { }