Branch Coverage

blib/lib/SVGPDF/Tspan.pm
Criterion Covered Total %
branch 22 32 68.7


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