Branch Coverage

blib/lib/XML/Atom/Syndication/Content.pm
Criterion Covered Total %
branch 17 34 50.0


line true false branch
15 0 11 @_ == 1 ? :
18 0 11 if ($param{'Body'})
21 0 11 if ($param{'Type'})
34 4 5 if (not defined $type or $type eq 'text' or $type eq 'html') { }
3 2 elsif ($type eq 'xhtml' or $type =~ m[^(text/xml|application/xml|text/xml-external-parsed-entity)$] or $type =~ m[[\+/]xml$]) { }
0 2 elsif ($type =~ m[text/.+]) { }
46 0 9 if (@_) { }
48 0 0 if ($mode eq 'base64') { }
0 0 elsif ($mode eq 'xml') { }
57 0 0 unless (ref $node)
67 0 0 if $@
82 9 0 unless (defined $content->{'__body'})
83 3 6 if ($mode eq 'xml') { }
2 4 elsif ($mode eq 'base64') { }
87 3 0 if (@children) { }
90 3 0 if @children == 1 and $local eq 'div'
100 3 0 if ($] >= 5.008)