Branch Coverage

blib/lib/XML/Atom/Content.pm
Criterion Covered Total %
branch 45 54 83.3


line true false branch
18 1 46 @_ == 1 ? :
20 12 35 if ($param{'Body'})
23 1 46 if ($param{'Type'})
32 23 25 if (@_) { }
39 5 18 if (not _is_printable($data)) { }
47 4 1 if ($content->version == 0.3)
67 15 3 if (not $@ and $node) { }
69 11 4 if ($content->version == 0.3) { }
81 2 1 if ($content->version == 0.3) { }
84 1 0 $data =~ /^\s*</ ? :
89 25 0 unless (exists $content->{'__body'})
92 20 5 if ($content->version == 0.3) { }
95 0 1 $content->type =~ m[^text/] ? :
1 1 $content->type eq 'text' ? :
1 2 $content->type eq 'html' ? :
0 3 $content->type =~ m[[/\+]xml$] ? :
2 3 $content->type eq 'xhtml' ? :
104 13 12 if ($mode eq 'xml') { }
7 5 elsif ($mode eq 'base64') { }
5 0 elsif ($mode eq 'escaped') { }
107 13 0 if (@children) { }
108 12 1 if (@children == 1 and $children[0]->getLocalName eq 'div')
120 13 0 if ($] >= 5.008)
121 13 0 unless $XML::Atom::ForceUnicode
125 2 5 if ($content->type and $content->type =~ m[^text/]) { }
127 2 0 unless $XML::Atom::ForceUnicode
149 3 20 &Encode::is_utf8($data) ? :