Branch Coverage

lib/Web/DataService/PodParser.pm
Criterion Covered Total %
branch 0 246 0.0


line true false branch
71 0 0 unless ref $options eq 'HASH' and defined $options->{'target'}
75 0 0 unless $FORMATTER_OPTION{$k}
80 0 0 unless lc $options->{'target'} eq 'html'
103 0 0 if ($wds->{'options'}{'debug'})
118 0 0 if ($wds->{'pending_columns'})
120 0 0 unless ($element_name eq 'over-text')
132 0 0 if ($element_name eq 'Para' and not $wds->{'listlevel'}) { }
0 0 elsif ($element_name eq 'Data') { }
0 0 elsif ($element_name eq 'Verbatim') { }
0 0 elsif ($element_name =~ qr/ ^ head ( \d ) /sx) { }
0 0 elsif ($element_name =~ qr/ ^ over-(bullet|number) $ /sx) { }
0 0 elsif ($element_name =~ qr/ ^ item-(bullet|number) $ /sx) { }
0 0 elsif ($element_name =~ qr/ ^ over-text $ /sx) { }
0 0 elsif ($element_name =~ qr/ ^ item-text $ /six) { }
0 0 elsif ($element_name eq 'Para' and $wds->{'listlevel'}) { }
0 0 elsif ($element_name eq 'L') { }
0 0 elsif ($element_name =~ qr/ ^ ( B | I | F | C | S ) $ /sx) { }
0 0 elsif ($element_name =~ qr/ ^ ( X | Z ) $ /sx) { }
0 0 elsif ($element_name eq 'for') { }
138 0 0 if (defined $wds->{'pending_anchor'})
141 0 0 if $wds->{'pending_anchor'} ne '' and $wds->{'pending_anchor'} ne '!'
164 0 0 if (defined $wds->{'pending_anchor'})
167 0 0 if $wds->{'pending_anchor'} ne '' and $wds->{'pending_anchor'} ne '!'
188 0 0 $1 eq 'bullet' ? :
189 0 0 $wds->{'listlevel'} > 1 ? :
194 0 0 if (defined $wds->{'pending_anchor'})
197 0 0 if $wds->{'pending_anchor'} ne '' and $wds->{'pending_anchor'} ne '!'
212 0 0 $wds->{'listlevel'} > 1 ? :
218 0 0 if ($1 =~ qr/^n/i and defined $attr_hash->{'~orig_content'} and defined $attr_hash->{'number'})
221 0 0 if ($1 ne $attr_hash->{'number'})
229 0 0 if (defined $wds->{'pending_anchor'})
232 0 0 if $wds->{'pending_anchor'} ne '' and $wds->{'pending_anchor'} ne '!'
245 0 0 $wds->{'options'}{'no_tables'} ? :
246 0 0 $wds->{'listlevel'} > 0 ? :
251 0 0 if (defined $wds->{'pending_anchor'})
254 0 0 if $wds->{'pending_anchor'} ne '' and $wds->{'pending_anchor'} ne '!'
269 0 0 if $wds->{'table_no_header'}
271 0 0 if ($wds->{'pending_columns'} and not $wds->{'options'}{'no_tables'})
275 0 0 $wds->{'listlevel'} > 0 ? :
279 0 0 unless $table_def->{'no_header'}
300 0 0 if ($col =~ qr" ^ (.+) / ( \d+ ) $ "sx)
312 0 0 unless (@columns)
326 0 0 if (@columns and $table_def->{'n_subs'})
335 0 0 if ($col =~ qr/ ^ (.*) [*] $ /sx) { }
356 0 0 unless $table_def->{'no_header'}
366 0 0 unless $table_def->{'no_header'}
399 0 0 if ($wds->{'listcol'} > 0)
401 0 0 if ($wds->{'options'}{'no_tables'}) { }
0 0 elsif ($wds->{'listcol'} == 2) { }
423 0 0 $wds->{'listlevel'} > 1 ? :
428 0 0 if ($wds->{'pending_anchor'})
431 0 0 if $wds->{'pending_anchor'} ne '' and $wds->{'pending_anchor'} ne '!'
455 0 0 if ($attr_hash->{'raw'} =~ qr/ ^ (?: [^|]* [|] )? (.*) /sx) { }
477 0 0 if $href and ref $url_gen eq 'CODE'
482 0 0 if $attr_hash->{'content-implicit'}
489 0 0 if $href =~ qr" ^ \w+:// "six
515 0 0 if ($wds->{'body'}[0] =~ qr/<(?:span|strong|em|code) class="pod_(.)">$/s) { }
519 0 0 if ($enclosing eq 'B' and $code eq 'C') { }
0 0 elsif ($enclosing eq 'C' and $code eq 'B') { }
570 0 0 if ($identifier eq 'wds_nav')
601 0 0 if ($wds->{'options'}{'debug'})
616 0 0 if ($element_name eq 'Para') { }
0 0 elsif ($element_name eq 'Verbatim') { }
0 0 elsif ($element_name eq 'Data') { }
0 0 elsif ($element_name =~ qr/ ^ head ( \d ) $ /six) { }
0 0 elsif ($element_name =~ qr/ ^ over-(bullet|number) $ /sx) { }
0 0 elsif ($element_name =~ qr/ ^ item-(bullet|number) $ /sx) { }
0 0 elsif ($element_name eq 'over-text') { }
0 0 elsif ($element_name eq 'item-text') { }
0 0 elsif ($element_name eq 'L') { }
0 0 elsif ($element_name =~ qr/ ^ ( B | I | F | C | S ) $ /sx) { }
0 0 elsif ($element_name =~ qr/ ^ ( X | Z ) $ /sx) { }
0 0 elsif ($element_name eq 'for') { }
653 0 0 if ($wds->{'pending_anchor'}) { }
0 0 elsif ($heading_text ne '' and not $wds->{'in_wds_nav'}) { }
655 0 0 if $wds->{'pending_anchor'} ne '!'
678 0 0 $1 eq 'bullet' ? :
700 0 0 if ($wds->{'options'}{'no_tables'}) { }
702 0 0 if $wds->{'listcol'} > 0
708 0 0 if $wds->{'listcol'} > 0
721 0 0 $wds->{'listlevel'} > 0 ? :
746 0 0 if (ref $table_def->{'columns'} eq 'ARRAY') { }
752 0 0 if ($item_text =~ qr/ (.*) \s+ [(] \s+ ( [^)]+ ) \s+ [)] /sx)
762 0 0 if defined $last and $last ne ''
768 0 0 if ($table_def->{'expect_subheader'}) { }
777 0 0 $wds->{'listlevel'} > 1 ? :
787 0 0 @values ? :
814 0 0 @values ? :
821 0 0 if ($wds->{'pending_anchor'})
823 0 0 if $wds->{'pending_anchor'} ne '!'
831 0 0 if ($col->{'term'}) { }
833 0 0 $wds->{'listlevel'} > 1 ? :
841 0 0 $wds->{'listlevel'} > 1 ? :
855 0 0 $wds->{'listlevel'} > 1 ? :
868 0 0 $wds->{'listlevel'} > 1 ? :
869 0 0 $wds->{'listlevel'} > 1 ? :
874 0 0 if ($wds->{'pending_anchor'})
876 0 0 if $wds->{'pending_anchor'} ne '!'
882 0 0 if ($wds->{'options'}{'no_tables'}) { }
915 0 0 if ($wds->{'no_span'}) { }
950 0 0 if ($identifier eq 'wds_title') { }
0 0 elsif ($identifier eq 'wds_anchor') { }
0 0 elsif ($identifier =~ qr/ ^ wds_table_ (no_)? header $ /sx) { }
0 0 elsif ($identifier eq 'wds_nav') { }
0 0 elsif ($identifier eq 'wds_pod') { }
0 0 elsif ($identifier eq 'html') { }
0 0 elsif ($identifier eq 'comment' or $identifier eq 'wds_comment' or $identifier eq 'wds_node') { }
989 0 0 if $1
1044 0 0 if (lc $body eq 'on') { }
0 0 elsif (lc $body eq 'off') { }
1046 0 0 if ($wds->{'wds_pod_start_line'})
1128 0 0 if ($wds->{'options'}{'debug'})
1136 0 0 if (defined $wds->{'override_text'})
1145 0 0 unless ($wds->{'target'}[0] eq 'html')
1173 0 0 if $wds->{'suppress_output'} and @{$wds->{'body'};} == 1
1238 0 0 if defined $$text_ref
1264 0 0 if (ref $errata eq 'HASH' and %$errata)
1272 0 0 if $message =~ qr/ alternative \s text .* non-escaped \s [|] /sx
1279 0 0 if (@error_lines)
1318 0 0 unless ($header)
1323 0 0 if defined $title and $title ne ''
1326 0 0 if $css
1339 0 0 unless ($footer)