line |
true |
false |
branch |
40
|
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')) { } |
42
|
0 |
9 |
unless $rss |
56
|
0 |
24 |
$charset ? : |
58
|
0 |
24 |
unless $rss_str |
65
|
4 |
21 |
if (&blessed($xml) and $xml->isa('Mojo::URL')) |
67
|
1 |
3 |
if ($cb and ref $cb eq 'CODE') { } |
74
|
1 |
0 |
if ($tx->success) |
86
|
3 |
0 |
if ($tx->success) { } |
92
|
0 |
0 |
$tx->error ? : |
97
|
24 |
0 |
$dom ? : |
102
|
0 |
25 |
unless $dom->isa('Mojo::DOM') |
110
|
20 |
5 |
if (@$res) |
125
|
94 |
306 |
if ($p) |
127
|
14 |
80 |
if ($k eq 'author' and $p->at('name')) |
130
|
17 |
77 |
if ($is_time_field{$k}) |
140
|
20 |
55 |
exists $info{$_} ? : |
142
|
19 |
6 |
if $htmlUrl |
143
|
18 |
7 |
if $description |
157
|
19 |
181 |
if ($info{$old} and not $info{$new}) |
161
|
20 |
5 |
keys %info ? : |
173
|
779 |
1431 |
if ($p) |
178
|
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' |
184
|
22 |
752 |
if ($k eq 'author' and $p->at('name')) |
187
|
269 |
505 |
if ($is_time_field{$k}) |
197
|
130 |
7 |
if ($l->attr('href')) { } |
198
|
122 |
8 |
if (not $l->attr('rel') or $l->attr('rel') eq 'alternate') |
203
|
7 |
0 |
if ($l->text =~ /\w+/) |
218
|
76 |
54 |
if (@tags) |
238
|
126 |
1174 |
if ($h{$old} and not $h{$new}) |
244
|
8 |
382 |
if ($h{$fill} and not $h{$required}) |
258
|
3 |
10 |
ref $_[-1] eq 'CODE' ? : |
264
|
1 |
12 |
unless $tx->success and $tx->res->code == 200 |
266
|
0 |
12 |
if ($@) |
271
|
3 |
10 |
if ($cb) { } |
295
|
2 |
10 |
if ($is_feed{$content_type}) { } |
307
|
2 |
129 |
unless $attrs->{'rel'} |
309
|
22 |
107 |
$attrs->{'type'} ? : |
310
|
8 |
0 |
if ($is_feed{$type} and $rel{'alternate'} || $rel{'service.feed'}) |
317
|
374 |
0 |
if $_->attr('href') |
325
|
5 |
5 |
unless (@feeds) |
328
|
1 |
4 |
if ($self->parse_feed(\$body)) |
338
|
0 |
3 |
ref $opml_file ? : |
344
|
40 |
922 |
if (not defined $node->{'xmlUrl'}) { } |
357
|
0 |
920 |
unless $subscriptions{$rss} |