MCPcopy Create free account
hub / github.com/KDE/kdevelop / DeclarationTest

Function DeclarationTest

kdevplatform/tests/json/jsondeclarationtests.h:74–83  ·  view source on GitHub ↗

JSON type: int @returns whether the declaration's number of uses matches the given value

Source from the content-addressed store, hash-verified

72///JSON type: int
73///@returns whether the declaration's number of uses matches the given value
74DeclarationTest(useCount)
75{
76 int uses = 0;
77 const auto declarationUses = decl->uses();
78 for (const auto& useRanges : declarationUses) {
79 uses += useRanges.size();
80 }
81
82 return compareValues(uses, value, QStringLiteral("Declaration's use count "));
83}
84///JSON type: string array
85///@returns whether the declaration's ranges match the given value
86DeclarationTest(useRanges)

Callers

nothing calls this directly

Calls 15

compareValuesFunction · 0.85
rangeStrFunction · 0.85
SUCCESSFunction · 0.85
testObjectFunction · 0.85
unAliasedTypeFunction · 0.85
targetTypeFunction · 0.85
joinMethod · 0.80
modifiersMethod · 0.80
isVirtualMethod · 0.80
isAbstractMethod · 0.80
isFinalMethod · 0.80

Tested by

no test coverage detected