Branch Coverage

blib/lib/Catalyst/View/XML/Feed.pm
Criterion Covered Total %
branch 16 64 25.0


line true false branch
48 6 0 if (defined $feed) { }
63 0 1 unless $feed
66 1 0 if (not ref $feed) { }
0 0 elsif ($feed->can('as_xml')) { }
0 0 elsif ($feed->can('as_string')) { }
84 1 6 if (not ref $feed) { }
2 4 elsif (&Scalar::Util::blessed($feed)) { }
92 0 10 if ($feed->isa($module))
98 0 6 unless &Scalar::Util::blessed($feed) or ref $feed eq 'HASH'
104 2 4 defined $feed->{'format'} ? :
0 6 &Scalar::Util::blessed($feed) && $feed->can('format') ? :
106 0 6 if (ref $format) { }
110 0 0 ref $format eq 'ARRAY' ? :
116 5 1 if (scalar @format > 1)
124 0 0 if (&Scalar::Util::blessed($feed)) { }
126 0 0 if ($feed->can($key))
130 0 0 if ($feed->can('entries'))
133 0 0 if (scalar @entries == 1 and ref $entries[0] eq 'ARRAY' and not &Scalar::Util::blessed($entries[0]))
139 0 0 if (exists $feed->{$key})
144 0 0 unless (@entries)
145 0 0 exists $feed->{'entries'} ? :
152 0 0 if (&Scalar::Util::blessed($entry)) { }
154 0 0 if ($entry->can($key))
160 0 0 if (exists $entry->{$key})
176 1 0 if (not ref $feed) { }
0 0 elsif ($feed->isa('XML::Feed')) { }
0 0 elsif ($feed->isa('XML::RSS')) { }
0 0 elsif ($feed->isa('XML::Atom::SimpleFeed')) { }
0 0 elsif ($feed->isa('XML::Atom::Feed')) { }
0 0 elsif ($feed->isa('XML::Atom::Syndication::Feed')) { }
181 0 0 if ($feed->format and lc($feed->format) =~ /atom/i) { }
0 0 elsif ($feed->format and lc($feed->format) =~ /rss/i) { }