Branch Coverage

blib/lib/HTML/RSSAutodiscovery.pm
Criterion Covered Total %
branch 14 82 17.0


line true false branch
61 0 2 unless ($self->init(@_))
126 2 0 if (ref $data ne 'SCALAR')
240 0 1 if (ref $args eq 'HASH')
241 0 0 defined $$args{'noparse'} && $$args{'noparse'} ? :
242 0 0 defined $$args{'embedded'} && $$args{'embedded'} ? :
243 0 0 defined $$args{'syndic8'} && $$args{'syndic8'} ? :
246 1 0 if ($parse)
249 0 1 if ($embedded)
250 0 0 $$args{'embedded_and_remote'} ? :
256 1 0 if ($parse and $embedded || scalar @{$$self{'__links'};} < 1)
259 1 0 if (scalar @{$$self{'__links'};} < 1)
264 1 0 if ($syndic8 or scalar @{$$self{'__links'};} < 1)
279 0 2 unless ($res->is_success)
296 0 0 $$args{'liberal'} ? :
299 0 0 unless (@links)
307 0 0 unless ($uri =~ m[/$])
313 0 0 if ($link =~ /^http/ and $$self{'__check_embedded'} < 2) { }
0 0 elsif ($link =~ /^http/) { }
314 0 0 unless $link =~ /^$uri/
318 0 0 if $link =~ /127.0.0/
325 0 0 if $self->_linked($link)
329 0 0 unless ($data)
336 0 0 if ($@)
341 0 0 unless defined $$rss{'_internal'}{'version'}
364 0 0 unless ($1)
376 0 0 unless $$site{'fetchable'}
377 0 0 unless $$site{'status'} eq 'Syndicated'
379 0 0 if $self->_linked($$site{'dataurl'})
395 0 2 if (ref $$self{'__rss'} eq 'ARRAY')
401 2 0 unless ($$self{'__rss'})
405 2 0 if ($@)
422 1 0 if (ref $$self{'__xmlrpc'} eq 'ARRAY')
428 0 0 if (not $$self{'__xmlrpc'} or $$args{'proxy'} and $$self{'__xmlrpc'}->proxy ne $$args{'proxy'})
433 0 0 if ($@)
452 0 0 if (defined $$self{'__linked'}{$uri})
457 0 0 if ($$_{'href'} eq $uri)
478 4 0 unless ($tag =~ /^(link|a)$/)
485 0 0 if ($$self{'__check_embedded'} and $tag eq 'a')
486 0 0 if ($$attrs{'href'} =~ /(?:\.)?r(?:df|ss)$/i)
495 0 0 if (defined $$attrs{'name'} and $$attrs{'name'} =~ /^(XML|RSS)$/)
500 0 0 if (defined $$attrs{'name'} and $$attrs{'type'} ne 'application/rss+xml' and $$attrs{'type'} ne 'text/xml')