Classes

Coverage Distribution

Complexity

Methods

Coverage Distribution

Complexity

Insufficient Coverage

Method Coverage
codecFor0%
classify0%
pc2wt0%
filterUserAgent0%
bool2str0%
int2str0%
computeInterwikiMap0%
toXML0%
ppToXML0%
createAndLoadDocument0%
createAndLoadDocumentFragment0%
stripUnnecessaryWrappersAndSyntheticNodes0%
extApiWrapper0%
shiftDSR0%
convertOffsets0%
dumpNode0%
dumpDOM0%
setOptions0%
makeTID0%
splitTID0%
ensureFragmentIndex0%
setUniqueTID0%
popTID0%
flatten0%
defaultValue0%
__construct0%
setExtensionData0%
getExtensionData0%
hasExtensionData0%
removeExtensionData0%
getBag0%
getCodec0%
isPrepared0%
isPreparedAndLoaded0%
storeAndUnprepareDoc0%
stashObjectInDoc0%
eagerlyLoadRichAttributes0%
hasInlineRichAttributes0%
dedupeNodeDataVisitor0%
noAttrs0%
loadFromPageBundle0%
getNodeData0%
setNodeData0%
getDataParsoid0%
setDataParsoid0%
getDataMwVariant0%
getDataMwI18n0%
getDataMwI18nDefault0%
getDataNodeI18n0%
setDataNodeI18n0%
getDataAttrI18n0%
setDataAttrI18n0%
getDataAttrI18nNames0%
getDataParsoidDiff0%
getDataParsoidDiffDefault0%
setDataParsoidDiff0%
getDataMw0%
getDataMwIfExists0%
setDataMw0%
getJSONAttribute0%
setJSONAttribute0%
setShadowInfo0%
setShadowInfoIfModified0%
addNormalizedAttribute0%
usedIdIndex0%
cloneNode0%
cloneElement0%
isHtmlAttributeWithSpecialSemantics0%
nodeDataPropName0%
decodeAttribute0%
getAttributeObjectInternal0%
setAttributeObject0%
setAttributeObjectNodeData0%
removeFromExpandedAttrs0%
setAttributeDom0%
loadRichAttributes0%
storeAttribute0%
dumpRichAttribs0%
__construct0%
__construct0%
callHandlers0%
traverseInternal0%
visitDOM0%
migrateChildren0%
childNodes0%
migrateChildrenBetweenDocs0%
assertElt0%
pathToRoot0%
nodeDepth0%
pathToSibling0%
inSiblingOrder0%
isAncestorOf0%
findAncestorOfName0%
hasNameOrHasAncestorOfName0%
matchNameAndTypeOf0%
hasNameAndTypeOf0%
matchMultivalAttr0%
hasValueInMultivalAttr0%
addValueToMultivalAttr0%
removeValueFromMultivalAttr0%
isFosterablePosition0%
isNestedListOrListItem0%
isMarkerMeta0%
isDocumentFragment0%
atTheTop0%
treeHasElement0%
selectMediaElt0%
findHttpEquivHeaders0%
addHttpEquivHeaders0%
extractInlinedContentVersion0%
addAttributes0%
appendToHead0%
getFragmentInnerHTML0%
setFragmentInnerHTML0%
parseHTMLToFragment0%
stripPWrapper0%
nodeName0%
__construct0%
hasNChildren0%
isContentNode0%
firstNonSepChild0%
lastNonSepChild0%
previousNonSepSibling0%
nextNonSepSibling0%
numNonDeletedChildNodes0%
firstNonDeletedChild0%
lastNonDeletedChild0%
nextNonDeletedSibling0%
previousNonDeletedSibling0%
nodeEssentiallyEmpty0%
__construct0%
observe0%
jsonEncode0%
jsonDecode0%
makeSet0%
lastItem0%
encodeURIComponent0%
sortArray0%
iterable_to_array0%
stripPrefix0%
stripSuffix0%
deprecated0%
filterDeprecationForTest0%
clearDeprecationFilters0%
getCallerDescription0%
formatCallerDescription0%
pFragmentToParsoidFragmentMarkers0%
getDOMFragmentToken0%
processContentInPipeline0%
dumpTplSrc0%
preparePFragment0%
handleAsyncResult0%
processTemplateSource0%
expandAttrValueToDOM0%
expandAttrValuesToDOM0%
domAttrsToTagAttrs0%
convertDOMtoTokens0%
getWrapperTokens0%
tunnelDOMThroughTokens0%
wrapAccum0%
addSpanWrappers0%
parseToHTML0%
fetchFlagsMap0%
getScriptName0%
traceUsageHelp0%
dumpUsageHelp0%
debugUsageHelp0%
setDebuggingFlags0%
setTemplatingAndProcessingFlags0%
booleanOption0%
setColorFlags0%
addStandardOptions0%
__construct0%
millis0%
end0%
start0%
getInterwiki0%
getDBkey0%
getFullText0%
getFullDBKey0%
getNamespaceName0%
equals0%
isSpecialPage0%
fixSpecialName0%
createFragmentTarget0%
newFromLinkTarget0%
__construct0%
__construct0%
tryNew0%
getNamespace0%
getFragment0%
getDBkey0%
createFragmentTarget0%
getInterwiki0%
isWikitextBlockTag0%
isTemplateArgToken0%
isExtensionToken0%
isBehaviorSwitch0%
isSolTransparent0%
isAnnotationMetaToken0%
isAnnotationStartToken0%
isAnnotationEndToken0%
isTranslationUnitMarker0%
matchTypeOf0%
hasTypeOf0%
dedupeAboutIds0%
shiftTokenTSR0%
resetSource0%
stripEOFTkFromTokens0%
convertTokenOffsets0%
collectOffsets0%
newlinesToNlTks0%
hasTemplateToken0%
matchesDomainList0%
stripPHPNamespace0%
isVoidElement0%
cloneArray0%
lastUniChar0%
isUniWord0%
extractExtBody0%
isValidOffset0%
isValidDSR0%
normalizeNamespaceName0%
escapeWt0%
isProtocolValid0%
getExtArgInfo0%
parseMediaDimensions0%
validateMediaParam0%
bcp47ToMwCode0%
mwCodeToBcp470%
isBcp47CodeEqual0%
hasLiteralHTMLMarker0%
isLiteralHTMLNode0%
isZeroWidthWikitextElt0%
isBlockNodeWithVisibleWT0%
isATagFromWikiLinkSyntax0%
isATagFromExtLinkSyntax0%
isATagFromURLLinkSyntax0%
isATagFromMagicLinkSyntax0%
matchTplType0%
hasExpandedAttrsType0%
isTplMarkerMeta0%
isTplStartMarkerMeta0%
isTplEndMarkerMeta0%
isNewElt0%
isIndentPre0%
isInlineMedia0%
isGeneratedFigure0%
indentPreDSRCorrection0%
isEncapsulatedDOMForestRoot0%
isRedirectLink0%
isCategoryLink0%
isSolTransparentLink0%
emitsSolTransparentSingleLineWT0%
isFallbackIdSpan0%
isRenderingTransparentNode0%
inHTMLTableTag0%
serializeChildTableTagAsHTML0%
isFirstEncapsulationWrapperNode0%
isFirstExtensionWrapperNode0%
isExtensionOutputtingCoreMwDomSpec0%
isEncapsulationWrapper0%
isDOMFragmentWrapper0%
isSealedFragmentOfType0%
getDOMFragmentContents0%
isParsoidSectionTag0%
findFirstEncapsulationWrapperNode0%
fromEncapsulatedContentHelper0%
getWTSource0%
getAboutSiblings0%
skipOverEncapsulatedContent0%
getExtTagName0%
getPFragmentHandlerKey0%
getNativeExt0%
isIncludeTag0%
isAnnotationTag0%
isAnnOrExtTag0%
createEmptyLocalizationFragment0%
matchAnnotationMeta0%
extractAnnotationType0%
isAnnotationStartMarkerMeta0%
isAnnotationEndMarkerMeta0%
isMovedMetaTag0%
isMarkerAnnotation0%
getMediaFormat0%
hasVisibleCaption0%
textContentFromCaption0%
counterToBase640%
counterToId0%
idToCounter0%
getRE0%
matches0%
jsonClassCodec0%
jsonClassHintFor0%
decodeDocumentFragment0%
encodeDocumentFragment0%
tokenTrim10%
tokensToString53%
decodedCommentLength58%
processAttributeEmbeddedDom66%
loadDataAttribs75%
getAttributeObject83%
storeInPageBundle84%
parseHTML84%
addHandler85%
getPrefixedDBKey85%
getPrefixedText85%
hasBlockTag87%
storeRichAttributes89%

