Condition Coverage

blib/lib/MP3/Info.pm
Criterion Covered Total %
condition 43 120 35.8


and 3 conditions

line !l l&&!r l&&r condition
234 0 0 16 defined $file and $file ne ''
349 0 0 5 defined $file and $file ne ''
382 0 0 5 $info{'TRACKNUM'} =~ /^\d+$/ and $info{'TRACKNUM'} > 0
0 0 5 $info{'TRACKNUM'} =~ /^\d+$/ and $info{'TRACKNUM'} > 0 and $info{'TRACKNUM'} < 256
406 0 0 5 $info{'GENRE'} && exists $MP3::Info::mp3_genres{$info{'GENRE'}}
463 0 0 14 defined $file and $file ne ''
488 0 6 8 $tag and $tag =~ /^TAG/
523 0 8 6 $ver == 0 || $ver == 2 and $v2
524 6 0 0 $raw_v2 == 1 and $ver == 2
540 36 0 0 ref $data1 and not $raw_v2
608 0 0 0 chr($_) =~ /[[:ascii:]]/ && chr($_) =~ /[[:print:]]/
626 0 6 0 $name and $name ne "\000"
634 36 0 0 $raw_v2 == 2 and $desc
638 36 0 0 $raw_v2 == 2 and exists $info{$$hash{$id}}
650 0 6 0 $ver == 0 and $info{'TAGVERSION'}
658 14 0 0 $raw_v2 and $ver == 2
671 0 0 14 keys %info and exists $info{'GENRE'}
0 14 0 keys %info and exists $info{'GENRE'} and not defined $info{'GENRE'}
715 2 4 0 $num == 4 and $bytes =~ /^(COM )/
750 36 0 0 $$flags{'frame_unsync'} and not $$v2h{'unsync'}
753 36 0 0 $$flags{'data_len_indicator'} and defined $data_len
812 0 0 6 defined $file and $file ne ''
852 1944 0 0 $off > $tot and not $MP3::Info::try_harder
892 6 0 0 $vbr && $$vbr{'bytes'}
896 6 0 0 $vbr && $$vbr{'frames'}

or 2 conditions

line l !l condition
95 0 0 get_mp3tag($file) || {map({$_, undef;} @MP3::Info::v1_tag_names)}
231 0 16 $buf ||= 4194304
232 16 0 $version ||= 1
288 8 8 $return || -1
460 0 14 $raw_v2 ||= 0
987 0 6 $_[0] || 4

or 3 conditions

line l !l&&r !l&&!r condition
255 0 16 0 $version eq 1 or $version eq 'ALL'
264 0 16 0 $version eq 2 or $version eq 'ALL'
461 0 0 0 $ver == 2 || $ver == 1
517 8 6 0 $v1 or $v2
523 14 0 0 $ver == 0 || $ver == 2
543 0 0 0 $newdata || $$data1[0]
564 0 0 36 $encoding eq "\cA" or $encoding eq "\cB"
573 0 0 0 eval { do { &Encode::decode('utf16', $data) } } || &Encode::decode('utf16le', $data)
715 36 0 6 $bytes =~ /^([A-Z0-9]{$num})/ or $num == 4 and $bytes =~ /^(COM )/
951 0 0 6 $$h{'bitrate_index'} == 0 || $$h{'version_index'} == 1 || ($$h{'bytes'} & 4292870144) != 4292870144 || !$$h{'fs'} || !$$h{'bitrate'} || $$h{'bitrate_index'} == 15 || !$$h{'layer'} || $$h{'sampling_freq'} == 3 || $$h{'emphasis'} == 2 || !$$h{'bitrate_index'} || ($$h{'bytes'} & 4294901760) == 4294836224 || $$h{'ID'} == 1 && $$h{'layer'} == 3 && $$h{'protection_bit'} == 1 || $$h{'mode_extension'} != 0 && $$h{'mode'} != 1
1044 0 0 36 $bytes eq 'RIF' or $bytes eq 'FOR'