Branch Coverage

blib/lib/HTML/Toc.pm
Criterion Covered Total %
branch 75 78 96.1


line true false branch
109 230 182 if ($aLevel == $aPreviousLevel and $aGroupLevel == $aPreviousGroupLevel) { }
122 97 85 if ($$self{'options'}{'doNestGroup'} == 0 and $aGroupLevel != $aPreviousGroupLevel) { }
128 91 6 if ($aLevel > $aPreviousLevel)
139 54 31 if ($aLevel > $aPreviousLevel or $aGroupLevel > $aPreviousGroupLevel)
211 412 2 if ($level =~ /$$self{'options'}{'levelToToc'}/ and $groupId =~ /$$self{'options'}{'groupToToc'}/)
224 230 182 if ($compareStatus == 0)
226 86 144 if ($aLevelIndex)
232 66 164 ref $$self{'_templateLevel'} eq 'CODE' ? :
242 145 267 if ($compareStatus > 0)
245 50 95 if ($aGlobalLevel++)
253 36 107 if ($$self{'options'}{'doSingleStepLevel'} and $aPreviousLevel and $level > $aPreviousLevel)
260 1 35 if ($level > $aPreviousLevel + 1)
266 0 1 ref $$self{'_templateLevel'} eq 'CODE' ? :
288 50 95 if (scalar @$aHeaderLines and $level > 1 or $aGlobalLevel)
296 37 230 if ($compareStatus < 0)
322 1 108 defined $$self{'options'}{'numberingStyle'} ? :
328 168 346 unless (defined $$group{'groupId'})
334 25 489 unless (defined $$group{'level'})
340 189 325 unless (defined $$group{'numberingStyle'})
456 77 32 if ($$self{'options'}{'doLinkToToken'})
459 7 67 $$options{'doLinkToFile'} ? :
3 74 defined $$options{'templateAnchorHrefBegin'} ? :
466 0 77 defined $$options{'templateAnchorHrefEnd'} ? :
472 10 67 defined $$options{'templateAnchorName'} ? :
478 3 74 defined $$options{'templateAnchorNameBegin'} ? :
484 1 76 defined $$options{'templateAnchorNameEnd'} ? :
491 10 99 defined $$options{'templateTokenNumber'} ? :
497 4 105 defined $$options{'templateLevel'} ? :
503 13 96 defined $$options{'templateLevelBegin'} ? :
509 0 109 defined $$options{'templateLevelClose'} ? :
515 12 97 defined $$options{'templateLevelEnd'} ? :
521 1 108 defined $$options{'tokenUpdateBeginOfAnchorNameBegin'} ? :
527 1 108 defined $$options{'tokenUpdateEndOfAnchorNameBegin'} ? :
533 1 108 defined $$options{'tokenUpdateBeginOfAnchorNameEnd'} ? :
539 1 108 defined $$options{'tokenUpdateEndOfAnchorNameEnd'} ? :
545 1 108 defined $$options{'tokenUpdateBeginNumber'} ? :
551 1 108 defined $$options{'tokenUpdateEndNumber'} ? :
557 1 108 defined $$options{'tokenUpdateBeginToc'} ? :
563 1 108 defined $$options{'tokenUpdateEndToc'} ? :