Branch Coverage

blib/lib/Music/Voss.pm
Criterion Covered Total %
branch 12 46 26.0


line true false branch
27 0 0 if (not exists $params{'rollers'}) { }
0 0 elsif (not defined $params{'rollers'} && &looks_like_number($params{'rollers'})) { }
34 0 0 if (not exists $params{'roll'}) { }
0 0 elsif (not defined $params{'roll'} or ref $params{'roll'} ne 'CODE') { }
39 0 0 if (not exists $params{'summer'}) { }
0 0 elsif (not defined $params{'summer'} or ref $params{'summer'} ne 'CODE') { }
48 0 0 unless defined $n and &looks_like_number($n)
49 0 0 if (defined $prev)
51 0 0 if (($n >> $rnum & 1) != ($prev >> $rnum & 1))
68 0 2 if not $params{'calls'} or ref $params{'calls'} ne 'ARRAY'
69 0 2 if (not exists $params{'summer'}) { }
0 2 elsif (not defined $params{'summer'} or ref $params{'summer'} ne 'CODE') { }
74 2 0 if (not exists $params{'e'}) { }
0 0 elsif (not defined $params{'e'} && &looks_like_number($params{'e'})) { }
82 0 3 unless defined $n and &looks_like_number($n)
84 3 0 if ($n % $params{'e'} ** $k == 0)
96 0 2 if not $params{'calls'} or ref $params{'calls'} ne 'ARRAY'
97 2 0 if (not exists $params{'summer'}) { }
0 0 elsif (not defined $params{'summer'} or ref $params{'summer'} ne 'CODE') { }
102 2 0 if (not exists $params{'e'}) { }
0 0 elsif (not defined $params{'e'} && &looks_like_number($params{'e'})) { }
109 0 18 unless defined $n and &looks_like_number($n)
112 23 5 if ($n % $params{'e'} ** $k == 0)