Condition Coverage

blib/lib/Valiemon/Primitives.pm
Criterion Covered Total %
condition 47 53 88.6


and 3 conditions

line !l l&&!r l&&r condition
19 4 23 67 defined $obj && ref $obj eq 'HASH'
24 4 20 29 defined $obj && ref $obj eq 'ARRAY'
29 28 141 353 defined $obj && ref $obj eq ''
35 180 67 290 defined $obj && ref $obj eq '' && &looks_like_number($obj)
40 59 18 185 $self->is_number($obj) && $obj =~ qr/^-?\d+$/
52 96 44 0 defined $obj && &looks_like_number($obj) && ($obj == 1 || $obj == 0)
57 19 120 22 defined $obj and &Types::Serialiser::is_bool($obj)
58 135 0 4 ref $obj eq 'SCALAR' and &looks_like_number($$obj)
135 4 0 ref $obj eq 'SCALAR' and &looks_like_number($$obj) and $$obj == 1 || $$obj == 0
71 185 18 8 $self->is_boolean($a) and $self->is_boolean($b)
203 2 6 $self->is_boolean($a) and $self->is_boolean($b) and $a == $b
72 125 13 67 $self->is_string($a) and $self->is_string($b)
138 44 23 $self->is_string($a) and $self->is_string($b) and "$a" eq "$b"
73 156 12 14 $self->is_number($a) and $self->is_number($b)
168 14 0 $self->is_number($a) and $self->is_number($b) and $a == $b

or 2 conditions

line l !l condition
12 206 9 $options || {}

or 3 conditions

line l !l&&r !l&&!r condition
58 2 2 0 $$obj == 1 || $$obj == 0
70 193 0 19 defined $a or defined $b