Condition Coverage

lib/XML/SAX/SVGTransformer.pm
Criterion Covered Total %
condition 41 66 62.1


and 3 conditions

line !l l&&!r l&&r condition
27 25 1 7 $name eq "svg" and not $self->_seen($name)
26 0 7 $name eq "svg" and not $self->_seen($name) and not $self->_stash($name)
19 0 7 $self->_stash("svg") and not $self->_stash("updated")
33 0 5 2 $name eq "g" and (_attr($elem, 'id') || '') eq $self->_group_id
47 1 0 2 @parts == 4 and not grep((!/^[-0-9.eE]+$/), @parts)
101 7 0 0 not $svg_viewbox and $svg_width
7 0 0 not $svg_viewbox and $svg_width and $svg_height
206 2 1 4 $new_group and $transform
232 0 4 2 @ops and $ops[-1][0] eq "rotate"
240 0 0 0 @ops and $ops[-1][0] eq "matrix"
247 0 0 0 @ops and $ops[-1][0] eq "matrix"
259 0 0 0 @ops and $ops[-1] eq "matrix"
313 1 0 6 $args[0] == 1 and $args[1] == 1
401 4 1 2 $x and $y
437 4 33 0 not ref $popped and $name ne $popped
477 1 1 31 defined $value and $value ne ""

or 2 conditions

line l !l condition
33 2 5 _attr($elem, 'id') || ''
46 3 0 $data || ''
273 6 0 $args[0] || 0
317 6 0 $args[0] ||= 0
318 4 2 $args[1] ||= 0
446 1 7 $count || 0

or 3 conditions

line l !l&&r !l&&!r condition
169 0 1 1 $offset[0] or $offset[1]
316 6 0 1 $args[0] or $args[1]