Branch Coverage

blib/lib/Music/Tension/PlompLevelt.pm
Criterion Covered Total %
branch 34 34 100.0


line true false branch
38 4 2 if (exists $param{'amplitudes'})
41 2 2 unless defined $param{'amplitudes'}{$name} and ref $param{'amplitudes'}{$name} eq 'ARRAY'
46 2 2 if (exists $param{'default_amp_profile'}) { }
48 1 1 unless exists $self->{'_amplitudes'}{$param{'default_amp_profile'}}
55 1 2 exists $param{'normalize_amps'} ? :
56 1 2 if ($self->{'_normalize_amps'})
84 14 5 if (&looks_like_number($f1)) { }
1 4 elsif (defined $f1 and ref $f1 eq 'ARRAY' and @$f1 and ref $f1->[0] eq 'HASH') { }
97 10 5 if (&looks_like_number($f2)) { }
1 4 elsif (defined $f2 and ref $f2 eq 'ARRAY' and @$f2 and ref $f2->[0] eq 'HASH') { }
129 2 3 unless defined $p1 and defined $p2
130 2 1 unless $p1 =~ /^[0-9]+$/ and $p2 =~ /^[0-9]+$/
140 2 3 unless defined $pset and ref $pset eq 'ARRAY'
141 1 2 if @$pset < 2
151 3 1 if $t < $min
153 3 1 if $t > $max
158 1 1 wantarray ? :