Branch Coverage

blib/lib/OpenGuides/Feed.pm
Criterion Covered Total %
branch 31 40 77.5


line true false branch
31 0 21 unless ($wiki and UNIVERSAL::isa($wiki, 'Wiki::Toolkit'))
38 0 21 unless ($config and UNIVERSAL::isa($config, 'OpenGuides::Config'))
49 18 18 if defined $version
51 18 18 if defined $version
80 8 0 unless ($url =~ /^http/)
82 6 2 unless ($url =~ /\.cgi\?/)
116 0 12 unless $feed_listing
117 0 12 unless $known_listings{$feed_listing}
121 4 8 if ($feed_listing eq 'node_all_versions')
134 8 4 if ($feed_listing eq 'recent_changes') { }
4 0 elsif ($feed_listing eq 'node_all_versions') { }
191 14 3 if ($$node{'last_modified'})
192 6 8 if (not $newest_node or $$node{'last_modified'} gt $$newest_node{'last_modified'})
204 4 4 if ($is_full) { }
226 6 6 if ($feed_type eq 'rss') { }
6 0 elsif ($feed_type eq 'atom') { }
259 0 26 unless $feed_type
260 0 26 unless $known_types{$feed_type}
268 8 5 unless ($$self{'atom_maker'})
290 8 5 unless ($$self{'rss_maker'})