Condition Coverage

blib/lib/Music/Chord/Positions.pm
Criterion Covered Total %
condition 30 63 47.6


and 3 conditions

line !l l&&!r l&&r condition
76 0 0 4 defined $pitch_set and ref $pitch_set eq 'ARRAY'
94 8 0 4 exists $params{'pitch_norm'} and $params{'pitch_norm'}
116 0 0 1 defined $pitch_set and ref $pitch_set eq 'ARRAY'
125 1 0 0 exists $params{'interval_adj_max'} && defined $params{'interval_adj_max'}
137 0 0 1 exists $params{'pitch_max'} and $params{'pitch_max'} < 1
175 0 7 1 exists $params{'pitch_max'} and $p > $params{'pitch_max'}
187 1 0 0 exists $params{'root_lock'} and $params{'root_lock'}
200 66 0 0 exists $params{'no_limit_uniq'} and $params{'no_limit_uniq'}
204 44 0 0 exists $params{'no_limit_doublings'} and $params{'no_limit_doublings'}
222 0 0 20 @chord > 2 and exists $params{'no_partial_closed'}
0 0 20 @chord > 2 and exists $params{'no_partial_closed'} and $params{'no_partial_closed'}
226 13 3 4 $intervals[0] < 5 and $intervals[1] > 6
230 9 5 2 $intervals[-1] < 5 and $intervals[-2] > 6
238 8 3 3 $ordered_intv[0] > $ordered_intv[-1] and all sub { $intv_by_idx{$ordered_intv[0]} > 1 + $intv_by_idx{$_}; } , @ordered_intv[1 .. $#ordered_intv]
246 0 0 11 exists $params{'allow_transpositions'} and $params{'allow_transpositions'}
261 27 0 0 exists $params{'root_any'} and $params{'root_any'}
301 0 0 1 defined $dis && $dis =~ /^\d+$/

or 3 conditions

line l !l&&r !l&&!r condition
61 1 2 0 $param{'DEG_IN_SCALE'} // $DEG_IN_SCALE
104 0 0 1 not $params{'inv_num'} =~ /^\d+$/ or $params{'inv_num'} < 1
0 0 1 not $params{'inv_num'} =~ /^\d+$/ or $params{'inv_num'} < 1 or $params{'inv_num'} > @inversions
301 0 0 1 not defined $dis && $dis =~ /^\d+$/ or $dis < 2