Condition Coverage

blib/lib/Music/Tension/Cope.pm
Criterion Covered Total %
condition 45 45 100.0


and 3 conditions

line !l l&&!r l&&r condition
52 1 1 3 defined $param{'tensions'} and ref $param{'tensions'} eq 'HASH'
96 1 1 5 defined $duration && &looks_like_number($duration)
119 1 1 5 defined $f1 and defined $f2
120 1 1 3 &looks_like_number($f1) && &looks_like_number($f2)
132 1 1 9 defined $b && &looks_like_number($b)
146 2 1 34 defined $p1 and defined $p2
147 1 1 32 $p1 =~ /^-?[0-9]+$/ and $p2 =~ /^-?[0-9]+$/
166 1 1 5 defined $pset and ref $pset eq 'ARRAY'

or 3 conditions

line l !l&&r !l&&!r condition
96 2 1 4 not defined $duration && &looks_like_number($duration) or $duration <= 0
120 2 1 2 not &looks_like_number($f1) && &looks_like_number($f2) or $f1 < 0
3 1 1 not &looks_like_number($f1) && &looks_like_number($f2) or $f1 < 0 or $f2 < 0
132 2 1 8 not defined $b && &looks_like_number($b) or $b <= 0
3 1 7 not defined $b && &looks_like_number($b) or $b <= 0 or not defined $v
2 1 6 not defined $b && &looks_like_number($b) or $b <= 0 or not defined $v or not &looks_like_number($v)
2 1 5 not defined $b && &looks_like_number($b) or $b <= 0 or not defined $v or not &looks_like_number($v) or $v <= 0