Branch Coverage

blib/lib/JavaScript/Code/Type.pm
Criterion Covered Total %
branch 12 26 46.1


line true false branch
48 2 0 unless $class eq 'JavaScript::Code::Type'
53 0 0 unless my $via = lc(delete $$args{'type'} || '')
60 0 0 if $@
83 4 0 @_ ? :
85 0 4 $ref eq 'HASH' ? :
89 2 2 if (defined $value)
93 0 2 if ($reftype eq 'ARRAY') { }
0 2 elsif ($reftype eq 'HASH') { }
2 0 elsif ($reftype eq 'SCALAR' or $reftype eq '') { }
0 0 elsif ($value->isa('JavaScript::Code::Value')) { }
100 0 2 $reftype eq 'SCALAR' ? :
101 1 1 &Scalar::Util::looks_like_number($value) ? :
110 0 2 unless defined $object