Branch Coverage

blib/lib/Test2/Tools/MIDI.pm
Criterion Covered Total %
branch 140 146 95.8


line true false branch
22 24 37 if (@{$_[2];}) { }
42 4 13 if ($q != $dtime)
46 0 17 unless defined $amount
47 1 16 if ($amount != 3)
53 4 12 if ($ch != $channel)
56 2 14 if ($code != $want_code)
59 4 12 if ($re != $pitch)
62 4 12 if ($ci != $velocity)
78 1 2 if ($q != $dtime)
82 0 3 unless defined $amount
83 1 2 if ($amount != 2)
89 1 1 if ($ch != $channel)
92 1 1 if ($code != 208)
95 1 1 if ($velo != $velocity)
111 1 1 if ($eof) { }
125 1 2 if ($q != $dtime)
129 0 3 unless defined $amount
130 1 2 if ($amount != 3)
135 1 1 if ($footer ne $expect)
147 1 4 unless defined $amount
149 1 3 if ($amount != 14)
155 1 2 if ($mthd ne "MThd")
158 1 2 if ($header_len != 6)
161 1 2 if ($format != $want_format)
164 1 2 if ($tracks != $want_tracks)
167 1 2 if ($division != $want_division)
190 1 2 if ($q != $dtime)
194 0 3 unless defined $amount
195 1 2 if ($amount != 2)
201 1 1 if ($ch != $channel)
204 1 1 if ($code != 192)
207 1 1 if ($patch != $want_patch)
218 1 2 if ($q != $dtime)
222 1 2 if ($amount != 3)
228 1 1 if ($ch != $channel)
231 1 1 if ($code != 224)
235 1 1 if ($value != $wheel)
245 1 3 unless defined $amount
247 1 2 if ($amount != $size)
262 1 3 if ($q != $dtime)
266 0 4 unless defined $amount
267 1 3 if ($amount != 6)
273 1 2 if ($code ne $expect)
278 1 2 if ($tempo != $tempo_want)
288 4 15 if ($type eq 'text') { }
1 14 elsif ($type eq 'copyright') { }
1 13 elsif ($type eq 'name') { }
1 12 elsif ($type eq 'instrument') { }
1 11 elsif ($type eq 'lyric') { }
1 10 elsif ($type eq 'marker') { }
1 9 elsif ($type eq 'cue') { }
1 8 elsif ($type eq 'text8') { }
1 7 elsif ($type eq 'text9') { }
1 6 elsif ($type eq 'texta') { }
1 5 elsif ($type eq 'textb') { }
1 4 elsif ($type eq 'textc') { }
1 3 elsif ($type eq 'textd') { }
1 2 elsif ($type eq 'texte') { }
1 1 elsif ($type eq 'textf') { }
323 1 17 if ($q != $dtime)
327 0 18 unless defined $amount
328 1 17 if ($amount != 2)
332 1 16 if ($track ne $code)
338 1 16 if ($amount != $string_length)
342 1 15 if ($track ne $want_string)
353 1 3 unless defined $amount
355 1 2 if ($amount != 8)
360 1 1 if ($mtrk ne "MTrk")
363 1 1 if ($track_len != $want_length)
375 1 85 unless defined $r
376 1 84 if $r == 0
379 70 14 if ($n < 128)
380 1 69 if $q > 268435455