Condition Coverage

blib/lib/Music/AtonalUtil.pm
Criterion Covered Total %
condition 35 66 53.0


and 3 conditions

line !l l&&!r l&&r condition
1250 0 0 21 &looks_like_number($min) && &looks_like_number($max)
1254 5 12 4 $v <= $max and $v >= $min
1291 0 6 0 defined $r and $r =~ /^-?\d+$/
1337 0 0 2 defined $dis && $dis =~ /^\d+$/

or 2 conditions

line l !l condition
500 3 5 $flag_sort //= 0
504 6 2 $note_count //= 0
564 17 31 $aic{$ics} || 0
649 0 2 $ruleset->{'in'} // 0
729 0 0 $params{'melody_max_interval'} || 16
893 26 10 $icc{$ics} || 0
905 2 0 $start_pitch //= 0
937 243 0 $axis //= 0
997 1 0 $factor //= 1
1012 0 1 $seen{&refaddr($ref)} || 0
1019 1 1 $seen{&refaddr($ref)} ||= 0
1040 0 1 $seen{&refaddr($ref)} ||= 0
1063 0 5 $param{'PACKING'} // 'right'
1322 2 0 $dir //= 1
1458 14 0 $axis //= 0

or 3 conditions

line l !l&&r !l&&!r condition
612 0 0 3 not exists $ruleset->{'iset'} or ref $ruleset->{'iset'} ne 'ARRAY'
638 0 0 3 not exists $ruleset->{'ps'} or ref $ruleset->{'ps'} ne 'ARRAY'
952 0 0 3 not defined $pset or ref $pset ne 'ARRAY'
958 1 2 0 $n //= $self->{'_lastn'}
1049 1 4 0 $param{'DEG_IN_SCALE'} // $DEG_IN_SCALE
1250 0 0 21 not &looks_like_number($min) && &looks_like_number($max) or $min >= $max
1337 0 0 2 not defined $dis && $dis =~ /^\d+$/ or $dis < 2
1380 0 0 2 $len >= @nset or $len == 0