Classes

Coverage Distribution

Complexity

Insufficient Coverage

Class Coverage
Wikimedia\Parsoid\Html2Wt\ConstrainedText\AutoURLLinkText0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\TDHandler0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\LIHandler0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\LinkHandler0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\ListHandler0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\MediaHandler0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\PHandler0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\PreHandler0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\QuoteHandler0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\SpanHandler0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\THHandler0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\HeadingHandler0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\TRHandler0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\TableHandler0%
Wikimedia\Parsoid\Html2Wt\DiffUtils0%
Wikimedia\Parsoid\Html2Wt\LanguageVariantHandler0%
Wikimedia\Parsoid\Html2Wt\LinkHandlerUtils0%
Wikimedia\Parsoid\Html2Wt\SelectiveSerializer0%
Wikimedia\Parsoid\Html2Wt\WTSUtils0%
Wikimedia\Parsoid\Html2Wt\WikitextEscapeHandlers0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\JustChildrenHandler0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\ImgHandler0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\HTMLPreHandler0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\BodyHandler0%
Wikimedia\Parsoid\Html2Wt\ConstrainedText\ExtLinkText0%
Wikimedia\Parsoid\Html2Wt\ConstrainedText\LanguageVariantText0%
Wikimedia\Parsoid\Html2Wt\ConstrainedText\MagicLinkText0%
Wikimedia\Parsoid\Html2Wt\ConstrainedText\RegExpConstrainedText0%
Wikimedia\Parsoid\Html2Wt\ConstrainedText\Result0%
Wikimedia\Parsoid\Html2Wt\ConstrainedText\State0%
Wikimedia\Parsoid\Html2Wt\ConstrainedText\WikiLinkText0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\AHandler0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\HRHandler0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\BRHandler0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\CaptionHandler0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\DDHandler0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\DOMHandler0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\DOMHandlerFactory0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\DTHandler0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\EncapsulatedContentHandler0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\FallbackHTMLHandler0%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\FigureHandler0%
Wikimedia\Parsoid\Html2Wt\WikitextSerializer0%
Wikimedia\Parsoid\Html2Wt\DOMNormalizer0%
Wikimedia\Parsoid\Html2Wt\Separators1%
Wikimedia\Parsoid\Html2Wt\DOMDiff30%
Wikimedia\Parsoid\Html2Wt\DOMHandlers\MetaHandler30%
Wikimedia\Parsoid\Html2Wt\SerializerState33%
Wikimedia\Parsoid\Html2Wt\ConstrainedText\ConstrainedText65%

Project Risks

