Condition Coverage

blib/lib/Audio/SID.pm
Criterion Covered Total %
condition 0 168 0.0


and 3 conditions

line !l l&&!r l&&r condition
99 0 0 0 $_[0] =~ /^\-filedata$/i and defined $_[1]
0 0 0 $_[0] =~ /^\-file(name)|(handle)$/i and defined $_[1]
0 0 0 defined $_[0] and not defined $_[1]
160 0 0 0 $SID eq 'PSID' and $version == 1 || $version == 2
0 0 0 $SID eq 'RSID' and $version == 2
237 0 0 0 ref \$filename ne 'GLOB' and not defined $filedata
259 0 0 0 $_[0] =~ /^\-file(name)|(handle)$/i and defined $_[1]
0 0 0 defined $_[0] and not defined $_[1]
388 0 0 0 $$self{'SIDdata'}{'data'} and $$self{'SIDdata'}{'loadAddress'} == 0
553 0 0 0 $SIDhash{$fieldname} ne 'PSID' and $SIDhash{$fieldname} ne 'RSID'
564 0 0 0 $SIDhash{$fieldname} != 1 and $SIDhash{$fieldname} != 2
570 0 0 0 $$self{'SIDdata'}{'version'} < 2 and $fieldname eq 'magicID' || $fieldname eq 'flags' || $fieldname eq 'reserved' || $fieldname eq 'startPage' || $fieldname eq 'pageLength'
693 0 0 0 $value ne 0 and $value ne 1
716 0 0 0 $MUSplayer ne 0 and $MUSplayer ne 1
741 0 0 0 $PlaySID ne 0 and $PlaySID ne 1
766 0 0 0 $C64BASIC ne 0 and $C64BASIC ne 1
890 0 0 0 $$self{'SIDdata'}{'loadAddress'} == 0 and $$self{'SIDdata'}{'data'}
918 0 0 0 $$self{'SIDdata'}{'version'} > 1 and $clock == 2
0 0 0 $$self{'SIDdata'}{'version'} > 1 and $clock == 2 and not $oldMD5
980 0 0 0 $self->isRSID and $$self{'SIDdata'}{'initAddress'} > 0 && $$self{'SIDdata'}{'initAddress'} < 2024 || $$self{'SIDdata'}{'initAddress'} >= 40960 && $$self{'SIDdata'}{'initAddress'} < 49152 || $$self{'SIDdata'}{'initAddress'} >= 53248 && $$self{'SIDdata'}{'initAddress'} <= 65535 || $$self{'SIDdata'}{'initAddress'} < $self->getRealLoadAddress || $$self{'SIDdata'}{'initAddress'} > $self->getRealLoadAddress + length($$self{'SIDdata'}{'data'}) - 3 || $self->getC64BASIC
1000 0 0 0 $self->isRSID and $self->getRealLoadAddress < 2024
1003 0 0 0 $self->isRSID and $$self{'SIDdata'}{'loadAddress'} < 2024
1021 0 0 0 $self->isRSID and $$self{'SIDdata'}{'initAddress'} < $self->getRealLoadAddress || $$self{'SIDdata'}{'initAddress'} > $self->getRealLoadAddress + length($$self{'SIDdata'}{'data'}) - 3
1126 0 0 0 $$self{'SIDdata'}{'startPage'} >= 160 and $$self{'SIDdata'}{'startPage'} < 192
0 0 0 $$self{'SIDdata'}{'startPage'} >= 208 and $$self{'SIDdata'}{'startPage'} < 255
0 0 0 $$self{'SIDdata'}{'startPage'} > 0 and $$self{'SIDdata'}{'startPage'} < 4
1135 0 0 0 ($$self{'SIDdata'}{'startPage'} << 8) + ($$self{'SIDdata'}{'pageLength'} << 8) - 1 >= 40960 and ($$self{'SIDdata'}{'startPage'} << 8) + ($$self{'SIDdata'}{'pageLength'} << 8) - 1 < 49152
0 0 0 ($$self{'SIDdata'}{'startPage'} << 8) + ($$self{'SIDdata'}{'pageLength'} << 8) - 1 >= 53248 and ($$self{'SIDdata'}{'startPage'} << 8) + ($$self{'SIDdata'}{'pageLength'} << 8) - 1 <= 65535
0 0 0 ($$self{'SIDdata'}{'startPage'} << 8) + ($$self{'SIDdata'}{'pageLength'} << 8) - 1 > 0 and ($$self{'SIDdata'}{'startPage'} << 8) + ($$self{'SIDdata'}{'pageLength'} << 8) - 1 < 1024
1144 0 0 0 $$self{'SIDdata'}{'startPage'} < 160 and ($$self{'SIDdata'}{'startPage'} << 8) + ($$self{'SIDdata'}{'pageLength'} << 8) - 1 >= 49152
1152 0 0 0 $$self{'SIDdata'}{'startPage'} << 8 >= $self->getRealLoadAddress and $$self{'SIDdata'}{'startPage'} << 8 <= $self->getRealLoadAddress + length($$self{'SIDdata'}{'data'}) - 3
1160 0 0 0 ($$self{'SIDdata'}{'startPage'} << 8) + ($$self{'SIDdata'}{'pageLength'} << 8) - 1 >= $self->getRealLoadAddress and ($$self{'SIDdata'}{'startPage'} << 8) + ($$self{'SIDdata'}{'pageLength'} << 8) - 1 <= $self->getRealLoadAddress + length($$self{'SIDdata'}{'data'}) - 3
1168 0 0 0 $$self{'SIDdata'}{'startPage'} << 8 < $self->getRealLoadAddress and ($$self{'SIDdata'}{'startPage'} << 8) + ($$self{'SIDdata'}{'pageLength'} << 8) - 1 > $self->getRealLoadAddress + length($$self{'SIDdata'}{'data'}) - 3

