Branch Coverage

blib/lib/FAQ/OMatic/Part.pm
Criterion Covered Total %
branch 0 118 0.0


line true false branch
74 0 0 if ($key eq 'Author')
80 0 0 if ($key eq 'DateOfPart')
87 0 0 if ($key eq 'Lines') { }
0 0 elsif ($key =~ /-Set$/) { }
0 0 elsif ($key ne '') { }
94 0 0 unless (defined $$self{$key})
100 0 0 if ($key eq 'Type' and $value eq 'directory')
118 0 0 unless (defined $_)
123 0 0 if ($key ne 'EndPart' or $value != $partnum)
135 0 0 if ($key =~ /^[a-z]/ or $key eq 'Text') { }
0 0 elsif ($key =~ /-Set$/) { }
151 0 0 unless $text =~ /\n$/
197 0 0 if ($type eq 'monospaced') { }
0 0 elsif ($type eq 'html') { }
225 0 0 if ($showAttributions eq 'default')
226 0 0 if ($$self{'HideAttributions'} or $$item{'AttributionsTogether'}) { }
232 0 0 if ($showAttributions eq 'all')
236 0 0 if ($$self{'LastModifiedSecs'} and FAQ::OMatic::getParam($params, 'showLastModified') eq 'show')
249 0 0 $type eq 'directory' ? :
257 0 0 if (FAQ::OMatic::getParam($params, 'editCmds') ne 'hide' and $item->ordinaryItem)
259 0 0 $item->isCategory ? :
284 0 0 if ($type ne 'directory') { }
0 0 elsif (scalar $self->getChildren == 0) { }
311 0 0 if (scalar @baglist == 1) { }
0 0 elsif (scalar @baglist > 1) { }
391 0 0 if ($type eq 'monospaced') { }
0 0 elsif ($type eq 'html') { }
415 0 0 if ($showAttributions eq 'default')
416 0 0 if ($$self{'HideAttributions'} or $$item{'AttributionsTogether'}) { }
422 0 0 if ($showAttributions eq 'all')
425 0 0 if ($$self{'LastModifiedSecs'} and FAQ::OMatic::getParam($params, 'showLastModified') eq 'show')
450 0 0 if $rows < 15
451 0 0 if $rows > 30
453 0 0 $$params{'_upload'} ? :
465 0 0 if (not $$params{'_upload'}) { }
474 0 0 $$self{'Type'} eq 'monospaced' ? :
500 0 0 if ($$self{'Text'} ne '')
509 0 0 if $$self{'HideAttributions'}
515 0 0 if ($$self{'Type'} eq 'directory') { }
529 0 0 if $$self{'Type'} eq ''
533 0 0 if $$self{'Type'} eq 'monospaced'
541 0 0 if ($url) { }
548 0 0 if $$self{'Type'} eq 'html'
599 0 0 if ($newText =~ /\t/)
612 0 0 if ($value) { }
622 0 0 if ($$self{'Type'} ne 'directory')
687 0 0 if ($$self{'Type'} ne 'directory')
690 0 0 unless (-f "$FAQ::OMatic::Config::itemDir/$filename")
696 0 0 if $dirhash{$filename}
700 0 0 if (defined $$item{'directoryHint'} and $$self{'Text'} =~ /\n\n$headerpattern/) { }
710 0 0 if $id
717 0 0 if ($$self{'Type'} ne 'directory')
735 0 0 if ($splitty[$i] eq 'faqomatic:' . $filename)
768 0 0 if ($key =~ /-Set$/) { }
0 0 elsif (ref $$self{$key}) { }
780 0 0 if $$newpart{'Type'} eq 'directory'
801 0 0 if ($line =~ /^\s/) { }
803 0 0 if (@buffer)
814 0 0 if (@buffer)