line |
true |
false |
branch |
80
|
5 |
52 |
if (defined $$self{'_outputFileHandle'}) |
101
|
56 |
1 |
if (defined $$self{'options'}{'output'}) |
112
|
5 |
52 |
if (defined $$self{'options'}{'outputFile'}) |
117
|
0 |
5 |
unless open $$self{'_outputFileHandle'}, '>', $$self{'options'}{'outputFile'} |
142
|
51 |
6 |
if ($$self{'hti__Mode'} == 3) { } |
172
|
24 |
33 |
unless (defined $$self{'options'}{'doGenerateToc'}) |
178
|
51 |
6 |
if ($$self{'options'}{'doGenerateToc'}) { } |
209
|
38 |
6 |
if ($$self{'options'}{'doGenerateToc'}) { } |
238
|
0 |
13 |
ref($aFile) =~ /ARRAY/ ? : |
242
|
13 |
0 |
if ($$self{'options'}{'doGenerateToc'}) { } |
269
|
64 |
0 |
if (length $$toc{'options'}{'insertionPoint'}) { } |
275
|
3 |
48 |
if ($tipPreposition ne 'replace' and $tipPreposition ne 'before' and $tipPreposition ne 'after') |
320
|
1243 |
198 |
if ($$self{'_doReleaseElement'} or $aTokenType != 2) { } |
333
|
59 |
45 |
if ($aTokenId =~ /$tipTokenId/ and (HTML::TocGenerator::_doesHashContainHash($aTokenAttributes, $$tipToken[2], 0) and HTML::TocGenerator::_doesHashContainHash($aTokenAttributes, $$tipToken[3], 1))) { } |
357
|
58 |
1185 |
if ($result) |
364
|
0 |
0 |
if return $result |
402
|
4 |
55 |
if ($aTokenType == 2 and length $`) |
409
|
13 |
46 |
if ($tipPreposition eq 'replace') |
420
|
23 |
23 |
if ($tipPreposition eq 'before') |
427
|
1 |
22 |
if ($aTokenType == 2) { } |
437
|
23 |
0 |
if ($tipPreposition eq 'after') |
442
|
1 |
22 |
if ($aTokenType == 2) { } |
456
|
6 |
53 |
if ($aTokenType == 2 and length $') |
476
|
0 |
58 |
if ($outputPrefix = $$self{'_outputPrefix'}) |
483
|
24 |
34 |
if ($$self{'_doOutputInsertionPointToken'}) |
489
|
0 |
58 |
if ($outputSuffix = $$self{'_outputSuffix'}) |
554
|
0 |
57 |
if ($$self{'options'}{'parseToc'}) { } |
566
|
126 |
59 |
if (ref $scene eq 'SCALAR') { } |
599
|
1152 |
250 |
if ($$self{'_doReleaseElement'}) |
601
|
981 |
171 |
if ($$self{'_isTocInsertionPointPassed'}) { } |
623
|
343 |
13 |
if defined $$self{'_output'} |
625
|
139 |
217 |
if $$self{'_doOutputToFile'} |
670
|
173 |
0 |
if ($$self{'_writingAnchorNameBegin'}) |
692
|
17 |
0 |
if ($$self{'hti__Mode'} & 1) |
695
|
6 |
11 |
if (not $self->_processTokenAsInsertionPoint(3, $aComment, undef, $origText)) |
716
|
4 |
0 |
if ($$self{'hti__Mode'} & 1) |
719
|
4 |
0 |
if (not $self->_processTokenAsInsertionPoint(4, $aDeclaration, undef, "")) |
742
|
351 |
0 |
if ($$self{'hti__Mode'} & 1) |
745
|
349 |
2 |
if (not $self->_processTokenAsInsertionPoint(1, $aTag, undef, $aOrigText)) |
815
|
4 |
173 |
if (defined $$aTocToken[9]) { } |
842
|
0 |
0 |
ref($aFile) =~ /ARRAY/ ? : |
870
|
384 |
0 |
if ($$self{'hti__Mode'} & 1) |
873
|
350 |
34 |
if (not $self->_processTokenAsInsertionPoint(0, $aTag, $aAttr, $aTokenOrig)) |
878
|
0 |
350 |
if ($$self{'_doAddAnchorIdToStartTag'}) |
885
|
0 |
0 |
if (defined $$aAttr{'id'}) { } |
901
|
192 |
158 |
if (not $$self{'_isTocToken'}) |
921
|
685 |
0 |
if ($$self{'hti__Mode'} & 1) |
924
|
674 |
11 |
if (not $self->_processTokenAsInsertionPoint(2, $aText, undef, $aText)) |
988
|
0 |
39 |
if (keys %includeAttributes > 0) |
996
|
0 |
39 |
if (keys %excludeAttributes > 0) |
1120
|
6 |
12 |
if (defined $$self{'_lastAddedToken'} and $$self{'_lastAddedTokenType'} == 2) { } |