Branch Coverage

File:blib/lib/Music/NWC2MusicXML/Parser.pm
Coverage:82.4%

line%coveragebranch
15550TFunless defined $args
247100TFunless defined $nwctxt and length $nwctxt
261100TFunless defined $header and index($header, $HEADER_PREFIX) == 0
272100TFunless defined $line and length $line
273100TFif $line =~ /\A\s*\z/
276100TFif ++$self->{'_record_count'} > $MAX_RECORDS
279100TFunless $line =~ /\A\|/
33450TFunless defined $fields and @$fields
338100TFif (exists $DISPATCH{$type}) { }
342100TFif (defined $staff)
37250TFif substr($line, 0, 1) eq "|"
380100TFif ($in_quote) { }
381100TFif ($ch eq '"') { }
100TFelsif ($ch eq '\\' and $pos + 1 < $len) { }
391100TFif ($ch eq '"') { }
100TFelsif ($ch eq '|') { }
414100TFif ($field =~ /\A([^:]+):(.*)\z/) { }
43550TFdefined $h->{'Size'} ? :
100TF($h->{'Bold'} // 'N') eq 'Y' ? :
100TF($h->{'Italic'} // 'N') eq 'Y' ? :
444100TFif exists $h->{$key}
46950TF($h->{'Visible'} // 'Y') eq 'Y' ? :
472100TFif defined $h->{'Channel'}
473100TFif defined $h->{'WithNextStaff'}
474100TFif defined $h->{'Volume'}
475100TFif defined $h->{'StereoPan'}
47650TF($h->{'Muted'} // 'N') eq 'Y' ? :
488100TFif (defined $h->{'DynVel'} and length $h->{'DynVel'})
49150TFif (@vels == @keys)
50850TFunless (exists $VALID_CLEFS{$type})
513100TFif (not $staff->has_notes) { }
535100TFif (not $staff->has_notes) { }
551100TFunless (defined $beats and defined $beat_type)
559100TFif (not $staff->has_notes) { }
674100TFif ($tok eq 'Dotted') { }
100TFelsif ($tok eq 'DblDotted') { }
100TFelsif ($tok =~ /\ATriplet(?:=(.+))?\z/) { }
50TFelsif ($tok eq 'Grace') { }
686100TFunless defined $opts_str and length $opts_str
689100TFif ($opt =~ /\A(\w+)=(.*)\z/) { }
7350TF$ends_h ? :
0TF$starts_h ? :
0TF$starts_h && $ends_h ? :
80450TF$pos >= 0 ? :
848100TFunless defined $staff
859100TFunless defined $sig and length $sig
860100TFif $sig eq $KEY_SIG_NATURAL
86550TFunless @acc
867100TFif (index($acc[0], '#') != -1) { }
100TFelsif (substr($acc[0], -1, 1) eq 'b') { }
87750TFunless exists $MESSAGES{$key}