lib/Image/Info/SVG/XMLLibXMLReader.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 18 | 24 | 75.0 |
line | true | false | branch |
---|---|---|---|
33 | 0 | 5 | unless my $reader = "XML::LibXML::Reader"->new("IO", $source, "load_ext_dtd", 0, "expand_entities", 0) |
36 | 5 | 1 | if $reader->nodeType == 1 |
41 | 5 | 0 | if ($root_name eq 'svg') { } |
55 | 12 | 152 | if ($type == 8) { } |
36 | 116 | elsif ($type == 1) { } | |
59 | 4 | 32 | if (not $desc and $name eq 'desc') { } |
1 | 31 | elsif ($name eq 'title') { } | |
0 | 31 | elsif ($name eq 'image') { } | |
70 | 1 | 0 | if $title |
73 | 0 | 0 | if $href |
78 | 4 | 1 | $reader->standalone == 1 ? : |
80 | 4 | 1 | if $desc |