Branch Coverage

blib/lib/Mojo/Feed.pm
Criterion Covered Total %
branch 25 30 83.3


line true false branch
151 0 40 if ($result->is_error) { }
12 28 elsif ($result->code == 301 or $result->code == 302) { }
161 2 10 if (@{$self->redirects;} > $self->max_redirects)
169 17 11 if ($self->is_feed_content_type($result->headers->content_type)) { }
170 0 17 if $result->content->charset
177 5 6 if ($self->url ne $tx->req->url)
183 5 6 if (@feeds) { }
188 2 3 if @feeds
194 3 3 if $result->content->charset
195 5 1 if ($test->is_valid) { }
200 5 0 if $test->charset
224 6 332 unless $attrs->{'rel'}
226 55 277 $attrs->{'type'} ? :
227 21 0 if ($type and $self->is_feed_content_type($type) and $rel{'alternate'} || $rel{'service.feed'})
237 854 0 if $_->attr('href')