Branch Coverage

blib/lib/Venus/Json.pm
Criterion Covered Total %
branch 18 24 75.0


line true false branch
41 8 0 if (keys %$data == 1 and exists $data->{'value'})
68 0 8 unless $package ||= $self->package
79 8 0 if ($package->can("escape_slash"))
84 0 8 if ($package->isa("Cpanel::JSON::XS"))
96 0 8 if ($package->isa("JSON::XS"))
108 8 0 if ($package->isa("JSON::PP"))
147 11 2 if defined $engine
161 4 2 if (do { local $@; eval "$criteria"; $@ }) { }
178 1 4 if (ref $value eq "HASH")
185 1 3 if (ref $value eq "ARRAY")
200 4 26 if (ref $value eq "HASH")
210 6 20 if (ref $value eq "ARRAY")