Branch Coverage

blib/lib/XML/Feed.pm
Criterion Covered Total %
branch 11 44 25.0


line true false branch
27 7 0 if $@
29 0 0 unless $feed->init_empty(@_)
38 0 17 unless $stream
41 0 17 if (&blessed($stream) and $stream->isa('URI')) { }
0 17 elsif (ref $stream eq 'SCALAR') { }
0 17 elsif (ref $stream) { }
45 0 0 unless my $res = 'URI::Fetch'->fetch($stream, 'UserAgent', $ua)
47 0 0 if $res->status == 410
57 0 17 unless open my $fh, $stream
64 0 17 unless $xml
67 0 17 if ($specified_format) { }
70 17 0 unless $format = $feed->identify_format(\$xml)
75 0 0 if $@
77 0 0 unless $feed->init_string(\$xml)
88 0 17 if eval { do { $class->identify(\$tmp) } }
89 17 0 if $@
106 0 0 unless $first eq '?' or $first eq '!'
108 0 0 unless $tag
116 0 0 unless my(@feeds) = 'Feed::Find'->find($uri)
127 0 0 unless defined $val
141 0 0 unless $ids{$entry->id}++
150 0 0 if $entry_format eq $feed_format