Classes

Coverage Distribution

Complexity

Insufficient Coverage

Class Coverage
Wikimedia\Parsoid\Wt2Html\DOM\Handlers\AddAnnotationIds0%
Wikimedia\Parsoid\Wt2Html\DOM\Handlers\DedupeStyles0%
Wikimedia\Parsoid\Wt2Html\DOM\Handlers\DisplaySpace0%
Wikimedia\Parsoid\Wt2Html\DOM\Handlers\HandleLinkNeighbours0%
Wikimedia\Parsoid\Wt2Html\DOM\Handlers\LiFixups0%
Wikimedia\Parsoid\Wt2Html\DOM\Handlers\TableFixups0%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\AddMediaInfo0%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\AddMetaData0%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\AnnotationDOMRangeBuilder0%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\CompoundTemplateInfo0%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\ConvertOffsets0%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\DOMRangeBuilder0%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\DOMRangeInfo0%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\LangConverter0%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\MarkFosteredContent0%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\MigrateTemplateMarkerMetas0%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\MigrateTrailingNLs0%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\Normalize0%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\PWrapState0%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\ProcessEmbeddedDocs0%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\ProcessTreeBuilderFixups0%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\RunExtensionProcessors0%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\Section0%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\UpdateTemplateOutput0%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\WrapAnnotations0%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\WrapSections0%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\WrapTemplates0%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\PWrap3%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\AddRedLinks41%
Wikimedia\Parsoid\Wt2Html\DOM\Handlers\CleanUp41%
Wikimedia\Parsoid\Wt2Html\DOM\Handlers\UnpackDOMFragments59%
Wikimedia\Parsoid\Wt2Html\DOM\Handlers\Headings63%
Wikimedia\Parsoid\Wt2Html\DOM\Handlers\AddLinkAttributes78%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\WrapSectionsState79%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\ComputeDSR83%

Project Risks

Class CRAP
Wikimedia\Parsoid\Wt2Html\DOM\Processors\DOMRangeBuilder30102
Wikimedia\Parsoid\Wt2Html\DOM\Processors\AddMediaInfo18090
Wikimedia\Parsoid\Wt2Html\DOM\Handlers\TableFixups10506
Wikimedia\Parsoid\Wt2Html\DOM\Handlers\HandleLinkNeighbours3080
Wikimedia\Parsoid\Wt2Html\DOM\Processors\AnnotationDOMRangeBuilder2352
Wikimedia\Parsoid\Wt2Html\DOM\Processors\MigrateTrailingNLs2162
Wikimedia\Parsoid\Wt2Html\DOM\Processors\MarkFosteredContent1980
Wikimedia\Parsoid\Wt2Html\DOM\Processors\PWrap1722
Wikimedia\Parsoid\Wt2Html\DOM\Handlers\CleanUp1435
Wikimedia\Parsoid\Wt2Html\DOM\Handlers\LiFixups1260
Wikimedia\Parsoid\Wt2Html\DOM\Processors\MigrateTemplateMarkerMetas1122
Wikimedia\Parsoid\Wt2Html\DOM\Processors\AddMetaData420
Wikimedia\Parsoid\Wt2Html\DOM\Handlers\DisplaySpace380
Wikimedia\Parsoid\Wt2Html\DOM\Processors\WrapSectionsState305
Wikimedia\Parsoid\Wt2Html\DOM\Processors\AddRedLinks291
Wikimedia\Parsoid\Wt2Html\DOM\Processors\ComputeDSR256
Wikimedia\Parsoid\Wt2Html\DOM\Processors\ProcessTreeBuilderFixups156
Wikimedia\Parsoid\Wt2Html\DOM\Processors\PWrapState132
Wikimedia\Parsoid\Wt2Html\DOM\Handlers\UnpackDOMFragments124
Wikimedia\Parsoid\Wt2Html\DOM\Handlers\Headings76
Wikimedia\Parsoid\Wt2Html\DOM\Processors\UpdateTemplateOutput72
Wikimedia\Parsoid\Wt2Html\DOM\Handlers\AddAnnotationIds42
Wikimedia\Parsoid\Wt2Html\DOM\Processors\RunExtensionProcessors30
Wikimedia\Parsoid\Wt2Html\DOM\Handlers\DedupeStyles20
Wikimedia\Parsoid\Wt2Html\DOM\Processors\ProcessEmbeddedDocs20
Wikimedia\Parsoid\Wt2Html\DOM\Handlers\AddLinkAttributes9
Wikimedia\Parsoid\Wt2Html\DOM\Processors\ConvertOffsets6
Wikimedia\Parsoid\Wt2Html\DOM\Processors\LangConverter6
Wikimedia\Parsoid\Wt2Html\DOM\Processors\WrapAnnotations6
Wikimedia\Parsoid\Wt2Html\DOM\Processors\WrapSections6
Wikimedia\Parsoid\Wt2Html\DOM\Processors\WrapTemplates6

Methods

Coverage Distribution

Complexity

Insufficient Coverage

