Branch Coverage

blib/lib/SVGPDF/Tspan.pm
Criterion Covered Total %
branch 25 32 78.1


line true false branch
13 0 9 if $atts->{'omit'}
21 0 9 if ($dx =~ /^([.\d]+)em$/u) { }
27 0 9 if ($dy =~ /^([.\d]+)em$/u) { }
37 8 1 if $color and $color eq "currentColor"
46 4 5 defined $atts->{'x'} ? :
0 9 defined $atts->{'y'} ? :
1 8 defined $atts->{'dx'} ? :
5 4 defined $atts->{'dy'} ? :
4 5 defined $style->{'text-anchor'} ? :
57 4 5 $anchor eq 'middle' ? :
0 9 $anchor eq 'end' ? :
61 5 4 if (do { $y unless $x })
65 4 5 unless $x
73 9 1 if (ref $c eq 'SVGPDF::TextElement') { }
1 0 elsif (ref $c eq 'SVGPDF::Tspan') { }
89 9 0 wantarray ? :