Classes

Coverage Distribution

Complexity

Insufficient Coverage

Class Coverage
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\DOMPPTraverser0%
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\Processors\WrapSectionsState80%
Wikimedia\Parsoid\Wt2Html\DOM\Processors\ComputeDSR84%

Methods

Coverage Distribution

Complexity

Insufficient Coverage

Method Coverage
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%
addHandler0%
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%
run54%
getDSR54%
run75%
fillDSRGap75%
computeSectionMetadata76%
findEnclosingTemplateName77%
createNewSection78%
computeListEltWidth78%
computeATagWidth80%
resolveTplExtSectionConflicts80%
shouldOmitFromTOC83%
computeNodeDSR83%
addSyntheticTOCMarker83%
collapseWrappers84%
findTOCInsertionPoint84%
run85%
wrapSectionsInDOM88%
findLints88%

Project Risks

Method CRAP
run2652
encapsulateTemplates1332
findTopLevelNonOverlappingRanges1122
findWrappableTemplateRangesRecursive600
doMigrate462
handleSize420
doMigrateTrailingNLs420
getDOMRange342
processRecursively342
run306
replaceAnchor210
makeUneditable210
getVariantTitles182
canMigrateNLOutOfNode156
computeNodeDSR147
removeAutoInsertedEmptyTags132
getRangeEndDSR90
insertTransclusionMetas90
mergeRuns90
pWrapDOM90
run74
run72
parseTimeString56
parseFrag56
addSources56
wrapAnnotationsInTree56
moveFosteredAnnotations56
pWrapOptional56
handleVideo42
handleImage42
moveRangeStart42
moveRangeEnd42
execute42
updateDSRForFirstRangeNode42
findEncapTarget42
removeTransclusionShadows42
hasZeroWidthWT42
split42
unwrapTrailingPWrapOptionalNodes42
wrapSectionsInDOM32
handleAudio30
recordTemplateInfo30
findFirstTemplatedNode30
ensureElementsInRange30
findEnclosingRange30
getTableParent30
isEmptySpan30
getDSR22
addTracks20
handleErrors20
getStartConsideringFosteredContent20
run20
pWrapInsideTag20
processOptionalNode20
run20
addSyntheticTOCMarker17
resolveTplExtSectionConflicts14
createNewSection12
getPath12
isExtended12
stripStartMeta12
findToplevelEnclosingRange12
introducesCycle12
rangesOverlap12
migrateFirstChild12
migrateLastChild12
pWrapOptionalChildren12
processNode12
initialize12
computeATagWidth11
computeSectionMetadata11
findLints11
computeListEltWidth10
collapseWrappers8
findEnclosingTemplateName7
findTOCInsertionPoint7
run6
addNodeRange6
verifyTplInfoExpectation6
execute6
run6
getFosterContentHolder6
updateDepths6
nodeEndsLineInWT6
flatten6
run6
run6
run6
run6
trace5
fillDSRGap4
shouldOmitFromTOC3
run2
run2