plugin:
|
- |
1 |
Verifies that AbstractSyntaxLoader can find all child / parent inheritance methods
|
- |
1 |
verify child / parent syntax loading
|
- |
|
report:
|
- |
14 |
ModuleReport:
|
- |
12 |
instantiation:
|
- |
1 |
report has correct line start / end
|
- |
|
addDependencies:
|
- |
1 |
report has correct dependencies
|
- |
|
createScope / popScope:
|
- |
7 |
report has correct class scope
|
- |
|
report has correct method scope
|
- |
|
report has correct class w/ method scope
|
- |
|
error thrown for unknown scope type
|
- |
|
scope stacks are not defined
|
- |
|
class scope stack created / finalized
|
- |
|
method scope stack created / finalized
|
- |
|
halsteadItemEncountered:
|
- |
1 |
report has correct class w/ method halstead metrics
|
- |
|
incrementCyclomatic:
|
- |
1 |
report has correct class w/ method cyclomatic metrics
|
- |
|
incrementLogicalSloc:
|
- |
1 |
report has correct class w/ method sloc metrics
|
- |
|
AbstractReport:
|
- |
1 |
report methodAggregate has correct params count
|
- |
|
HalsteadData:
|
- |
1 |
report methodAggregate halstead data is reset
|
- |
|
traits:
|
- |
35 |
actualize:
|
- |
14 |
string arguments:
|
- |
8 |
result was object
|
- |
|
lloc was correct
|
- |
|
cyclomatic was correct
|
- |
|
operators was correct
|
- |
|
operands was correct
|
- |
|
ignoreKeys was correct
|
- |
|
newScope was correct
|
- |
|
dependencies was correct
|
- |
|
array arguments:
|
- |
5 |
lloc was correct
|
- |
|
cyclomatic was correct
|
- |
|
ignoreKeys was correct
|
- |
|
newScope was correct
|
- |
|
dependencies was correct
|
- |
|
no arguments:
|
- |
1 |
ignoreKeys was correct
|
- |
|
TraitUtil:
|
- |
3 |
safeName:
|
- |
3 |
result with no parameters return <anonymous>
|
- |
|
result with null data and default value
|
- |
|
result with object.name
|
- |
|
HalsteadArray:
|
- |
17 |
no identifiers:
|
- |
2 |
result was empty
|
- |
|
result metric is correct
|
- |
|
one identifier:
|
- |
3 |
result contained one item
|
- |
|
result forEach
|
- |
|
first item was correct
|
- |
|
two identifiers:
|
- |
3 |
result contained two items
|
- |
|
first item was correct
|
- |
|
second item was correct
|
- |
|
multiple identifiers / raw TraitHalstead function data (undefined data posts warning!):
|
- |
6 |
result contained two items
|
- |
|
1st item was correct
|
- |
|
2nd item was correct
|
- |
|
3rd item was correct
|
- |
|
4th item was correct
|
- |
|
HalsteadArray valueOf converts raw data to strings
|
- |
|
process report:
|
- |
1 |
report contains correct operator identifiers
|
- |
|
valueOf:
|
- |
2 |
HalsteadArray valueOf contains correct operator identifiers
|
- |
|
HalsteadArray valueOf contains correct operator identifiers w/ function values as strings
|
- |
|
Trait:
|
- |
1 |
with function / params:
|
- |
1 |
result with function / params is correct
|
- |
|
result:
|
- |
7 |
ProjectReport:
|
- |
7 |
instantiation:
|
- |
4 |
result has correct number of reports
|
- |
|
result has correct report srcPath order
|
- |
|
finalize removes private data
|
- |
|
finalize w/ serializeModules === false is correct
|
- |
|
project with errors
|
- |
2 |
getErrors count is correct
|
- |
|
getErrors (only warnings) count is correct
|
- |
|
large project parsing performance
|
- |
1 |
deserialize JSON object should be sufficiently fast
|
- |
|
transform:
|
- |
13 |
TransformFormat:
|
- |
2 |
forEach / formatReport (large-module/module):
|
- |
1 |
src/transform/format.js |
- |
|
forEach / formatReport (large-project/project-no-modules):
|
- |
1 |
src/transform/format.js |
- |
|
ClassReport:
|
- |
2 |
toFormat (large-class/class):
|
- |
1 |
src/transform/format.js |
- |
|
toFormat (large-module/class-with-errors):
|
- |
1 |
src/transform/format.js |
- |
|
MethodReport:
|
- |
4 |
toFormat (large-method/classmethod):
|
- |
1 |
src/transform/format.js |
- |
|
toFormat (large-method/classmethod-with-errors):
|
- |
1 |
src/transform/format.js |
- |
|
toFormat (large-method/modulemethod):
|
- |
1 |
src/transform/format.js |
- |
|
toFormat (large-method/modulemethod-with-errors):
|
- |
1 |
src/transform/format.js |
- |
|
ModuleReport:
|
- |
2 |
toFormat (large-module/module):
|
- |
1 |
src/transform/format.js |
- |
|
toFormat (large-module/module-with-errors):
|
- |
1 |
src/transform/format.js |
- |
|
ProjectReport:
|
- |
3 |
toFormat (large-project/project):
|
- |
1 |
src/transform/format.js |
- |
|
toFormat (large-project/project-no-modules):
|
- |
1 |
src/transform/format.js |
- |
|
toFormat (large-project/project-with-errors):
|
- |
1 |
src/transform/format.js |
- |
|
utils:
|
- |
6 |
StringUtil
|
- |
6 |
compactMatrix:
|
- |
1 |
matrix is compacted
|
- |
|
getMedian:
|
- |
1 |
median is returned
|
- |
|
getPercent:
|
- |
1 |
percent is returned
|
- |
|
toFixed:
|
- |
3 |
correct float rounding
|
- |
|
pass-through of non-float data
|
- |
|
correct JSON stringify results
|
- |
|
utils:
|
- |
3 |
ObjectUtil
|
- |
3 |
getAccessorList:
|
- |
1 |
MethodAverage accessors correct
|
- |
|
safeEqual:
|
- |
2 |
safeEqual matches
|
- |
|
safeEqual does not match
|
- |
|
utils:
|
- |
6 |
StringUtil
|
- |
6 |
compare:
|
- |
1 |
basic test
|
- |
|
incrementIndent:
|
- |
1 |
basic test
|
- |
|
indent:
|
- |
1 |
basic test
|
- |
|
safeStringObject:
|
- |
1 |
output is correct
|
- |
|
safeStringsObject:
|
- |
2 |
output is correct (individual entries)
|
- |
|
output is correct (spread array of entries)
|
- |
|