Branch Coverage

blib/lib/Test/JSON/Type.pm
Criterion Covered Total %
branch 31 34 91.1


line true false branch
21 1 11 unless (defined $json)
24 1 10 unless (defined $json_expected)
35 1 9 if ($Test::JSON::Type::EVAL_ERROR)
45 1 8 if ($Test::JSON::Type::EVAL_ERROR)
59 1 12 unless (defined $json)
70 1 11 if ($Test::JSON::Type::EVAL_ERROR)
81 0 11 if ($Test::JSON::Type::EVAL_ERROR)
94 6 37 if (${$value_sr;} == 1) { }
16 21 elsif (${$value_sr;} == 2) { }
6 15 elsif (${$value_sr;} == 3) { }
9 6 elsif (${$value_sr;} == 4) { }
6 0 elsif (${$value_sr;} == 256) { }
114 31 52 if (ref $type_r eq 'HASH') { }
9 43 elsif (ref $type_r eq 'ARRAY') { }
43 0 elsif (ref $type_r eq 'SCALAR') { }
116 9 19 if (ref $type_r->{$sub_key}) { }
124 3 24 if (ref $sub_type) { }