Branch Coverage

blib/lib/XML/Atom/Feed.pm
Criterion Covered Total %
branch 10 32 31.2


line true false branch
21 6 14 @_ == 1 ? :
22 0 20 if (UNIVERSAL::isa($param{'Stream'}, 'URI'))
24 0 0 unless @feeds
28 0 0 if ($res->is_success)
41 0 0 unless $res->is_success
43 0 0 if ($res->content_type eq 'text/html' or $res->content_type eq 'application/xhtml+xml') { }
47 0 0 if ($tag eq 'link') { }
0 0 elsif ($tag eq 'base') { }
48 0 0 unless $attr->{'rel'}
54 0 0 if $rel{'alternate'} and $type eq 'application/atom+xml'
76 1 18 if (@_)
79 12 7 unless $elem->getAttribute('version')
84 0 7 unless my(@res) = $feed->elem->getElementsByTagNameNS($feed->ns, 'entry')
119 1 4 if ($opt->{'mode'} and $opt->{'mode'} eq 'insert' and $first_entry) { }
131 0 0 $set ? :
132 0 0 if ($opt->{'mode'} and $opt->{'mode'} eq 'insert' and $first_entry) { }