Branch Coverage

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


line true false branch
42 1 1 if (exists $param{'amplitudes'})
45 0 1 unless ref $param{'amplitudes'}{$name} eq 'ARRAY'
50 1 1 if (exists $param{'default_amp_profile'}) { }
52 0 1 unless exists $self->{'_amplitudes'}{$param{'default_amp_profile'}}
59 0 2 exists $param{'normalize_amps'} ? :
60 0 2 if ($self->{'_normalize_amps'})
88 8 0 if (&looks_like_number($f1)) { }
0 0 elsif (ref $f1 eq 'ARRAY' and @$f1 and ref $f1->[0] eq 'HASH') { }
101 8 0 if (&looks_like_number($f2)) { }
0 0 elsif (ref $f2 eq 'ARRAY' and @$f2 and ref $f2->[0] eq 'HASH') { }
134 0 1 unless defined $p1 and defined $p2
135 0 1 unless $p1 =~ /^\d+$/ and $p2 =~ /^\d+$/
145 0 1 unless ref $pset eq 'ARRAY'
146 0 1 if @$pset < 2
156 2 0 if $t < $min
158 1 1 if $t > $max
163 0 1 wantarray ? :