Class CRAP
Wikimedia\Parsoid\Html2Wt\LinkHandlerUtils87912
Wikimedia\Parsoid\Html2Wt\WikitextSerializer80372
Wikimedia\Parsoid\Html2Wt\WikitextEscapeHandlers62750
Wikimedia\Parsoid\Html2Wt\Separators46526
Wikimedia\Parsoid\Html2Wt\DOMNormalizer26159
Wikimedia\Parsoid\Html2Wt\DOMHandlers\DOMHandler5112
Wikimedia\Parsoid\Html2Wt\WTSUtils4970
Wikimedia\Parsoid\Html2Wt\DOMHandlers\PHandler4556
Wikimedia\Parsoid\Html2Wt\DOMDiff4253
Wikimedia\Parsoid\Html2Wt\LanguageVariantHandler4032
Wikimedia\Parsoid\Html2Wt\DOMHandlers\DOMHandlerFactory3192
Wikimedia\Parsoid\Html2Wt\DiffUtils2756
Wikimedia\Parsoid\Html2Wt\DOMHandlers\EncapsulatedContentHandler2550
Wikimedia\Parsoid\Html2Wt\SerializerState2190
Wikimedia\Parsoid\Html2Wt\SelectiveSerializer930
Wikimedia\Parsoid\Html2Wt\DOMHandlers\THHandler650
Wikimedia\Parsoid\Html2Wt\DOMHandlers\TDHandler600
Wikimedia\Parsoid\Html2Wt\DOMHandlers\SpanHandler600
Wikimedia\Parsoid\Html2Wt\DOMHandlers\MetaHandler472
Wikimedia\Parsoid\Html2Wt\DOMHandlers\BRHandler462
Wikimedia\Parsoid\Html2Wt\DOMHandlers\LIHandler380
Wikimedia\Parsoid\Html2Wt\DOMHandlers\DDHandler342
Wikimedia\Parsoid\Html2Wt\DOMHandlers\TableHandler342
Wikimedia\Parsoid\Html2Wt\DOMHandlers\ListHandler306
Wikimedia\Parsoid\Html2Wt\DOMHandlers\PreHandler240
Wikimedia\Parsoid\Html2Wt\ConstrainedText\AutoURLLinkText182
Wikimedia\Parsoid\Html2Wt\DOMHandlers\LinkHandler182
Wikimedia\Parsoid\Html2Wt\ConstrainedText\WikiLinkText156
Wikimedia\Parsoid\Html2Wt\DOMHandlers\DTHandler156
Wikimedia\Parsoid\Html2Wt\DOMHandlers\FallbackHTMLHandler132
Wikimedia\Parsoid\Html2Wt\DOMHandlers\TRHandler132
Wikimedia\Parsoid\Html2Wt\ConstrainedText\ConstrainedText117
Wikimedia\Parsoid\Html2Wt\DOMHandlers\HeadingHandler110
Wikimedia\Parsoid\Html2Wt\ConstrainedText\RegExpConstrainedText90
Wikimedia\Parsoid\Html2Wt\DOMHandlers\QuoteHandler90
Wikimedia\Parsoid\Html2Wt\DOMHandlers\FigureHandler90
Wikimedia\Parsoid\Html2Wt\DOMHandlers\CaptionHandler42
Wikimedia\Parsoid\Html2Wt\DOMHandlers\HTMLPreHandler30
Wikimedia\Parsoid\Html2Wt\DOMHandlers\HRHandler30
Wikimedia\Parsoid\Html2Wt\DOMHandlers\BodyHandler30
Wikimedia\Parsoid\Html2Wt\ConstrainedText\ExtLinkText30
Wikimedia\Parsoid\Html2Wt\ConstrainedText\LanguageVariantText20
Wikimedia\Parsoid\Html2Wt\DOMHandlers\ImgHandler20
Wikimedia\Parsoid\Html2Wt\DOMHandlers\MediaHandler20
Wikimedia\Parsoid\Html2Wt\ConstrainedText\Result12
Wikimedia\Parsoid\Html2Wt\ConstrainedText\MagicLinkText12
Wikimedia\Parsoid\Html2Wt\DOMHandlers\AHandler12
Wikimedia\Parsoid\Html2Wt\DOMHandlers\JustChildrenHandler12

Methods

Coverage Distribution

Complexity

Insufficient Coverage

