Branch Coverage

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

line%coveragebranch
17550TFunless defined $args
267100TFunless defined $nwctxt and length $nwctxt
281100TFunless defined $header and index($header, $HEADER_PREFIX) == 0
292100TFunless defined $line and length $line
293100TFif $line =~ /\A\s*\z/
296100TFif ++$self->{'_record_count'} > $MAX_RECORDS
299100TFunless $line =~ /\A\|/
35550TFunless defined $fields and @$fields
359100TFif (exists $DISPATCH{$type}) { }
363100TFif (defined $staff)
39350TFif substr($line, 0, 1) eq "|"
401100TFif ($in_quote) { }
402100TFif ($ch eq '"') { }
100TFelsif ($ch eq '\\' and $pos + 1 < $len) { }
412100TFif ($ch eq '"') { }
100TFelsif ($ch eq '|') { }
435100TFif ($field =~ /\A([^:]+):(.*)\z/) { }
45650TFdefined $h->{'Size'} ? :
100TF($h->{'Bold'} // 'N') eq 'Y' ? :
100TF($h->{'Italic'} // 'N') eq 'Y' ? :
465100TFif exists $h->{$key}
49050TF($h->{'Visible'} // 'Y') eq 'Y' ? :
492100TFif (defined $h->{'EndingBar'})
496100TFif defined $h->{'Channel'}
497100TFif defined $h->{'WithNextStaff'}
498100TFif defined $h->{'Volume'}
499100TFif defined $h->{'StereoPan'}
50050TF($h->{'Muted'} // 'N') eq 'Y' ? :
512100TFif (defined $h->{'DynVel'} and length $h->{'DynVel'})
51550TFif (@vels == @keys)
53250TFunless (exists $VALID_CLEFS{$type})
537100TFif (not $staff->has_notes) { }
559100TFif (not $staff->has_notes) { }
575100TFunless (defined $beats and defined $beat_type)
583100TFif (not $staff->has_notes) { }
699100TFif ($tok eq 'Dotted') { }
100TFelsif ($tok eq 'DblDotted') { }
100TFelsif ($tok =~ /\ATriplet(?:=(.+))?\z/) { }
50TFelsif ($tok eq 'Grace') { }
711100TFunless defined $opts_str and length $opts_str
714100TFif ($opt =~ /\A(\w+)=(.*)\z/) { }
748100TFif (not defined $placement and defined $h->{'Pos'})
749100TF$h->{'Pos'} >= 0 ? :
7640TF$ends_h ? :
0TF$starts_h ? :
0TF$starts_h && $ends_h ? :
83350TF$pos >= 0 ? :
877100TFunless defined $staff
888100TFunless defined $sig and length $sig
889100TFif $sig eq $KEY_SIG_NATURAL
89450TFunless @acc
896100TFif (index($acc[0], '#') != -1) { }
100TFelsif (substr($acc[0], -1, 1) eq 'b') { }
90650TFunless exists $MESSAGES{$key}