Condition Coverage

blib/lib/SWF/Element.pm
Criterion Covered Total %
condition 27 205 13.1


and 3 conditions

line !l l&&!r l&&r condition
570 0 0 2 ref $param[0] eq 'ARRAY' and ref $param[0][0]
2487 0 0 0 @$actions > 0 && $substream->tell + 2
3254 0 0 0 $self->StreamSoundCompression == 2 and defined $self->LatencySeek
3300 0 0 0 ref $p eq 'CODE' and not defined $callback
3604 0 0 0 defined $tag and not $tag =~ /^\d+$/
3648 0 0 0 not $name and $num >= 128
4097 0 0 0 ($data & $INF) eq $INF and ($data & $MANTISSA) ne "\000\000\000\000\000\000\000\000"
4199 0 0 0 $length >= 2 and $tell % 1024 == 1023
4233 0 0 0 not defined $len and $element->Tag == 0
4308 0 0 0 $j >= 0 and $dst - $set > $offset
4313 0 0 0 $j < @$byteoffset and $dst - $set < $offset
4469 0 0 0 $finallylabel and $finallylabel ne $catchlabel
0 0 0 not $finallylabel and $self->FinallySize != 0
4470 0 0 0 $catchlabel and $catchlabel ne $trylabel
0 0 0 not $catchlabel and $self->CatchSize != 0
4524 0 0 0 $j < @$byteoffset and $dst - $set < $offset

or 2 conditions

line l !l condition
98 0 0 $indent ||= 0
99 0 0 $outputsub ||= \&_default_output
134 26 11 shift() || ''
218 14 90 $len ||= 1
223 1 0 $self->$flagfield || 0
513 0 0 $outputsub ||= \&SWF::Element::_default_output
623 0 0 $indent ||= 0
624 0 0 $outputsub ||= \&SWF::Element::_default_output
1163 0 0 $indent ||= 0
1164 0 0 $outputsub ||= \&SWF::Element::_default_output
1203 0 0 $outputsub ||= \&SWF::Element::_default_output
1662 6 0 $tagname[$_[1]] || 'Unknown'
2093 4 2 $self->Length || 0
2698 0 0 $self->FontFlags || 0
2865 0 0 $indent ||= 0
2866 0 0 $outputsub ||= \&SWF::Element::_default_output
3288 0 0 $outputsub ||= \&SWF::Element::_default_output
3804 0 0 $outputsub ||= \&SWF::Element::_default_output
3862 0 0 $outputsub ||= \&SWF::Element::_default_output
3913 0 0 $outputsub ||= \&SWF::Element::_default_output

or 3 conditions

line l !l&&r !l&&!r condition
17 0 34 0 ref $class || $class
29 0 0 0 $f == 0 || !ref($_)
45 9 0 141 ref $_[0] || $_[0]
50 1 0 57 ref $_[0] || $_[0]
188 0 0 11 UNIVERSAL::isa($p, $type) or not defined $p
469 0 10 0 ref $class || $class
561 0 9 0 ref $class || $class
573 0 0 10 UNIVERSAL::isa($p, ref $element) or not defined $p
641 0 0 0 ref $element eq '' or ref $element eq 'ARRAY'
856 0 0 0 UNIVERSAL::isa($p, ref $element) or not defined $p
904 0 0 1 $self->ScaleX != 1 or $self->ScaleY != 1
910 0 0 1 $self->RotateSkew0 != 0 or $self->RotateSkew1 != 0
952 0 0 0 defined $self->TranslateX || defined $self->TranslateY || $self->ScaleX != 1 || $self->ScaleY != 1 || $self->RotateSkew0 != 0 || $self->RotateSkew1 != 0
1017 0 0 0 @add or @mult
1128 0 0 0 ref $file or $file =~ /^\*[\w:]+$/
1145 0 0 0 ref $file or $file =~ /^\*[\w:]+$/
1235 0 0 0 $style == 16 or $style == 18
0 0 0 $style >= 64 or $style <= 67
1249 0 0 0 $style == 16 or $style == 18
0 0 0 $style >= 64 or $style <= 67
1461 0 0 1 @{$self->FillStyles;} > 0 or @{$self->LineStyles;} > 0
1607 0 6 0 ref $class || $class
1680 32 5 71 $v eq 'ID' or $v eq 'Depth'
2111 1 0 5 $len >= 63 or $self->is_tagtype('AlwaysLongHeader')
2241 0 0 0 $style == 16 or $style == 18
0 0 0 $style >= 64 or $style <= 67
2258 0 0 0 $style == 16 or $style == 18
0 0 0 $style <= 64 or $style <= 67
2809 0 0 0 ref $class || $class
3018 0 0 0 $self->FontID->defined or defined $self->TextHeight
3072 0 0 0 $self->FontID->defined or defined $self->TextHeight
3118 0 0 0 $self->FontID->defined || defined $self->FontHeight
0 0 0 defined $self->Align || defined $self->LeftMargin || defined $self->RightMargin || defined $self->Indent || defined $self->Leading
3300 0 0 0 lc $p ne 'callback' or ref $callback ne 'CODE'
3611 0 0 0 ref $class || $class
4228 0 0 0 not defined $len or $stream->tell - $start < $len
4469 0 0 0 $finallylabel and $finallylabel ne $catchlabel or not $finallylabel and $self->FinallySize != 0
4470 0 0 0 $catchlabel and $catchlabel ne $trylabel or not $catchlabel and $self->CatchSize != 0
4519 0 0 0 not defined $offset or $offset <= 0