Condition Coverage

blib/lib/Valiemon/Primitives.pm
Criterion Covered Total %
condition 49 53 92.4


and 3 conditions

line !l l&&!r l&&r condition
19 4 23 71 defined $obj && ref $obj eq 'HASH'
24 4 20 29 defined $obj && ref $obj eq 'ARRAY'
29 28 140 359 defined $obj && ref $obj eq ''
35 181 67 290 defined $obj && ref $obj eq '' && &looks_like_number($obj)
40 60 18 185 $self->is_number($obj) && $obj =~ qr/^-?\d+$/
52 110 8 37 defined $obj && &looks_like_number($obj) && ($obj == 1 || $obj == 0)
57 72 121 27 defined $obj and &Types::Serialiser::is_bool($obj)
58 189 0 4 ref $obj eq 'SCALAR' and &looks_like_number($$obj)
189 0 4 ref $obj eq 'SCALAR' and &looks_like_number($$obj) and $$obj == 1 || $$obj == 0
71 186 18 8 $self->is_boolean($a) and $self->is_boolean($b)
204 2 6 $self->is_boolean($a) and $self->is_boolean($b) and $a == $b
72 125 13 68 $self->is_string($a) and $self->is_string($b)
138 44 24 $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 219 9 $options || {}

or 3 conditions

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