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'})
78 0 8 unless $package ||= $self->package
89 8 0 if ($package->can("escape_slash"))
94 0 8 if ($package->isa("Cpanel::JSON::XS"))
106 0 8 if ($package->isa("JSON::XS"))
118 8 0 if ($package->isa("JSON::PP"))
157 11 2 if defined $engine
171 4 2 if (do { local $@; eval "$criteria"; $@ }) { }
188 1 4 if (ref $value eq "HASH")
195 1 3 if (ref $value eq "ARRAY")
210 3 21 if (ref $value eq "HASH")
220 5 16 if (ref $value eq "ARRAY")