Branch Coverage

blib/lib/SVG/SVG2zinc/Conversions.pm
Criterion Covered Total %
branch 0 194 0.0


line true false branch
48 0 0 unless defined $str
62 0 0 unless defined $opacity
63 0 0 if $opacity < 0
64 0 0 if $opacity > 1
84 0 0 if $fullFamily eq ''
87 0 0 unless $weight
89 0 0 if ($size =~ /(.*)pt/) { }
0 0 elsif ($size =~ /(\d*(.\d*)?)\s*$/) { }
100 0 0 if ($family =~ /(\w*)-bold/) { }
106 0 0 if defined $fontsMapping{$family}
110 0 0 if (not defined $fonts{$fontKey}) { }
140 0 0 if ($gradients{$gname} eq $newGradDef)
161 0 0 unless defined $def
163 0 0 if not defined $gradients{$def} or $def eq $gradients{$def}
172 0 0 unless defined $def
174 0 0 if not defined $gradients{$def} or $def eq $gradients{$def}
181 0 0 if (defined $gradients{$gname}) { }
203 0 0 if $opacity == 100
204 0 0 unless &namedGradientDef($gname)
210 0 0 if ($stop =~ /^([^\s;]+)\s*;\s*(\d+)\s*(\d*)\s*$/) { }
0 0 elsif ($stop =~ /^(\S+)\s+(\d+)$/) { }
0 0 elsif ($stop =~ /^(\S+)$/) { }
215 0 0 if ($pos) { }
277 0 0 if ($color =~ /^\s*none/m) { }
0 0 elsif ($color =~ /rgb\(\s*(.+)\s*\)/) { }
0 0 elsif ($color =~ /^url\(\#(.+)\)/) { }
0 0 elsif ($color =~ /\#([0-9a-fA-F]{3}?)$/) { }
282 0 0 if ($rgbs =~ /([\d.]*)%\s*,\s*([\d.]*)%\s*,\s*([\d.]*)%/) { }
0 0 elsif ($rgbs =~ /(\d*)\s*,\s*(\d*)\s*,\s*(\d*)/) { }
313 0 0 if (defined $converted) { }
349 0 0 unless defined $command
351 0 0 if ($command eq 'M') { }
0 0 elsif ($command eq 'm') { }
0 0 elsif ($command eq 'z' or $command eq 'Z') { }
352 0 0 unless ($closed)
369 0 0 unless ($closed)
398 0 0 if ($command eq 'V') { }
0 0 elsif ($command eq 'v') { }
0 0 elsif ($command eq 'H') { }
0 0 elsif ($command eq 'h') { }
0 0 elsif ($command eq 'L') { }
0 0 elsif ($command eq 'l') { }
0 0 elsif ($command eq 'C' or $command eq 'c') { }
0 0 elsif ($command eq 'S' or $command eq 's') { }
0 0 elsif ($command eq 'Q' or $command eq 'q') { }
0 0 elsif ($command eq 'T' or $command eq 't') { }
0 0 elsif ($command eq 'a' or $command eq 'A') { }
432 0 0 if scalar @res < 1
436 0 0 if scalar @points < 6
444 0 0 if ($command eq 'c')
450 0 0 if scalar @res < 1
454 0 0 if ($command eq 's')
463 0 0 if scalar @points < 4
465 0 0 defined $prevContrlx ? :
467 0 0 defined $prevContrly ? :
478 0 0 if scalar @res < 1
481 0 0 if ($command eq 'q')
490 0 0 if scalar @points < 4
518 0 0 if scalar @res < 1
522 0 0 if ($command eq 't')
531 0 0 if scalar @points < 2
533 0 0 defined $prevContrlx ? :
535 0 0 defined $prevContrly ? :
562 0 0 if scalar @points < 7
564 0 0 if ($command eq 'a')
573 0 0 if scalar @points == 7
580 0 0 if (@res) { }
605 0 0 if $rx == 0 and $ry == 0
606 0 0 if $rx < 0
607 0 0 if $ry < 0
623 0 0 if ($radius_check > 1)
630 0 0 if $large_arc_flag eq $sweep_flag
659 0 0 if (not $sweep_flag and $dTheta > 0)
662 0 0 if ($sweep_flag and $dTheta < 0)
693 0 0 if $x1 * $y2 - $y1 * $x2 < 0
731 0 0 if ($id =~ /^\d+$/)
736 0 0 if ($id =~ /\./)
756 0 0 if (not defined($value = $attrs{$attr})) { }
772 0 0 if ($value =~ /(.*)cm/) { }
0 0 elsif ($value =~ /(.*)mm/) { }
0 0 elsif ($value =~ /(\d+)px/) { }
0 0 elsif ($value =~ /(.*)in/) { }
0 0 elsif ($value =~ /(.*)pt/) { }
0 0 elsif ($value =~ /(.*)pc/) { }
0 0 elsif ($value =~ /(.*)%/) { }
0 0 elsif ($value =~ /(.*)em/) { }
0 0 elsif ($value =~ /(.*)ex/) { }
809 0 0 unless defined $str
810 0 0 unless defined $id
815 0 0 if ($trans eq 'translate') { }
0 0 elsif ($trans eq 'rotate') { }
0 0 elsif ($trans eq 'scale') { }
0 0 elsif ($trans eq 'matrix') { }
0 0 elsif ($trans eq 'skewX') { }
0 0 elsif ($trans eq 'skewY') { }
816 0 0 if scalar @params == 1
824 0 0 if scalar @params == 1