Condition Coverage

blib/lib/Mojolicious/Plugin/FeedReader.pm
Criterion Covered Total %
condition 60 77 77.9


and 3 conditions

line !l l&&!r l&&r condition
37 0 4 1 &blessed($xml) and $xml->isa('Mojo::DOM')
0 0 4 &blessed($xml) and $xml->can('slurp')
61 16 5 4 &blessed($xml) and $xml->isa('Mojo::URL')
63 3 0 1 $cb and ref $cb eq 'CODE'
121 79 1 14 $k eq 'author' and $p->at('name')
151 180 1 19 $info{$old} and not $info{$new}
172 761 4 14 $p->tag =~ /\:/ and $k ne 'content\\:encoded'
765 2 12 $p->tag =~ /\:/ and $k ne 'content\\:encoded' and $k ne 'xhtml\\:body'
6 3 9 $p->tag =~ /\:/ and $k ne 'content\\:encoded' and $k ne 'xhtml\\:body' and $k ne 'dc\\:date'
5 4 5 $p->tag =~ /\:/ and $k ne 'content\\:encoded' and $k ne 'xhtml\\:body' and $k ne 'dc\\:date' and $k ne 'dc\\:creator'
178 751 1 22 $k eq 'author' and $p->at('name')
232 1034 140 126 $h{$old} and not $h{$new}
238 162 220 8 $h{$fill} and not $h{$required}
258 0 1 12 $tx->success and $tx->res->code == 200
304 121 8 0 $is_feed{$type} and $rel{'alternate'} || $rel{'service.feed'}

or 2 conditions

line l !l condition
352 40 880 $subscriptions{$rss}{'categories'} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
118 20 74 306 $dom->at("channel > $k") || $dom->at("feed > $k")
120 77 15 2 $p->text || $p->content || $p->attr('href')
122 14 0 0 $p->at('name')->text || $p->at('name')->content
177 614 160 0 $p->text || $p->content
192 102 20 8 not $l->attr('rel') or $l->attr('rel') eq 'alternate'
211 42 51 0 $_[0]->text || $_[0]->attr('term')
294 10 0 0 $res->dom->find('head base')->map('attr', 'href')->join('') || $url
296 10 0 0 $res->dom->find('head > title')->map('text')->join('') || $url
304 8 0 0 $rel{'alternate'} || $rel{'service.feed'}
339 26 0 14 $node->{'title'} || $node->{'text'}