Branch Coverage

blib/lib/Valiemon/Primitives.pm
Criterion Covered Total %
branch 28 30 93.3


line true false branch
19 71 27 defined $obj && ref $obj eq 'HASH' ? :
24 29 24 defined $obj && ref $obj eq 'ARRAY' ? :
29 359 168 defined $obj && ref $obj eq '' ? :
35 290 248 defined $obj && ref $obj eq '' && &looks_like_number($obj) ? :
40 185 78 $self->is_number($obj) && $obj =~ qr/^-?\d+$/ ? :
46 204 139 $self->{'options'}{'use_json_boolean'} ? :
52 37 118 defined $obj && &looks_like_number($obj) && ($obj == 1 || $obj == 0) ? :
57 27 193 if defined $obj and &Types::Serialiser::is_bool($obj)
58 4 0 if ref $obj eq 'SCALAR' and &looks_like_number($$obj) and $$obj == 1 || $$obj == 0
64 4 18 !defined($obj) ? :
70 1 18 unless defined $a or defined $b
71 6 20 if $self->is_boolean($a) and $self->is_boolean($b) and $a == $b
72 24 57 if $self->is_string($a) and $self->is_string($b) and "$a" eq "$b"
73 0 26 if $self->is_number($a) and $self->is_number($b) and $a == $b
74 16 166 if eq_deeply($a, $b)