Branch Coverage

blib/lib/Music/Voss.pm
Criterion Covered Total %
branch 29 62 46.7


line true false branch
28 1 0 if (not exists $params{'rollers'}) { }
0 0 elsif (not defined $params{'rollers'} && &looks_like_number($params{'rollers'})) { }
35 0 1 if (not exists $params{'roll'}) { }
0 1 elsif (not defined $params{'roll'} or ref $params{'roll'} ne 'CODE') { }
40 1 0 if (not exists $params{'summer'}) { }
0 0 elsif (not defined $params{'summer'} or ref $params{'summer'} ne 'CODE') { }
49 0 10 unless defined $n and &looks_like_number($n)
50 9 1 if (defined $prev)
52 15 12 if (($n >> $rnum & 1) != ($prev >> $rnum & 1))
69 0 2 if not $params{'calls'} or ref $params{'calls'} ne 'ARRAY'
70 0 2 if (not exists $params{'summer'}) { }
0 2 elsif (not defined $params{'summer'} or ref $params{'summer'} ne 'CODE') { }
75 2 0 if (not exists $params{'e'}) { }
0 0 elsif (not defined $params{'e'} && &looks_like_number($params{'e'})) { }
83 0 3 unless defined $n and &looks_like_number($n)
85 3 0 if ($n % $params{'e'} ** $k == 0)
97 0 2 if not $params{'calls'} or ref $params{'calls'} ne 'ARRAY'
98 2 0 if (not exists $params{'summer'}) { }
0 0 elsif (not defined $params{'summer'} or ref $params{'summer'} ne 'CODE') { }
103 2 0 if (not exists $params{'e'}) { }
0 0 elsif (not defined $params{'e'} && &looks_like_number($params{'e'})) { }
110 0 18 unless defined $n and &looks_like_number($n)
113 23 5 if ($n % $params{'e'} ** $k == 0)
124 0 2 unless (defined $params{'r'} and &looks_like_number($params{'r'}))
127 0 2 unless (defined $params{'H'} and &looks_like_number($params{'H'}))
130 0 2 unless (defined $params{'N'} and &looks_like_number($params{'N'}))
133 1 1 if (not exists $params{'phase'}) { }
0 1 elsif (not defined $params{'phase'} or ref $params{'phase'} ne 'CODE') { }
138 2 0 if (not exists $params{'summer'}) { }
0 0 elsif (not defined $params{'summer'} or ref $params{'summer'} ne 'CODE') { }
145 0 8 unless defined $t and &looks_like_number($t)