Branch Coverage

blib/lib/XML/Atom/Syndication/Writer.pm
Criterion Covered Total %
branch 13 20 65.0


line true false branch
41 14 0 if (defined $_[1])
42 14 0 $_[1] ? :
51 6 26 if ($is_full) { }
66 53 30 if ref $node eq 'XML::Elemental::Characters'
70 21 9 $is_full ? :
77 6 0 if $ans eq 'http://www.w3.org/2000/xmlns/' or $aname eq 'xmlns'
79 0 0 $is_full && $ans ? :
82 30 0 if (@$children) { }
108 0 53 unless defined $str
109 1 52 if (not $nocdata and $str =~ / <[^>]+> ## HTML markup | ## or &(?:(?!(\#([0-9]+)|\#x([0-9a-fA-F]+))).*?); ## something that looks like an HTML entity. /x) { }