Branch Coverage

blib/lib/MIDI/Segment.pm
Criterion Covered Total %
branch 16 20 80.0


line true false branch
35 10 5 if ($event->[0] eq "note_on" and $event->[4] > 0 and $when > $onsets[-1])
47 1 5 unless $notes
49 5 0 if $when > $maxdur
51 1 3 if $last->[1] == 0 and $last->[0] eq "note_on" and $last->[4] > 0
62 1 3 if (@track_lens > 1)
64 1 0 if ($track_lens[0] != $track_lens[$i])
93 0 3 if ($half < $onsets->[$midpoint]) { }
2 1 elsif ($half > $onsets->[$midpoint]) { }
114 2 2 if $self->{'vague'} or $self->{'ragged'}
121 0 4 unless exists $links->{$window}