Method Coverage
__construct0%
getContentString0%
serializeAsWikiLink0%
isSimpleWikiLink0%
isURLLink0%
addColonEscape0%
escapeExtLinkURL0%
getLinkRoundTripData0%
escapeLinkTarget0%
linkHandler0%
normalizeIWP0%
getHref0%
splitLinkContentString0%
handleLanguageVariant0%
maybeDeleteFlag0%
sortedFlags0%
combine0%
serializeAsExtLink0%
figureHandler0%
ser0%
mergeConstraints0%
fetchTrailingTrimmedSpace0%
fetchLeadingTrimmedSpace0%
handleAutoInserted0%
makeSepIndentPreSafe0%
__construct0%
updateSeparatorConstraints0%
debugOut0%
makeSeparator0%
0%
getSepNlConstraints0%
precedingSeparatorTextLen0%
loggableConstraints0%
serializeDOM0%
preprocessDOM0%
wrapTextChildrenOfNode0%
__construct0%
protectLang0%
expandSpArray0%
solWikitextRegexp0%
firstChild0%
stripIfEmpty0%
hoistLinks0%
swap0%
merge0%
addDiffMarks0%
rewriteablePair0%
isInsertedContent0%
swappable0%
stripBRs0%
mergable0%
similar0%
__construct0%
lastChild0%
firstChild0%
after0%
before0%
moveTrailingSpacesOut0%
stripBidiCharsAroundCategories0%
attribsEquals0%
maybeDeletedNode0%
arrayToHash0%
prependTypedMeta0%
setDiffMark0%
addDiffMark0%
onlySubtreeChanged0%
directChildrenChanged0%
isDeletedBlockNode0%
hasInsertedDiffMark0%
moveFormatTagOutsideATag0%
hasDiffMark0%
hasDiffMarkers0%
getDiffMark0%
processNode0%
processSubtree0%
normalizeSiblingPair0%
normalizeNode0%
buildSep0%
solRegexp0%
badSuffix0%
escapeWikitext0%
serializedImageAttrVal0%
getAttributeValueAsShadowInfo0%
getAttributeValue0%
getAttributeKey0%
htmlToWikitext0%
domToWikitext0%
languageVariantHandler0%
serializeHTMLTag0%
linkHandler0%
__construct0%
escapeLinkContent0%
escapeTplArgWT0%
appendStr0%
escapeWikitext0%
escapedText0%
serializedAttrVal0%
serializeHTMLEndTag0%
hasWikitextTokens0%
serializeTextNode0%
serializeDOM0%
stripUnnecessaryQuoteNowikis0%
stripUnnecessaryIndentPreNowikis0%
stripUnnecessaryHeadingNowikis0%
serializeNode0%
serializeNodeInternal0%
emitWikitext0%
serializeText0%
serializeAttributes0%
defaultExtensionHandler0%
serializeExtensionStartTag0%
serializeFromParts0%
serializePart0%
createParamComparator0%
formatStringSubst0%
handleLIHackIfApplicable0%
nowikiWrap0%
textCanParseAsLink0%
getEnv0%
serializeChildrenToString0%
getAttributeShadowInfo0%
getShadowInfo0%
mkEndTagTk0%
mkTagTk0%
getAttributeKVArray0%
hasValidTagWidths0%
isValidSep0%
recoverTrimmedWhitespace0%
nextToDeletedBlockNodeInWT0%
emitSepForNode0%
emitSep0%
pushToCurrLine0%
sepIntroducedSOL0%
flushLine0%
resetCurrLine0%
resetSep0%
commentWT0%
precedingSpaceSuppressesIndentPre0%
tokenizeStr0%
escapedIBSiblingNodeText0%
tdHandler0%
aHandler0%
wikilinkHandler0%
mediaOptionHandler0%
thHandler0%
liHandler0%
isFirstContentNode0%
hasTrailingEscapableQuoteChar0%
traceNodeName0%
hasLeadingEscapableQuoteChar0%
hasBlocksOnLine0%
startsOnANewLine0%
__construct0%
getAttrFromDataMw0%
getMediaFormat0%
origSrcValidInEditedContext0%
handle0%
__construct0%
trWikitextNeeded0%
after0%
firstChild0%
after0%
before0%
handle0%
__construct0%
firstChild0%
before0%
forceSOL0%
handle0%
__construct0%
after0%
before0%
handle0%
__construct0%
lastChild0%
lastChild0%
wtListEOL0%
handle0%
newFromTagHandler0%
__construct0%
firstChild0%
after0%
before0%
handle0%
__construct0%
getDOMHandler0%
emitPlaceholderSrc0%
getListBullets0%
isBuilderInsertedElt0%
getTrailingSpace0%
getLeadingSpace0%
stxInfoValidForTableCell0%
serializeTableTag0%
serializeTableElement0%
maxNLsInTable0%
firstChild0%
__construct0%
before0%
__construct0%
__construct0%
escape0%
__construct0%
fromSelSerImpl0%
__construct0%
fromSelSerImpl0%
fromSelSerImpl0%
__construct0%
__construct0%
matches0%
equals0%
cast0%
__construct0%
escape0%
fromSelSerImpl0%
__construct0%
escape0%
isPbrP0%
debugOut0%
isPbr0%
after0%
before0%
handle0%
__construct0%
handle0%
__construct0%
markNode0%
fromSelSerImpl0%
treeEquals0%
realDataMWEquals0%
dataMWEquals0%
diff0%
__construct0%
debug0%
nextNonTemplateSibling0%
after0%
handle0%
after0%
currWikitextLineHasBlockNode0%
before0%
handle0%
__construct0%
isPPTransition0%
treatAsPPTransition0%
newWikitextLineMightHaveBlockNode0%
after0%
firstChild0%
before0%
handle0%
__construct0%
after0%
before0%
__construct0%
handle0%
after0%
lastChild0%
handleListPrefix0%
after0%
before0%
handle0%
__construct0%
after0%
before0%
handle0%
__construct0%
before0%
__construct0%
handle0%
__construct0%
isRecognizedSpanWrapper0%
handle0%
__construct0%
precedingQuoteEltRequiresEscape0%
handle0%
__construct0%
after0%
before0%
__construct0%
lastChild0%
firstChild0%
handle0%
__construct0%
after0%
before0%
handle0%
after0%
handle0%
before0%
handle0%
__construct0%
handle0%
__construct0%
parentBulletsHaveBeenEmitted0%
isTplListWithoutSharedPrefix0%
handle0%
__construct0%
before0%
before0%
__construct0%
after0%
before0%
handle0%
__construct0%
firstChild0%
after0%
after0%
handle0%
__construct0%
handle0%
__construct0%
handle0%
__construct0%
trace0%
handle40%
emitChunk42%
fromSelSerImpl75%
getOrigSrc80%
doDOMDiff81%

Project Risks

