Branch Coverage

blib/lib/SVGPDF/Image.pm
Criterion Covered Total %
branch 22 30 73.3


line true false branch
13 0 18 if $atts->{'omit'}
21 0 18 unless ($w and $h)
29 8 10 if ($link =~ /^data:/u) { }
5 5 elsif ($link =~ /^.+\.(png|jpe?g|gif)$/iu and -s $link) { }
5 0 elsif ($link =~ /^.+\.(tiff?|p[bgp]m|x[bp]m)$/iu and -s $link) { }
32 0 8 if ($info->{'error'})
40 0 8 unless ($mimetype eq "image")
49 0 8 if ($info->{'error'})
55 1 7 if $format eq "jpg"
56 3 5 if $format =~ /^p[bgp]m$/u
57 0 8 if $format =~ /^x[bp]m$/u
58 1 7 if $format eq "tif"
63 1 7 if ($format eq 'tiff') { }
85 2 3 $1 =~ /tif/iu ? :
99 0 18 if $tf