Branch Coverage

blib/lib/Mojo/Feed/Reader.pm
Criterion Covered Total %
branch 36 44 81.8


line true false branch
17 0 48 unless $xml
19 8 40 if ($body = $self->_from_string($xml)) { }
32 8 elsif ($file = $self->_from_file($xml)) { }
8 0 elsif ($url = $self->_from_url($xml)) { }
31 0 48 if $charset
32 45 3 $feed->is_valid ? :
37 2 30 ref $xml eq 'SCALAR' ? :
16 32 !ref($xml) ? :
38 8 40 $str =~ /^\s*\
43 0 0 $xml =~ /^https?\:/u ? :
8 0 &blessed($xml) && $xml->isa('Mojo::URL') ? :
52 22 8 &blessed($xml) && $xml->can('slurp') ? :
10 0 -r "$xml" ? :
30 10 ref $xml ? :
74 25 2 if ($tx->res->is_success and $tx->res->code == 200)
76 4 21 if $feed->is_feed_content_type($tx->res->headers->content_type)
78 11 10 if @feeds
80 6 4 if $tx->res->content->charset
81 2 8 if $feed->is_valid
90 3 3 ref $opml_file ? :
98 80 1844 if (not defined $node->{'xmlUrl'}) { }
112 0 1840 unless $subscriptions{$rss}