Classes

Coverage Distribution

Complexity

Insufficient Coverage

Class Coverage
Wikimedia\Parsoid\Wt2Html\PP\Handlers\DedupeStyles0%
Wikimedia\Parsoid\Wt2Html\PP\Handlers\DisplaySpace0%
Wikimedia\Parsoid\Wt2Html\PP\Handlers\HandleLinkNeighbours0%
Wikimedia\Parsoid\Wt2Html\PP\Handlers\LiFixups0%
Wikimedia\Parsoid\Wt2Html\PP\Handlers\TableFixups0%
Wikimedia\Parsoid\Wt2Html\PP\Processors\AddMediaInfo0%
Wikimedia\Parsoid\Wt2Html\PP\Processors\AnnotationDOMRangeBuilder0%
Wikimedia\Parsoid\Wt2Html\PP\Processors\CompoundTemplateInfo0%
Wikimedia\Parsoid\Wt2Html\PP\Processors\ConvertOffsets0%
Wikimedia\Parsoid\Wt2Html\PP\Processors\DOMRangeBuilder0%
Wikimedia\Parsoid\Wt2Html\PP\Processors\I18n0%
Wikimedia\Parsoid\Wt2Html\PP\Processors\LangConverter0%
Wikimedia\Parsoid\Wt2Html\PP\Processors\MarkFosteredContent0%
Wikimedia\Parsoid\Wt2Html\PP\Processors\MigrateTemplateMarkerMetas0%
Wikimedia\Parsoid\Wt2Html\PP\Processors\MigrateTrailingNLs0%
Wikimedia\Parsoid\Wt2Html\PP\Processors\Normalize0%
Wikimedia\Parsoid\Wt2Html\PP\Processors\PWrapState0%
Wikimedia\Parsoid\Wt2Html\PP\Processors\ProcessTreeBuilderFixups0%
Wikimedia\Parsoid\Wt2Html\PP\Processors\Section0%
Wikimedia\Parsoid\Wt2Html\PP\Processors\WrapAnnotations0%
Wikimedia\Parsoid\Wt2Html\PP\Processors\WrapSections0%
Wikimedia\Parsoid\Wt2Html\PP\Processors\WrapTemplates0%
Wikimedia\Parsoid\Wt2Html\PP\Processors\PWrap2%
Wikimedia\Parsoid\Wt2Html\PP\Handlers\Headings41%
Wikimedia\Parsoid\Wt2Html\PP\Handlers\CleanUp45%
Wikimedia\Parsoid\Wt2Html\PP\Handlers\UnpackDOMFragments58%
Wikimedia\Parsoid\Wt2Html\PP\Processors\AddRedLinks66%
Wikimedia\Parsoid\Wt2Html\PP\Processors\AddLinkAttributes80%
Wikimedia\Parsoid\Wt2Html\PP\Processors\WrapSectionsState81%
Wikimedia\Parsoid\Wt2Html\PP\Processors\ComputeDSR84%

Methods

Coverage Distribution

Complexity

Insufficient Coverage