Project Risks

Method CRAP
shiftTokenTSR702
getWrapperTokens552
classify506
traverseInternal380
loadRichAttributes272
storeAttribute240
dumpRichAttribs240
mwCodeToBcp47182
convertOffsets156
callHandlers156
expandAttrValueToDOM156
shiftDSR132
setDebuggingFlags132
collectOffsets132
tokensToString114
setTemplatingAndProcessingFlags110
tokenTrim99
dedupeNodeDataVisitor90
addSpanWrappers90
isSolTransparent90
dedupeAboutIds90
convertTokenOffsets90
parseMediaDimensions90
stripUnnecessaryWrappersAndSyntheticNodes72
nodeEssentiallyEmpty72
getCallerDescription72
isRenderingTransparentNode72
matchMultivalAttr56
convertDOMtoTokens56
storeRichAttributes44
setShadowInfoIfModified42
removeFromExpandedAttrs42
addValueToMultivalAttr42
treeHasElement42
isValidDSR42
escapeWt42
getAboutSiblings42
textContentFromCaption42
filterUserAgent30
eagerlyLoadRichAttributes30
loadFromPageBundle30
getNodeData30
hasValueInMultivalAttr30
hasNChildren30
tunnelDOMThroughTokens30
end30
isBehaviorSwitch30
lastUniChar30
isATagFromWikiLinkSyntax30
isATagFromExtLinkSyntax30
findFirstEncapsulationWrapperNode30
int2str20
flatten20
defaultValue20
__construct20
noAttrs20
usedIdIndex20
pathToSibling20
removeValueFromMultivalAttr20
addHttpEquivHeaders20
addAttributes20
lastNonSepChild20
previousNonSepSibling20
sortArray20
deprecated20
domAttrsToTagAttrs20
matchTypeOf20
matchesDomainList20
isATagFromURLLinkSyntax20
indentPreDSRCorrection20
isSolTransparentLink20
inHTMLTableTag20
fromEncapsulatedContentHelper20
isAnnotationStartMarkerMeta20
isAnnotationEndMarkerMeta20
isMovedMetaTag20
codecFor12
bool2str12
computeInterwikiMap12
processAttributeEmbeddedDom12
dumpDOM12
ensureFragmentIndex12
setUniqueTID12
hasInlineRichAttributes12
getJSONAttribute12
nodeDataPropName12
setAttributeObjectNodeData12
migrateChildrenBetweenDocs12
inSiblingOrder12
isAncestorOf12
findAncestorOfName12
appendToHead12
isContentNode12
firstNonSepChild12
nextNonSepSibling12
numNonDeletedChildNodes12
firstNonDeletedChild12
lastNonDeletedChild12
nextNonDeletedSibling12
previousNonDeletedSibling12
filterDeprecationForTest12
getDOMFragmentToken12
dumpTplSrc12
processTemplateSource12
fetchFlagsMap12
booleanOption12
addStandardOptions12
equals12
isTranslationUnitMarker12
stripEOFTkFromTokens12
newlinesToNlTks12
cloneArray12
getExtArgInfo12
isATagFromMagicLinkSyntax12
isEncapsulatedDOMForestRoot12
isRedirectLink12
isCategoryLink12
emitsSolTransparentSingleLineWT12
serializeChildTableTagAsHTML12
skipOverEncapsulatedContent12
isIncludeTag12
isAnnotationTag12
isAnnOrExtTag12
extractAnnotationType12
decodeDocumentFragment12
decodedCommentLength8
storeInPageBundle7
ppToXML6
createAndLoadDocument6
createAndLoadDocumentFragment6
makeTID6
setExtensionData6
getExtensionData6
hasExtensionData6
removeExtensionData6
isPreparedAndLoaded6
storeAndUnprepareDoc6
getDataNodeI18n6
getDataAttrI18n6
getDataAttrI18nNames6
setDataParsoidDiff6
setJSONAttribute6
addNormalizedAttribute6
cloneNode6
decodeAttribute6
getAttributeObjectInternal6
visitDOM6
migrateChildren6
childNodes6
nodeDepth6
hasNameOrHasAncestorOfName6
matchNameAndTypeOf6
isFosterablePosition6
isNestedListOrListItem6
isDocumentFragment6
atTheTop6
findHttpEquivHeaders6
extractInlinedContentVersion6
nodeName6
observe6
iterable_to_array6
stripPrefix6
stripSuffix6
pFragmentToParsoidFragmentMarkers6
processContentInPipeline6
preparePFragment6
handleAsyncResult6
expandAttrValuesToDOM6
wrapAccum6
parseToHTML6
setColorFlags6
__construct6
getFullText6
getFullDBKey6
fixSpecialName6
createFragmentTarget6
newFromLinkTarget6
isTemplateArgToken6
isExtensionToken6
isAnnotationStartToken6
isAnnotationEndToken6
hasTemplateToken6
isValidOffset6
isProtocolValid6
validateMediaParam6
bcp47ToMwCode6
hasLiteralHTMLMarker6
isLiteralHTMLNode6
isZeroWidthWikitextElt6
isBlockNodeWithVisibleWT6
isTplStartMarkerMeta6
isTplEndMarkerMeta6
isNewElt6
isIndentPre6
isInlineMedia6
isExtensionOutputtingCoreMwDomSpec6
isEncapsulationWrapper6
getDOMFragmentContents6
isParsoidSectionTag6
getWTSource6
getExtTagName6
getPFragmentHandlerKey6
getNativeExt6
isMarkerAnnotation6
counterToId6
idToCounter6
getRE6
encodeDocumentFragment6
getAttributeObject5
parseHTML5
getPrefixedDBKey4
getPrefixedText4
hasBlockTag4
loadDataAttribs3
addHandler2