Branch Coverage

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


line true false branch
238 2 0 if (eval { do { require Scalar::Util } }) { }
279 1 155 if ($ref eq 'Cpanel::JSON::XS::Type::Weaken')
284 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') { }
285 1 76 if defined $scalar
289 3 38 if defined $array
293 3 34 if defined $hash
301 0 78 if $scalar_weaken
302 0 78 if $array_weaken
303 1 77 if $hash_weaken
309 1 3 if ref $_ eq ''
315 1 15 if scalar @_ != 1
317 1 14 if (ref $type eq 'Cpanel::JSON::XS::Type::Weaken')
325 1 8 if scalar @_ != 1
327 1 7 if (ref $type eq 'Cpanel::JSON::XS::Type::Weaken')
335 0 3 if scalar @_ != 1
336 0 3 if ref $_[0] eq ''