| line |
true |
false |
branch |
|
38
|
9 |
16 |
if (not ref $xml) { } |
|
|
11 |
5 |
elsif (ref $xml eq 'SCALAR') { } |
|
|
1 |
4 |
elsif (&blessed($xml) and $xml->isa('Mojo::DOM')) { } |
|
|
4 |
0 |
elsif (&blessed($xml) and $xml->can('slurp')) { } |
|
40
|
0 |
9 |
unless $rss |
|
56
|
0 |
24 |
unless $rss_str |
|
62
|
4 |
21 |
if (&blessed($xml) and $xml->isa('Mojo::URL')) |
|
64
|
1 |
3 |
if ($cb and ref $cb eq 'CODE') { } |
|
71
|
1 |
0 |
if ($tx->success) |
|
82
|
3 |
0 |
if ($tx->success) { } |
|
87
|
0 |
0 |
$tx->error ? : |
|
92
|
24 |
0 |
$dom ? : |
|
97
|
0 |
25 |
unless $dom->isa('Mojo::DOM') |
|
105
|
20 |
5 |
if (@$res) |
|
120
|
94 |
306 |
if ($p) |
|
122
|
14 |
80 |
if ($k eq 'author' and $p->at('name')) |
|
125
|
17 |
77 |
if ($is_time_field{$k}) |
|
135
|
20 |
55 |
exists $info{$_} ? : |
|
137
|
19 |
6 |
if $htmlUrl |
|
138
|
18 |
7 |
if $description |
|
152
|
19 |
181 |
if ($info{$old} and not $info{$new}) |
|
156
|
20 |
5 |
keys %info ? : |
|
168
|
779 |
1431 |
if ($p) |
|
173
|
5 |
7 |
if $p->tag =~ /\:/ and $k ne 'content\\:encoded' and $k ne 'xhtml\\:body' and $k ne 'dc\\:date' and $k ne 'dc\\:creator' |
|
179
|
22 |
752 |
if ($k eq 'author' and $p->at('name')) |
|
182
|
269 |
505 |
if ($is_time_field{$k}) |
|
192
|
130 |
7 |
if ($l->attr('href')) { } |
|
193
|
122 |
8 |
if (not $l->attr('rel') or $l->attr('rel') eq 'alternate') |
|
198
|
7 |
0 |
if ($l->text =~ /\w+/) |
|
213
|
76 |
54 |
if (@tags) |
|
233
|
126 |
1174 |
if ($h{$old} and not $h{$new}) |
|
239
|
8 |
382 |
if ($h{$fill} and not $h{$required}) |
|
253
|
3 |
10 |
ref $_[-1] eq 'CODE' ? : |
|
259
|
1 |
12 |
unless $tx->success and $tx->res->code == 200 |
|
261
|
0 |
12 |
if ($@) |
|
266
|
3 |
10 |
if ($cb) { } |
|
290
|
2 |
10 |
if ($is_feed{$content_type}) { } |
|
302
|
2 |
129 |
unless $attrs->{'rel'} |
|
304
|
22 |
107 |
$attrs->{'type'} ? : |
|
305
|
8 |
0 |
if ($is_feed{$type} and $rel{'alternate'} || $rel{'service.feed'}) |
|
312
|
374 |
0 |
if $_->attr('href') |
|
320
|
5 |
5 |
unless (@feeds) |
|
323
|
1 |
4 |
if ($self->parse_feed(\$body)) |
|
333
|
0 |
3 |
ref $opml_file ? : |
|
339
|
40 |
922 |
if (not defined $node->{'xmlUrl'}) { } |
|
352
|
0 |
920 |
unless $subscriptions{$rss} |