Branch Coverage

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


line true false branch
19 67 27 defined $obj && ref $obj eq 'HASH' ? :
24 29 24 defined $obj && ref $obj eq 'ARRAY' ? :
29 353 169 defined $obj && ref $obj eq '' ? :
35 290 247 defined $obj && ref $obj eq '' && &looks_like_number($obj) ? :
40 185 77 $self->is_number($obj) && $obj =~ qr/^-?\d+$/ ? :
46 145 124 $self->{'options'}{'use_json_boolean'} ? :
52 36 104 defined $obj && &looks_like_number($obj) && ($obj == 1 || $obj == 0) ? :
57 22 139 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 5 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 23 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)