Branch Coverage

blib/lib/SVG/SpriteMaker.pm
Criterion Covered Total %
branch 12 18 66.6


line true false branch
25 0 1 ref $prefix eq 'CODE' ? :
35 0 2 unless my($w) = $svg->attr('width') =~ /([0-9.]*)/su
36 0 2 unless my($h) = $svg->attr('height') =~ /([0-9.]*)/su
37 1 1 if $h > $mh
47 2 2 unless $id
48 1 1 if ($ids{$id}) { }
55 0 2 if @duplicate_ids and not $ENV{'SVG_SPRITEMAKER_NO_DUPLICATE_WARNINGS'}
68 0 14 if ($attribs{$key} =~ /#$oid\b/su)
73 0 2 if ($elem->cdata =~ /#$oid\b/su)