Branch Coverage

blib/lib/SVGPDF.pm
Criterion Covered Total %
branch 66 158 41.7


line true false branch
120 0 26 if @_
124 0 0 if @_
125 0 31 if @_
128 0 279 if @_
0 24 if @_
131 0 33 if @_
133 0 328 if @_
134 0 13 if @_
137 0 0 if @_
138 0 0 if @_
143 0 703 if @_
0 3 if @_
144 0 2 if @_
145 0 0 if @_
146 0 0 if @_
147 0 0 if @_
148 0 0 if @_
149 0 0 if @_
191 0 1 if @args % 2
271 32 0 if ($options{'reset'})
276 0 32 if $options{'fontsize'}
284 0 32 unless $tree
296 0 32 if ($combine ne "none" and @$xoforms > 1)
307 0 1705 unless $debug
309 488 1217 if ($args[0] =~ /\%/u) { }
315 460 1245 if ($msg =~ /^\+\s*(.*)/u) { }
460 785 elsif ($msg =~ /^\-\s*(.*)/u) { }
32 753 elsif ($msg =~ /^\^\s*(.*)/u) { }
317 460 0 if $1
320 309 151 if $1
321 0 460 if length $indent < 2
326 32 0 if $1
329 753 0 if $msg
339 0 32 if $_->{'type'} eq "t"
341 32 0 if ($name eq 'svg') { }
348 0 0 unless $name eq "<>"
359 0 32 if ($prog) { }
378 219 1 unless ref $_ eq "SVGPDF::Style"
380 0 1 unless scalar $_->get_children == 1
382 0 1 unless ref $t eq "SVGPDF::TextElement"
387 1 31 if ($cdata =~ /\S/u)
416 0 32 if $minw
421 0 32 if $valign
429 3 29 if ($vbox) { }
437 0 3 if ($minw and $minw > $width)
443 0 3 if ($valign)
447 0 0 unless $va eq $vb
450 0 3 if ($vwidth and not $vheight)
453 0 3 if ($vheight and not $vwidth)
465 0 29 if ($minw and $minw > $width)
466 0 0 if $minw > $width
471 0 29 if ($valign)
479 1 31 if $vheight and $width / $height / ($vwidth / $vheight) > 1.05 || $width / $height / ($vwidth / $vheight) < 0.95
487 0 32 if $verbose and not $debug
491 32 0 if (my $c = $style->{'background-color'})
492 2 30 if ($c ne "none")
515 0 32 if $valign
522 32 0 if ($debug)
538 0 32 if $grid
543 0 32 if $_ eq "none" or $_ eq "transparent"
544 32 0 $_ eq 'currentColor' ? :
547 32 0 $_ eq 'currentColor' ? :
550 32 0 if $_ eq "none" or $_ eq "transparent"
551 0 0 $_ eq 'currentColor' ? :
554 0 0 $_ eq 'currentColor' ? :
563 0 0 $a < $b ? :
564 0 0 $a > $b ? :
568 0 0 if $type eq "none"
576 0 0 if ($type eq 'bbox') { }
577 0 0 if $verbose
592 0 0 if $verbose
597 0 0 if (defined $xmax) { }
598 0 0 if $w > $xmax
608 0 0 if $verbose
629 0 32 if ref $vb[0] eq "ARRAY"
633 32 0 wantarray ? :
638 0 1 if ref $vb[0] eq "ARRAY"
642 1 0 wantarray ? :
646 0 0 $grid >= 5 ? :