Branch Coverage

blib/lib/BusyBird/Input/Feed.pm
Criterion Covered Total %
branch 34 60 56.6


line true false branch
30 5 0 defined $args{'use_favicon'} ? :
0 5 defined $args{'user_agent'} ? :
2 3 defined $args{'image_max_num'} ? :
41 1 521 unless defined $url_raw
45 0 521 unless $scheme and $authority
49 521 0 if ($path =~ m[^(.*/)]i) { }
59 25 522 if $self->{'image_max_num'} == 0
61 0 522 unless defined $content
67 27 531 unless ($url->scheme)
69 0 27 unless defined $url_head and defined $url_dir
70 21 6 if (substr("$url", 0, 1) eq '/') { }
84 0 0 if (defined $home_url and $home_url =~ m[^https?://]i)
89 0 0 if defined $status->{'busybird'}
90 0 0 if defined $home_url
99 0 0 unless defined $home_url
101 0 0 unless defined $favicon_url
103 0 0 unless $res->is_success
105 0 0 if defined $type and not $type =~ /^image/i
112 45 502 unless defined $timestamp_str
113 0 502 if ($timestamp_str =~ /^\d+$/)
117 457 45 if defined $datetime
125 0 547 unless defined $text
127 546 1 defined $permalink ? :
502 45 $created_at_dt ? :
135 418 129 if (defined $guid) { }
141 502 45 if (defined $created_at_dt and defined $item_id) { }
45 0 elsif (defined $item_id) { }
147 210 337 if (@image_urls)
157 31 0 unless $self->{'use_favicon'}
159 0 0 unless defined $favicon_url