Branch Coverage

lib/Pod/XML.pm
Criterion Covered Total %
branch 49 86 56.9


line true false branch
125 0 4 if ($$parser{'Encoding'})
131 4 0 if (not $$parser{'send_to_string'})
150 0 4 if ($$parser{'Encoding'})
158 0 0 if $@
167 0 0 if $@
205 7 1 if ($$parser{'in_begin_block'} == 0) { }
1 0 elsif ($command eq 'end') { }
207 6 1 if ($command =~ /^head(\d+)/) { }
0 1 elsif ($command eq 'over') { }
0 1 elsif ($command eq 'back') { }
0 1 elsif ($command eq 'item') { }
1 0 elsif ($command eq 'begin') { }
212 2 4 if $paragraph =~ /^name$/i and $$parser{'this_is_name'} == 0
215 2 4 if ($headlevel <= $$parser{'headlevel'})
236 0 0 if ($$parser{'closeitem'})
246 0 0 if ($$parser{'closeitem'})
256 0 0 if ($$parser{'closeitem'})
264 0 0 if ($paragraph ne '*')
288 0 0 if $$parser{'in_begin_block'}
290 0 0 if ($paragraph =~ s/^(\s*)//)
296 0 0 unless length $paragraph
302 0 0 if ($$parser{'this_is_name'} == 1)
319 1 9 if $$parser{'in_begin_block'}
331 2 7 if ($$parser{'this_is_name'} == 1)
339 0 9 if ($$parser{'headlevel'} == 0)
387 17 0 if defined $1
397 0 31 if ($seq_command eq 'C') { }
0 31 elsif ($seq_command eq 'I') { }
0 31 elsif ($seq_command eq 'B') { }
0 31 elsif ($seq_command eq 'S') { }
0 31 elsif ($seq_command eq 'F') { }
0 31 elsif ($seq_command eq 'X') { }
17 14 elsif ($seq_command eq 'L') { }
14 0 elsif ($seq_command eq 'E') { }
441 7 10 if ($seq_argument =~ /^([^|]+)\|(.*)$/)
447 4 13 if ($seq_argument =~ m[^[a-z]+:/]i) { }
8 5 elsif ($seq_argument =~ m[^(.*?)/(.*)$]) { }
2 3 elsif ($seq_argument =~ /^\\?\"(.*)\"$/) { }
457 4 4 if ($ident_or_sect =~ /^\"(.*)\"$/) { }
483 2 12 if ($seq_argument =~ /^(0[0-7]+|[0-9]+)$/)
486 1 1 if $seq_argument =~ /^0/
492 3 11 if ($seq_argument =~ /^0x([0-9A-Fa-f]{2,4})$/) { }
500 1 10 if (exists $HTML_Escapes{$seq_argument})