Branch Coverage

blib/lib/SWF/Builder/Shape.pm
Criterion Covered Total %
branch 12 124 9.6


line true false branch
49 15 8 if (ref($$edges[-1]) =~ /STYLECHANGERECORD$/) { }
71 36 79 if exists $param{$p}
83 0 0 if ($dx or $dy)
104 7 0 if ($dx or $dy)
127 0 0 if ($cdx == 0 and $cdy == 0) { }
0 0 elsif ($adx == 0 and $ady == 0) { }
128 0 0 if ($adx != 0 or $ady != 0) { }
144 0 0 if ($adx or $ady) { }
174 0 110 if ($cdx == 0 and $cdy == 0) { }
0 110 elsif ($adx == 0 and $ady == 0) { }
175 0 0 if ($adx != 0 or $ady != 0) { }
191 110 0 if ($adx or $ady) { }
242 0 0 if defined $font
249 0 0 if defined $size
303 0 0 if @_ % 2
310 0 7 if @_ % 2
317 0 0 if @_ % 4
324 0 110 if @_ % 4
344 0 4 if (exists $style{$f}) { }
357 0 0 if (exists $style{$f}) { }
369 0 4 if (exists $style{$f}) { }
381 0 0 unless UNIVERSAL::isa($font, 'SWF::Builder::Character::Font') and $font->embed
395 0 0 unless (defined $text)
399 0 0 unless UNIVERSAL::isa($font, 'SWF::Builder::Character::Font') and eval { do { $font->embed } }
427 0 0 if (not defined $rx) { }
433 0 0 unless defined $ry
503 0 0 unless (UNIVERSAL::isa($matrix, 'SWF::Builder::ExElement::MATRIX'))
508 0 0 if (defined $sub) { }
519 0 0 unless $centralangle and $rx
527 0 0 if ($rx == $ry) { }
534 0 0 if (($startangle - $rot) % 90 != 0)
536 0 0 if ($sa2 > 1.5707963267948966 or $sa2 < -1.5707963267948966)
541 0 0 if (($startangle + $centralangle - $rot) % 90 != 0)
545 0 0 if ($ca2 > 1.5707963267948966 or $ca2 < -1.5707963267948966)
550 0 0 if ($rot) { }
618 0 0 if (not defined $ir) { }
666 0 0 if ($path =~ s/\A$qrwsp*([Mm])([^MmZzLlHhVvCcSsQqTtAa]*)//o) { }
670 0 0 unless $param =~ /$qr{'M'}/
672 0 0 if ($com eq 'm')
688 0 0 if (warnings::enabled())
705 0 0 unless $param =~ /$qr{uc $com}/
707 0 0 if $com eq lc $com
759 0 0 if (@coords)
796 0 0 if ($$pathobj{'_ref_cp'}[0] =~ /[CS]/) { }
823 0 0 if ($$pathobj{'_ref_cp'}[0] =~ /[QT]/) { }
848 0 0 if $x1 == $x2 and $y1 == $y2
850 0 0 if ($rx == 0 or $ry == 0)
870 0 0 if ($lambda > 1) { }
876 0 0 if $laf == $swf
890 0 0 if $uy < 0
892 0 0 $lambda > 1 ? :
893 0 0 if $ux * $vy - $uy * $vx < 0
894 0 0 if ($swf == 0 and $dtheta > 0) { }
0 0 elsif ($swf == 1 and $dtheta < 0) { }
936 0 0 unless (defined $im)
945 0 0 if ($det) { }
951 0 0 if (warnings::enabled())
954 0 0 if ($a - $b == 0) { }
957 0 0 if ($c - $d == 0) { }
1015 0 0 if $AUTOLOAD =~ /::DESTROY$/
1018 0 0 if ($AUTOLOAD =~ /::((_r)?[^:]+to_twips)$/) { }
1020 0 0 if ($2) { }