Branch Coverage

blib/lib/SVGPDF/Text.pm
Criterion Covered Total %
branch 29 64 45.3


line true false branch
13 0 24 if $atts->{'omit'}
22 20 4 if $color and $color eq "currentColor"
33 24 0 defined $atts->{'x'} ? :
24 0 defined $atts->{'y'} ? :
2 22 defined $atts->{'dx'} ? :
1 23 defined $atts->{'dy'} ? :
4 20 defined $style->{'text-anchor'} ? :
0 24 defined $style->{'transform'} ? :
42 0 24 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 24 if ($tf)
66 0 0 if $tf =~ /translate\((.*?)\)/u
68 0 0 if $tf =~ /scale\((.*?)\)/u
76 0 24 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 24 if ($tf)
118 24 0 $scalex != 1 || $scaley != -1 ? :
123 4 20 $anchor eq 'middle' ? :
0 24 $anchor eq 'end' ? :
129 28 4 if (ref $c eq 'SVGPDF::TextElement') { }
4 0 elsif (ref $c eq 'SVGPDF::Tspan') { }
132 28 0 $scalex != 1 || $scaley != -1 ? :
139 0 28 if ($tc) { }
148 0 28 if ($style->{'outline-style'})
168 0 4 if (defined $c->atts->{'x'})
171 0 4 if (defined $c->atts->{'y'})
174 4 0 $scalex != 1 || $scaley != -1 ? :