Branch Coverage

lib/Image/Info/SVG/XMLLibXMLReader.pm
Criterion Covered Total %
branch 18 24 75.0


line true false branch
32 0 5 unless my $reader = "XML::LibXML::Reader"->new("IO", $source, "load_ext_dtd", 0, "expand_entities", 0)
35 5 1 if $reader->nodeType == 1
40 5 0 if ($root_name eq 'svg') { }
54 12 152 if ($type == 8) { }
36 116 elsif ($type == 1) { }
58 4 32 if (not $desc and $name eq 'desc') { }
1 31 elsif ($name eq 'title') { }
0 31 elsif ($name eq 'image') { }
69 1 0 if $title
72 0 0 if $href
77 4 1 $reader->standalone == 1 ? :
79 4 1 if $desc