Branch Coverage

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


line true false branch
104 282 419 if (my $p = $self->dom->at("channel > $generic, feed > $generic", %{$self->namespaces;}))
105 22 260 if ($k eq 'author' and $p->at('name'))
109 47 213 if ($k eq 'published')
120 2 0 if (my $p = $self->dom->at("channel > $generic, feed > $generic", %{$self->namespaces;}))
121 0 2 if ($k eq 'author' and $p->at('name'))
124 0 2 if ($k eq 'published')
175 0 40 if ($result->is_error) { }
12 28 elsif ($result->code == 301 or $result->code == 302) { }
185 2 10 if (@{$self->redirects;} > $self->max_redirects)
193 17 11 if ($self->is_feed_content_type($result->headers->content_type)) { }
194 0 17 if $result->content->charset
201 5 6 if ($self->url ne $tx->req->url)
207 5 6 if (@feeds) { }
212 2 3 if @feeds
218 3 3 if $result->content->charset
219 5 1 if ($test->is_valid) { }
224 5 0 if $test->charset
248 6 332 unless $attrs->{'rel'}
250 55 277 $attrs->{'type'} ? :
251 21 0 if ($type and $self->is_feed_content_type($type) and $rel{'alternate'} || $rel{'service.feed'})
261 854 0 if $_->attr('href')
278 2 88 if ($self->$k and $self->$k ne $self->_get_selector($k))