Branch Coverage

blib/lib/MIDI/Track.pm
Criterion Covered Total %
branch 26 54 48.1


line true false branch
87 0 21 if $MIDI::Track::Debug
98 3 18 ref $_[0] eq 'HASH' ? :
99 0 21 if $MIDI::Track::Debug
100 0 21 if ($MIDI::Track::Debug)
101 0 0 if (%$options_r) { }
109 0 21 defined $options_r->{'type'} ? :
111 0 21 if defined $options_r->{'data'}
115 1 20 if exists $options_r->{'events_r'} and not exists $options_r->{'events'}
124 3 18 defined $options_r->{'events'} && ref $options_r->{'events'} eq 'ARRAY' ? :
183 0 0 if $new->{'events'}
205 1 0 ref $_[0] eq 'HASH' ? :
231 0 9 if @_
261 2 46 if (@_)
262 0 2 unless ref $_[0]
285 2 11 if @_
301 0 0 if @_
347 0 0 ref $_[1] eq 'HASH' ? :
357 0 0 defined $this->{'data'} ? :
380 0 2 unless ref $track
381 2 0 ref $_[1] eq 'HASH' ? :
385 0 2 if (exists $track->{'data'} and defined $track->{'data'}) { }
390 2 0 if ($track->{'type'} eq 'MTrk' || length $track->{'type'} == 0 and defined $track->{'events'} and ref $track->{'events'}) { }
395 0 2 if $MIDI::Track::Debug
400 0 0 if $MIDI::Track::Debug
420 0 17 unless ref $options_r eq "HASH"
422 0 17 unless ref $_[1] eq "SCALAR"
426 17 0 if ($type eq 'MTrk' and not $options_r->{'no_parse'}) { }