Branch Coverage

blib/lib/SVG/Parser/Base.pm
Criterion Covered Total %
branch 22 66 33.3


line true false branch
24 208 0 unless $$self{-'debug'}
29 0 0 if (@msgs) { }
31 0 0 unless defined $_
32 0 0 $first ? :
0 0 $first ? :
55 0 6 unless $source
61 2 4 if (ref $source) { }
64 0 2 if (UNIVERSAL::isa($source, 'IO::Handle')) { }
0 2 elsif (tied $source) { }
70 0 0 if defined &{"${class}::TIEHANDLE";}
75 1 3 if eval { do { *{$source;}{'IO'} } }
79 2 4 if ref $source and $type eq 'string'
90 96 64 if (exists $$attrs{'style'})
105 0 4 if exists $$parser{'__svg_attr'}
128 156 4 if (@$elements) { }
132 0 4 if $type ne 'svg'
153 228 32 if $text =~ /^\s*$/s
157 0 32 if ($$parser{'__in_cdata'}) { }
193 0 0 if (my $parent = $$elements[-1])
206 4 4 if (my $parent = $$elements[-1])
220 4 0 if (my $attlists = $$parser{'__unassigned_attlists'})
241 0 0 $standalone ? :
271 0 0 if defined $base
272 0 0 if defined $sysid
283 0 0 if defined $base
284 0 0 if defined $sysid
285 0 0 if defined $pubid
296 0 0 if (defined $val) { }
0 0 elsif (defined $pubid) { }
310 0 0 if (defined $model) { }
323 0 0 if ($svg->getElementDeclByName($name)) { }
324 0 0 $fixed ? :
328 0 0 $fixed ? :