Branch Coverage

blib/lib/SVG/Fill.pm
Criterion Covered Total %
branch 18 26 69.2


line true false branch
50 0 1 unless $id =~ /^#/
54 1 0 if (my $element = $dom->at($id)) { }
56 1 0 if ($element->tag eq 'text') { }
76 0 4 unless $id =~ /^#/
80 4 0 if (my $element = $dom->at($id)) { }
82 4 0 if ($element->tag eq 'image') { }
84 4 0 if (-e $image) { }
88 1 3 if $image =~ /png$/
89 1 3 if $image =~ /svg$/
90 1 3 if $image =~ /jpg$/
91 1 3 if $image =~ /gif$/
118 6 0 defined $filename ? :
134 1 2 if (my $font = $element->attr('font-family'))