Condition Coverage

File:blib/lib/Music/NWC2MusicXML/Event.pm
Coverage:97.1%

line%coveragecondition
262100
Adec
00
11
$args->{'type'} // ""
263100
ABdec
000
011
1X1
exists $MUSICAL_EVENT_TYPES{$type_key} or exists $METADATA_EVENT_TYPES{$type_key}
267100
Adec
00
11
$type_key || '(undef)'
269100
ABdec
000
011
1X1
$args->{'nwc_label'} //= $args->{'type'}
28267
ABdec
000
011
1X1
$args->{'nwc_label'} // $args->{'type'}
409100
Adec
00
11
$dots //= 0
412100
ABdec
0X0
100
111
defined $dur and exists $DURATION_RATIONALS{$dur}
100
Adec
00
11
$dur // "(undef)"
471100
ABCdec
0XX0
10X0
1100
1111
ref $r eq "ARRAY" and @$r == 2 and $r->[1]
481100
ABCDdec
0XXX0
10XX0
110X0
11100
11111
ref $r eq "ARRAY" and @$r == 2 and $r->[0] =~ /\A\d+\z/ and $r->[1] =~ /\A[1-9]\d*\z/