Branch Coverage

File:blib/lib/Music/NWC2MusicXML/NWC.pm
Coverage:84.4%

line%coveragebranch
13950TFunless defined $args
212100TFunless defined $filename and length $filename
215100TFunless -f $filename and -r $filename
22050TFunless &Music::NWC2MusicXML::NWC::open(my $fh, "<:raw", $filename)
228100TFref $proto ? :
299100TFref $proto ? :
302100TFif not defined $data or length $data < $MIN_FILE_BYTES
306100TFunless substr($data, 0, $NWC_MAGIC_LEN) eq $NWC_MAGIC
325100TFif $marker_pos < 0
333100TFunless (utf8::decode($nwctxt))
365100TFunless $cmf == $ZLIB_CMF
36650TFunless ($cmf * 256 + $flg) % 31 == 0
387100TFunless defined $raw
39050TFif length $raw > $MAX_DECOMP_BYTES
402100TFunless defined $self->{'_diagnostics'}
40850TFunless exists $MESSAGES{$key}