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
38 0 4 1 &blessed($xml) and $xml->isa('Mojo::DOM')
0 0 4 &blessed($xml) and $xml->can('slurp')
62 16 5 4 &blessed($xml) and $xml->isa('Mojo::URL')
64 3 0 1 $cb and ref $cb eq 'CODE'
122 79 1 14 $k eq 'author' and $p->at('name')
152 180 1 19 $info{$old} and not $info{$new}
173 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'
179 751 1 22 $k eq 'author' and $p->at('name')
233 1034 140 126 $h{$old} and not $h{$new}
239 162 220 8 $h{$fill} and not $h{$required}
259 0 1 12 $tx->success and $tx->res->code == 200
305 121 0 8 $is_feed{$type} and $rel{'alternate'} || $rel{'service.feed'}

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
119 20 74 306 $dom->at("channel > $k") || $dom->at("feed > $k")
121 77 15 2 $p->text || $p->content || $p->attr('href')
123 14 0 0 $p->at('name')->text || $p->at('name')->content
178 634 140 0 $p->text || $p->content
193 102 20 8 not $l->attr('rel') or $l->attr('rel') eq 'alternate'
212 42 51 0 $_[0]->text || $_[0]->attr('term')
295 10 0 0 $res->dom->find('head base')->map('attr', 'href')->join('') || $url
297 10 0 0 $res->dom->find('head > title')->map('text')->join('') || $url
305 8 0 0 $rel{'alternate'} || $rel{'service.feed'}
340 26 14 0 $node->{'title'} || $node->{'text'}