Branch Coverage

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


line true false branch
26 7 0 if $@
28 0 0 unless $feed->init_empty(@_)
37 0 17 unless $stream
40 0 17 if (UNIVERSAL::isa($stream, 'URI')) { }
0 17 elsif (ref $stream eq 'SCALAR') { }
0 17 elsif (ref $stream) { }
44 0 0 unless my $res = 'URI::Fetch'->fetch($stream, 'UserAgent', $ua)
46 0 0 if $res->status == 410
56 0 17 unless open my $fh, $stream
63 0 17 unless $xml
66 0 17 if ($specified_format) { }
69 17 0 unless $format = $feed->identify_format(\$xml)
74 0 0 if $@
76 0 0 unless $feed->init_string(\$xml)
87 0 17 if eval { do { $class->identify(\$tmp) } }
88 17 0 if $@
105 0 0 unless $first eq '?' or $first eq '!'
107 0 0 unless $tag
115 0 0 unless my(@feeds) = 'Feed::Find'->find($uri)
126 0 0 unless defined $val
140 0 0 unless $ids{$entry->id}++
149 0 0 if $entry_format eq $feed_format