Branch Coverage

blib/lib/Music/RhythmSet.pm
Criterion Covered Total %
branch 32 32 100.0


line true false branch
27 3 8 if (exists $args->{'voicel'})
30 2 1 unless defined $args->{'voicel'} and ref $args->{'voicel'} eq "ARRAY"
43 1 14 unless @rest
48 2 14 unless defined $ref and ref $ref eq "HASH"
82 4 6 unless defined $param{$cb} and ref $param{$cb} eq "CODE"
111 1 6 if $measure >= $param{'max'}
120 1 6 if ($bstr eq ($curpat_str[$id] // ""))
157 2 12 unless defined $str and length $str
160 2 10 if ($param{'sep'}) { }
171 5 16 if $line =~ /^\s*(?:#|$)/u
175 10 6 if ($line =~ /^ (?\d{1,10}) $param{'sep'} (?\d{1,3}) $param{'sep'} (?[x.]{1,256}) $param{'sep'} (?\d{1,5}) \s*(?:[#].*)? $/ax) { }
189 8 2 if ($#$voices == 0 or $+{'id'} == $#$voices + 1) { }
1 1 elsif ($+{'id'} > $#$voices) { }
206 9 1 if defined $newplay[$id]
228 7 13 if exists $param{$pram} and not exists $param{'voice'}[$id]{$pram}
246 5 31 if exists $param{$pram} and not exists $param{'track'}[$id]{$pram}