Condition Coverage

blib/lib/SVGPDF/Element.pm
Criterion Covered Total %
condition 35 88 39.7


and 3 conditions

line !l l&&!r l&&r condition
72 0 0 0 $x != 1 and $y != 1
201 30 23 63 lc $fill ne "none" and $fill ne "transparent"
212 0 0 2 $sda and $sda ne "none"
226 17 19 46 $style->{'stroke'} && $style->{'stroke'} ne 'none' && $style->{'stroke'} ne 'transparent' && $style->{'stroke-width'}
0 0 17 $style->{'fill'} and $style->{'fill'} ne "none"
0 0 17 $style->{'fill'} and $style->{'fill'} ne "none" and $style->{'fill'} ne "transparent"
233 0 30 35 $style->{'fill'} and $style->{'fill'} ne "none"
30 23 12 $style->{'fill'} and $style->{'fill'} ne "none" and $style->{'fill'} ne "transparent"
462 33 0 0 $msg and $self->root->verbose

or 2 conditions

line l !l condition
46 4 3 $y ||= 0
226 63 19 $style->{'stroke'} && $style->{'stroke'} ne 'none' && $style->{'stroke'} ne 'transparent' && $style->{'stroke-width'} // Deparse error: Can't locate object method "object_2svref" via package "B::SPECIAL" at /usr/local/lib/perl5/5.42.0/B/Deparse.pm line 5762.

or 3 conditions

line l !l&&r !l&&!r condition
28 181 0 0 $updated_atts // $atts
47 7 0 0 $nooptimize or $x
7 0 0 $nooptimize or $x or $y
55 2 0 0 $nooptimize or $r
56 0 0 2 $x or $y
62 0 0 2 $x or $y
71 0 0 0 $y ||= $x
72 0 0 0 $nooptimize or $x != 1 and $y != 1
146 0 0 0 $style->{'font-size'} || $self->root->fontsize
271 5 0 0 $warned->{$name}++ or not $self->root->verbose
324 659 36 8 $2 eq "" or $2 eq "px"
332 0 0 0 $args{'width'} || $self->root->xoforms->[-1]{'diag'}
339 0 0 0 $args{'fontsize'} || $style->{'font-size'} || $self->root->fontsize
345 0 0 0 $args{'fontsize'} || $style->{'font-size'} || $self->root->fontsize
364 149 0 0 $atts // $self->atts
367 0 13 0 $atts{'href'} //= delete $atts{'xlink:href'}
416 0 1 1 $flags eq "w" or $param =~ /^(?:w(?:idth)|x)?$/iu
0 1 0 $flag eq "h" or $param =~ /^(?:h(?:eight)?|y)$/iu
452 0 0 1 not $self->root->verbose or $aw->{$tag}++