or 3 conditions

line l !l&&r !l&&!r condition
37 0 0 0 ref $type || $type
160 0 0 0 $version == 1 || $version == 2
0 0 0 $SID eq 'PSID' and $version == 1 || $version == 2 or $SID eq 'RSID' and $version == 2
401 0 0 0 not defined $songnumber or $songnumber < 1
570 0 0 0 $fieldname eq 'magicID' || $fieldname eq 'flags' || $fieldname eq 'reserved' || $fieldname eq 'startPage' || $fieldname eq 'pageLength'
579 0 0 0 $fieldname eq 'title' or $fieldname eq 'author'
0 0 0 $fieldname eq 'title' or $fieldname eq 'author' or $fieldname eq 'released'
688 0 0 0 $songnumber > $$self{'SIDdata'}{'songs'} or $songnumber < 1
790 0 0 0 $clock < 0 or $clock > 3
838 0 0 0 $SIDModel < 0 or $SIDModel > 3
858 0 0 0 $SIDModel =~ /^6581$/ or $SIDModel == 6581
0 0 0 $SIDModel =~ /^8580$/i or $SIDModel == 8580
907 0 0 0 ($speed & 1 << $i) != 0 or $self->isRSID
980 0 0 0 $$self{'SIDdata'}{'initAddress'} > 0 && $$self{'SIDdata'}{'initAddress'} < 2024 || $$self{'SIDdata'}{'initAddress'} >= 40960 && $$self{'SIDdata'}{'initAddress'} < 49152 || $$self{'SIDdata'}{'initAddress'} >= 53248 && $$self{'SIDdata'}{'initAddress'} <= 65535 || $$self{'SIDdata'}{'initAddress'} < $self->getRealLoadAddress || $$self{'SIDdata'}{'initAddress'} > $self->getRealLoadAddress + length($$self{'SIDdata'}{'data'}) - 3 || $self->getC64BASIC
1021 0 0 0 $$self{'SIDdata'}{'initAddress'} < $self->getRealLoadAddress || $$self{'SIDdata'}{'initAddress'} > $self->getRealLoadAddress + length($$self{'SIDdata'}{'data'}) - 3
1034 0 0 0 $$self{'SIDdata'}{$field} < 0 or $$self{'SIDdata'}{$field} > 65535
1042 0 0 0 not defined $$self{'SIDdata'}{$field} or $$self{'SIDdata'}{$field} < 0
0 0 0 not defined $$self{'SIDdata'}{$field} or $$self{'SIDdata'}{$field} < 0 or $$self{'SIDdata'}{$field} > 255
1112 0 0 0 $$self{'SIDdata'}{'startPage'} == 0 or $$self{'SIDdata'}{'startPage'} == 255
1126 0 0 0 $$self{'SIDdata'}{'startPage'} >= 160 and $$self{'SIDdata'}{'startPage'} < 192 or $$self{'SIDdata'}{'startPage'} >= 208 and $$self{'SIDdata'}{'startPage'} < 255
0 0 0 $$self{'SIDdata'}{'startPage'} >= 160 and $$self{'SIDdata'}{'startPage'} < 192 or $$self{'SIDdata'}{'startPage'} >= 208 and $$self{'SIDdata'}{'startPage'} < 255 or $$self{'SIDdata'}{'startPage'} > 0 and $$self{'SIDdata'}{'startPage'} < 4
1135 0 0 0 ($$self{'SIDdata'}{'startPage'} << 8) + ($$self{'SIDdata'}{'pageLength'} << 8) - 1 >= 40960 and ($$self{'SIDdata'}{'startPage'} << 8) + ($$self{'SIDdata'}{'pageLength'} << 8) - 1 < 49152 or ($$self{'SIDdata'}{'startPage'} << 8) + ($$self{'SIDdata'}{'pageLength'} << 8) - 1 >= 53248 and ($$self{'SIDdata'}{'startPage'} << 8) + ($$self{'SIDdata'}{'pageLength'} << 8) - 1 <= 65535
0 0 0 ($$self{'SIDdata'}{'startPage'} << 8) + ($$self{'SIDdata'}{'pageLength'} << 8) - 1 >= 40960 and ($$self{'SIDdata'}{'startPage'} << 8) + ($$self{'SIDdata'}{'pageLength'} << 8) - 1 < 49152 or ($$self{'SIDdata'}{'startPage'} << 8) + ($$self{'SIDdata'}{'pageLength'} << 8) - 1 >= 53248 and ($$self{'SIDdata'}{'startPage'} << 8) + ($$self{'SIDdata'}{'pageLength'} << 8) - 1 <= 65535 or ($$self{'SIDdata'}{'startPage'} << 8) + ($$self{'SIDdata'}{'pageLength'} << 8) - 1 > 0 and ($$self{'SIDdata'}{'startPage'} << 8) + ($$self{'SIDdata'}{'pageLength'} << 8) - 1 < 1024