Condition Coverage

blib/lib/Music/AtonalUtil.pm
Criterion Covered Total %
condition 78 87 89.6


and 3 conditions

line !l l&&!r l&&r condition
1270 1 1 22 &looks_like_number($min) && &looks_like_number($max)
1274 5 12 4 $v <= $max and $v >= $min
1311 1 1 8 defined $r and $r =~ /^-?\d+$/

or 2 conditions

line l !l condition
500 3 5 $flag_sort //= 0
504 6 2 $note_count //= 0
563 19 37 $aic{$ics} || 0
658 0 2 $ruleset->{'in'} // 0
738 0 0 $params{'melody_max_interval'} || 16
901 26 10 $icc{$ics} || 0
913 2 1 $start_pitch //= 0
945 252 1 $axis //= 0
1005 1 1 $factor //= 1
1021 1 1 $seen{&refaddr($ref)} || 0
1033 1 1 $seen{&refaddr($ref)} ||= 0
1048 1 2 $seen{&refaddr($ref)} ||= 0
1073 1 1 $seen{&refaddr($ref)} ||= 0
1342 3 1 $dir //= 1
1473 14 1 $axis //= 0

or 3 conditions

line l !l&&r !l&&!r condition
621 0 0 3 not exists $ruleset->{'iset'} or ref $ruleset->{'iset'} ne "ARRAY"
647 0 0 3 not exists $ruleset->{'ps'} or ref $ruleset->{'ps'} ne "ARRAY"
960 1 1 5 not defined $pset or ref $pset ne "ARRAY"
966 2 2 0 $n //= $self->{'_lastn'}
1020 1 1 2 not defined $ref or ref $ref ne "ARRAY"
1028 1 1 6 not defined $ref or ref $ref ne "ARRAY"
1029 1 1 4 not &looks_like_number($count) or $count < 0
1032 1 1 2 @$ref == 0 or $count == 0
1047 1 1 3 not defined $ref or ref $ref ne "ARRAY"
1056 1 1 1 not defined $ref or ref $ref ne "ARRAY"
1063 1 1 2 not defined $ref or ref $ref ne "ARRAY"
1072 1 1 2 not defined $ref or ref $ref ne "ARRAY"
1082 2 5 0 $param{'DEG_IN_SCALE'} // $DEG_IN_SCALE
1270 2 1 21 not &looks_like_number($min) && &looks_like_number($max) or $min >= $max
1357 1 1 2 not $dis =~ /^\d+$/ or $dis < 2
1397 1 1 4 $len >= @nset or $len == 0