Branch Coverage

blib/lib/Cpanel/JSON/XS/Type.pm
Criterion Covered Total %
branch 31 36 86.1


line true false branch
213 2 0 if (eval { do { require Scalar::Util } }) { }
254 1 155 if ($ref eq 'Cpanel::JSON::XS::Type::Weaken')
259 77 79 if ($ref eq '') { }
41 38 elsif ($ref eq 'ARRAY' or $ref eq 'Cpanel::JSON::XS::Type::ArrayOf') { }
37 1 elsif ($ref eq 'HASH' or $ref eq 'Cpanel::JSON::XS::Type::HashOf') { }
260 1 76 if defined $scalar
264 3 38 if defined $array
268 3 34 if defined $hash
276 0 78 if $scalar_weaken
277 0 78 if $array_weaken
278 1 77 if $hash_weaken
284 1 3 if ref $_ eq ''
290 1 15 if scalar @_ != 1
292 1 14 if (ref $type eq 'Cpanel::JSON::XS::Type::Weaken')
300 1 8 if scalar @_ != 1
302 1 7 if (ref $type eq 'Cpanel::JSON::XS::Type::Weaken')
310 0 3 if scalar @_ != 1
311 0 3 if ref $_[0] eq ''