Method CRAP
figureHandler14042
buildSep6642
escapeWikitext2652
serializeAsWikiLink2450
getLinkRoundTripData2352
serializePart1892
hasWikitextTokens1892
newFromTagHandler1640
handleLanguageVariant1640
stripUnnecessaryQuoteNowikis1482
makeSepIndentPreSafe1260
normalizeNode1260
serializeAttributes930
realDataMWEquals930
escapeTplArgWT870
serializeNodeInternal870
makeSeparator702
escapedText600
textCanParseAsLink552
appendStr552
wrapTextChildrenOfNode506
handle462
wtListEOL462
fetchLeadingTrimmedSpace420
origSrcValidInEditedContext420
handle380
treeEquals380
before380
handle380
createParamComparator342
emitSepForNode306
serializeNode306
fetchTrailingTrimmedSpace306
isSimpleWikiLink272
getDOMHandler272
linkHandler272
markNode210
handle210
moveFormatTagOutsideATag182
getListBullets182
processNode182
serializeFromParts182
addDiffMarks182
hoistLinks156
currWikitextLineHasBlockNode156
after156
tdHandler156
serializeDOM156
similar132
serializeAsExtLink132
before132
nextToDeletedBlockNodeInWT132
handle132
handle124
before110
handle110
hasBlocksOnLine110
handle110
stripUnnecessaryIndentPreNowikis110
emitChunk106
serializeHTMLTag90
attribsEquals90
stripBidiCharsAroundCategories90
getAttrFromDataMw90
sortedFlags90
getSepNlConstraints72
serializeText72
updateSeparatorConstraints72
handle72
before72
newWikitextLineMightHaveBlockNode72
getHref56
getContentString56
after56
moveTrailingSpacesOut56
getShadowInfo56
treatAsPPTransition56
getAttributeValue56
serializeHTMLEndTag56
handleListPrefix56
handle56
processSubtree42
after42
precedingSeparatorTextLen42
__construct42
handleLIHackIfApplicable42
rewriteablePair42
liHandler42
fromSelSerImpl42
precedingSpaceSuppressesIndentPre42
isURLLink42
stripIfEmpty42
addDiffMark42
isTplListWithoutSharedPrefix42
isPPTransition42
arrayToHash42
__construct42
doDOMDiff41
addColonEscape30
merge30
before30
splitLinkContentString30
fromSelSerImpl30
before30
getDiffMark30
serializeExtensionStartTag30
serializeDOM30
after30
normalizeSiblingPair30
hasDiffMark30
matches30
escapedIBSiblingNodeText30
getLeadingSpace30
handle30
onlySubtreeChanged30
before30
getTrailingSpace30
traceNodeName30
handleAutoInserted30
fromSelSerImpl27
stripUnnecessaryHeadingNowikis20
after20
handle20
__construct20
before20
20
fromSelSerImpl20
hasTrailingEscapableQuoteChar20
hasLeadingEscapableQuoteChar20
formatStringSubst20
equals20
parentBulletsHaveBeenEmitted20
escape20
combine20
setDiffMark20
expandSpArray20
isInsertedContent20
handle20
before20
after20
handle20
precedingQuoteEltRequiresEscape20
getAttributeKey20
after20
serializeTableElement20
trWikitextNeeded20
stripBRs20
isDeletedBlockNode20
after12
before12
hasValidTagWidths12
maybeDeletedNode12
sepIntroducedSOL12
isPbr12
stxInfoValidForTableCell12
before12
serializeTableTag12
before12
handle12
handle12
defaultExtensionHandler12
fromSelSerImpl12
debugOut12
handle12
handle12
after12
nowikiWrap12
before12
isBuilderInsertedElt12
debugOut12
emitPlaceholderSrc12
escape12
maxNLsInTable12
__construct12
swappable12
firstChild12
nextNonTemplateSibling12
getAttributeValueAsShadowInfo12
serializedImageAttrVal6
startsOnANewLine6
thHandler6
mediaOptionHandler6
serializeTextNode6
escapeLinkContent6
badSuffix6
getAttributeShadowInfo6
firstChild6
firstChild6
handle6
handle6
handle6
handle6
firstChild6
handle6
before6
handle6
__construct6
before6
handle6
handle6
isPbrP6
handle6
fromSelSerImpl6
cast6
handle6
isRecognizedSpanWrapper6
getAttributeKVArray6
loggableConstraints6
serializeChildrenToString6
recoverTrimmedWhitespace6
emitSep6
resetCurrLine6
solRegexp6
solWikitextRegexp6
mergeConstraints6
preprocessDOM6
after6
escapeLinkTarget6
maybeDeleteFlag6
protectLang6
ser6
hasDiffMarkers6
mergable6
__construct6
before6
swap6
getOrigSrc4