Branch Coverage

blib/lib/SVGPDF/Text.pm
Criterion Covered Total %
branch 30 64 46.8


line true false branch
13 0 28 if $atts->{'omit'}
22 24 4 if $color and $color eq "currentColor"
33 28 0 defined $atts->{'x'} ? :
28 0 defined $atts->{'y'} ? :
2 26 defined $atts->{'dx'} ? :
1 27 defined $atts->{'dy'} ? :
8 20 defined $style->{'text-anchor'} ? :
0 28 defined $style->{'transform'} ? :
42 0 28 if ($x =~ /,/u) { }
43 0 0 if (@c > 1 or ref $c[0] ne "SVGPDF::TextElement")
49 0 0 unless @$x == @$y and @$y == @$text
65 0 28 if ($tf)
66 0 0 if $tf =~ /translate\((.*?)\)/u
68 0 0 if $tf =~ /scale\((.*?)\)/u
76 0 28 if (@$x > 1) { }
78 0 0 if ($tf)
86 0 0 $scalex != 1 || $scaley != -1 ? :
93 0 0 $scalex != 1 || $scaley != -1 ? :
98 0 0 $anchor eq 'middle' ? :
0 0 $anchor eq 'end' ? :
110 0 28 if ($tf)
118 28 0 $scalex != 1 || $scaley != -1 ? :
123 8 20 $anchor eq 'middle' ? :
0 28 $anchor eq 'end' ? :
129 36 8 if (ref $c eq 'SVGPDF::TextElement') { }
8 0 elsif (ref $c eq 'SVGPDF::Tspan') { }
132 36 0 $scalex != 1 || $scaley != -1 ? :
139 0 36 if ($tc) { }
148 0 36 if ($style->{'outline-style'})
168 4 4 if (defined $c->atts->{'x'})
171 0 8 if (defined $c->atts->{'y'})
174 8 0 $scalex != 1 || $scaley != -1 ? :