Method Coverage
stripMarkerMetas0%
isEmptyNode0%
handleEmptyElements0%
inNativeContent0%
saveDataParsoid0%
dedupe0%
getTextNodeDSRStart0%
insertDisplaySpace0%
omitNode0%
leftHandler0%
rightHandler0%
getLinkPrefix0%
getLinkTrail0%
findAndHandleNeighbour0%
handler0%
processHeadingContent0%
normalizeSectionName0%
dedupeHeadingIds0%
getMigrationInfo0%
findLastMigratableNode0%
migrateTrailingCategories0%
__construct0%
stripDoubleTDs0%
isSimpleTemplatedSpan0%
fillDSRGap0%
hoistTransclusionInfo0%
collectAttributishContent0%
reparseTemplatedAttributes0%
combineWithPreviousCell0%
getReparseType0%
handleTableCellTemplates0%
fixAbouts0%
makeChildrenEncapWrappers0%
handleSize0%
parseTimeString0%
parseFrag0%
addSources0%
addTracks0%
getPath0%
handleAudio0%
handleVideo0%
handleImage0%
makeErr0%
handleErrors0%
copyOverAttribute0%
replaceAnchor0%
run0%
__construct0%
wrapAnnotationsInTree0%
makeUneditable0%
moveRangeStart0%
moveRangeEnd0%
isExtended0%
setMetaDataMwForRange0%
matchMetaType0%
verifyTplInfoExpectation0%
getRangeId0%
updateDSRForFirstRangeNode0%
execute0%
__construct0%
run0%
__construct0%
updateDSRForFirstRangeNode0%
getRangeEndDSR0%
getRangeId0%
getDOMRange0%
getStartConsideringFosteredContent0%
stripStartMeta0%
findToplevelEnclosingRange0%
recordTemplateInfo0%
introducesCycle0%
rangesOverlap0%
findTopLevelNonOverlappingRanges0%
findFirstTemplatedNode0%
ensureElementsInRange0%
findEncapTarget0%
encapsulateTemplates0%
addNodeRange0%
getNodeRanges0%
findWrappableMetaRanges0%
findWrappableTemplateRangesRecursive0%
matchMetaType0%
verifyTplInfoExpectation0%
execute0%
findEnclosingRange0%
run0%
run0%
createNodeWithAttributes0%
removeTransclusionShadows0%
insertTransclusionMetas0%
moveFosteredAnnotations0%
getFosterContentHolder0%
processRecursively0%
run0%
migrateFirstChild0%
migrateLastChild0%
updateDepths0%
doMigrate0%
run0%
nodeEndsLineInWT0%
getTableParent0%
canMigrateNLOutOfNode0%
hasZeroWidthWT0%
doMigrateTrailingNLs0%
run0%
run0%
flatten0%
pWrapOptionalChildren0%
pWrapOptional0%
isSplittableTag0%
mergeRuns0%
split0%
pWrapDOM0%
pWrapInsideTag0%
reset0%
processOptionalNode0%
unwrapTrailingPWrapOptionalNodes0%
removeAutoInsertedEmptyTags0%
run0%
__construct0%
setId0%
setAboutId0%
addNode0%
addSection0%
hasNestedLevel0%
run0%
run0%
isEmptySpan0%
run0%
trace33%
markMisnested50%
getDSR54%
run66%
handler69%
fillDSRGap75%
createNewSection78%
finalCleanup78%
computeListEltWidth78%
run80%
computeATagWidth80%
findEnclosingTemplateName80%
resolveTplExtSectionConflicts80%
collapseWrappers81%
computeSectionMetadata82%
shouldOmitFromTOC83%
computeNodeDSR83%
addSyntheticTOCMarker83%
findTOCInsertionPoint84%
wrapSectionsInDOM88%
findLints88%

Project Risks

Method CRAP
run2450
findTopLevelNonOverlappingRanges1122
encapsulateTemplates1056
handler756
findAndHandleNeighbour506
findWrappableTemplateRangesRecursive506
doMigrate462
migrateTrailingCategories420
getReparseType420
handleSize420
getDOMRange420
doMigrateTrailingNLs420
handleTableCellTemplates380
processRecursively342
makeUneditable272
processHeadingContent240
collectAttributishContent210
replaceAnchor210
hoistTransclusionInfo182
canMigrateNLOutOfNode156
computeNodeDSR147
isEmptyNode132
removeAutoInsertedEmptyTags132
handleEmptyElements110
stripDoubleTDs110
combineWithPreviousCell110
stripMarkerMetas90
findLastMigratableNode90
getRangeEndDSR90
insertTransclusionMetas90
mergeRuns90
pWrapDOM90
saveDataParsoid72
dedupeHeadingIds72
reparseTemplatedAttributes72
parseTimeString56
parseFrag56
addSources56
wrapAnnotationsInTree56
moveFosteredAnnotations56
pWrapOptional56
getTextNodeDSRStart42
getMigrationInfo42
handleVideo42
handleImage42
moveRangeStart42
moveRangeEnd42
execute42
findEncapTarget42
removeTransclusionShadows42
hasZeroWidthWT42
split42
unwrapTrailingPWrapOptionalNodes42
run39
handler38
wrapSectionsInDOM32
finalCleanup31
dedupe30
fixAbouts30
handleAudio30
recordTemplateInfo30
findFirstTemplatedNode30
ensureElementsInRange30
findEnclosingRange30
getTableParent30
isEmptySpan30
getDSR22
omitNode20
addTracks20
handleErrors20
updateDSRForFirstRangeNode20
getStartConsideringFosteredContent20
pWrapInsideTag20
processOptionalNode20
addSyntheticTOCMarker15
resolveTplExtSectionConflicts14
createNewSection12
inNativeContent12
leftHandler12
rightHandler12
getLinkPrefix12
getLinkTrail12
isSimpleTemplatedSpan12
getPath12
isExtended12
stripStartMeta12
findToplevelEnclosingRange12
introducesCycle12
rangesOverlap12
migrateFirstChild12
migrateLastChild12
run12
pWrapOptionalChildren12
computeATagWidth11
findLints11
computeListEltWidth10
run9
collapseWrappers9
computeSectionMetadata9
findEnclosingTemplateName7
findTOCInsertionPoint7
insertDisplaySpace6
normalizeSectionName6
fillDSRGap6
makeChildrenEncapWrappers6
markMisnested6
makeErr6
run6
addNodeRange6
verifyTplInfoExpectation6
execute6
run6
run6
getFosterContentHolder6
updateDepths6
nodeEndsLineInWT6
flatten6
run6
trace5
fillDSRGap4
shouldOmitFromTOC3