Method Coverage
handler0%
stripMarkerMetas0%
isEmptyNode0%
handleEmptyElements0%
inNativeContent0%
saveDataParsoid0%
dedupe0%
getTextNodeDSRStart0%
insertDisplaySpace0%
omitNode0%
leftHandler0%
rightHandler0%
getLinkPrefix0%
getLinkTrail0%
findAndHandleNeighbour0%
handler0%
processHeadingContent0%
normalizeSectionName0%
getMigrationInfo0%
findLastMigratableNode0%
migrateTrailingSolTransparentLinks0%
isSimpleTemplatedSpan0%
fillDSRGap0%
hoistTransclusionInfo0%
collectAttributishContent0%
reparseTemplatedAttributes0%
combineAttrsWithPreviousCell0%
getReparseType0%
handleTableCellTemplates0%
fixAbouts0%
makeChildrenEncapWrappers0%
handleSize0%
parseTimeString0%
parseFrag0%
addSources0%
addTracks0%
getPath0%
handleAudio0%
handleVideo0%
handleImage0%
makeErr0%
handleErrors0%
copyOverAttribute0%
replaceAnchor0%
run0%
__construct0%
updateBodyClasslist0%
run0%
getVariantTitles0%
__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%
__construct0%
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%
processNode0%
run0%
removeAutoInsertedEmptyTags0%
run0%
initialize0%
run0%
__construct0%
setId0%
setAboutId0%
addNode0%
addSection0%
hasNestedLevel0%
run0%
run0%
run0%
isEmptySpan0%
run0%
trace33%
addSectionInfo40%
markMisnested50%
run54%
getDSR54%
handler69%
run75%
fillDSRGap75%
computeSectionMetadata76%
findEnclosingTemplateName77%
createNewSection78%
finalCleanup78%
computeListEltWidth78%
handler78%
computeATagWidth80%
resolveTplExtSectionConflicts80%
computeNodeDSR83%
shouldOmitFromTOC83%
addSyntheticTOCMarker83%
collapseWrappers84%
findTOCInsertionPoint84%
wrapSectionsInDOM88%
findLints88%
computeTagWidths88%

Project Risks

Method CRAP
run2450
findTopLevelNonOverlappingRanges1122
encapsulateTemplates1122
handler756
handleTableCellTemplates702
getReparseType600
findAndHandleNeighbour506
findWrappableTemplateRangesRecursive506
doMigrate462
migrateTrailingSolTransparentLinks420
handleSize420
doMigrateTrailingNLs420
run342
getDOMRange342
processRecursively342
processHeadingContent240
collectAttributishContent210
replaceAnchor210
makeUneditable210
hoistTransclusionInfo182
getVariantTitles182
canMigrateNLOutOfNode156
computeNodeDSR151
handleEmptyElements132
combineAttrsWithPreviousCell132
removeAutoInsertedEmptyTags132
isEmptyNode110
stripMarkerMetas90
saveDataParsoid90
findLastMigratableNode90
reparseTemplatedAttributes90
getRangeEndDSR90
insertTransclusionMetas90
mergeRuns90
pWrapDOM90
run74
run72
getTextNodeDSRStart56
parseTimeString56
parseFrag56
addSources56
wrapAnnotationsInTree56
moveFosteredAnnotations56
pWrapOptional56
handler42
getMigrationInfo42
handleVideo42
handleImage42
moveRangeStart42
moveRangeEnd42
execute42
findEncapTarget42
removeTransclusionShadows42
hasZeroWidthWT42
split42
unwrapTrailingPWrapOptionalNodes42
handler38
wrapSectionsInDOM32
fixAbouts30
handleAudio30
recordTemplateInfo30
findFirstTemplatedNode30
ensureElementsInRange30
findEnclosingRange30
getTableParent30
isEmptySpan30
finalCleanup29
getDSR22
dedupe20
omitNode20
addTracks20
handleErrors20
updateDSRForFirstRangeNode20
getStartConsideringFosteredContent20
findToplevelEnclosingRange20
run20
pWrapInsideTag20
processOptionalNode20
addSyntheticTOCMarker15
computeTagWidths15
resolveTplExtSectionConflicts14
createNewSection12
inNativeContent12
leftHandler12
rightHandler12
getLinkPrefix12
getLinkTrail12
isSimpleTemplatedSpan12
getPath12
isExtended12
stripStartMeta12
introducesCycle12
rangesOverlap12
migrateFirstChild12
migrateLastChild12
pWrapOptionalChildren12
processNode12
initialize12
computeATagWidth11
computeSectionMetadata11
findLints11
computeListEltWidth10
handler9
collapseWrappers8
findEnclosingTemplateName7
addSectionInfo7
findTOCInsertionPoint7
insertDisplaySpace6
normalizeSectionName6
fillDSRGap6
makeChildrenEncapWrappers6
markMisnested6
run6
addNodeRange6
verifyTplInfoExpectation6
execute6
run6
getFosterContentHolder6
updateDepths6
nodeEndsLineInWT6
flatten6
run6
run6
run6
run6
trace5
fillDSRGap4
shouldOmitFromTOC3
run2