Condition Coverage

lib/XML/SAX/SVGTransformer.pm
Criterion Covered Total %
condition 40 68 58.8


and 3 conditions

line !l l&&!r l&&r condition
27 25 1 7 $name eq "svg" and not $self->_seen($name)
19 0 7 $self->_stash("svg") and not $self->_stash("grouped")
34 0 5 2 $name eq "g" and (_attr($elem, 'id') || '') eq $self->_group_id
68 1 0 2 @parts == 4 and not grep((!/^[-0-9.eE]+$/), @parts)
93 3 0 4 $self->_stash("added_group") and $prev eq "g"
119 7 0 0 not $svg_viewbox and $svg_width
7 0 0 not $svg_viewbox and $svg_width and $svg_height
231 0 4 2 @ops and $ops[-1][0] eq "rotate"
239 0 0 0 @ops and $ops[-1][0] eq "matrix"
246 0 0 0 @ops and $ops[-1][0] eq "matrix"
258 0 0 0 @ops and $ops[-1] eq "matrix"
312 2 0 5 $args[0] == 1 and $args[1] == 1
355 4 0 10 $set->{'min_x'} and $set->{'min_x'} < 0
360 12 0 2 $set->{'min_y'} and $set->{'min_y'} < 0
398 4 1 2 $x and $y
469 1 0 31 defined $value and $value ne ""

or 2 conditions

line l !l condition
34 2 5 _attr($elem, 'id') || ''
67 3 0 $data || ''
80 33 0 $self->{'_stack'}[-1] || ''
272 6 0 $args[0] || 0
316 6 0 $args[0] ||= 0
317 4 2 $args[1] ||= 0
443 9 7 $count || 0

or 3 conditions

line l !l&&r !l&&!r condition
164 0 1 1 $offset[0] or $offset[1]
315 6 0 1 $args[0] or $args[1]