Home Manual Reference Source Test Repository

Test

Description Identifier Count

require returns object

-

analyze function is exported

-

process function is exported

-

analyzeAsync function is exported

-

processAsync function is exported

-

analyze throws when modules is object

-

analyze does not throw when modules is array

-

analyzeAsync does not throw when modules is array

-

analyze throws when modules is not an array

-

analyze throws when srcPath is missing

-

object was returned

-

modules array exists

-

modules array has zero length

-

adjacency list exists

-

adjacency list has zero length

-

first-order density is correct

-

change cost is correct

-

core size is correct

-

mean per-function logical LOC is correct

-

mean per-function cyclomatic complexity is correct

-

mean per-function Halstead effort is correct

-

mean per-function parameter count is correct

-

mean per-function maintainability index is correct

-

modules is correct length

-

first module methodAggregate has correct physical lines of code

-

first module methodAggregate has correct logical lines of code

-

first module methodAggregate has correct cyclomatic complexity

-

first module methodAggregate has correct cyclomatic complexity density

-

first module methods is empty

-

first module methodAggregate has correct Halstead total operators

-

first module methodAggregate has correct Halstead distinct operators

-

first module methodAggregate has correct Halstead total operands

-

first module methodAggregate has correct Halstead distinct operands

-

first module methodAggregate has correct Halstead operator identifier length

-

first module methodAggregate has correct Halstead operand identifier length

-

first module methodAggregate has correct Halstead length

-

first module methodAggregate has correct Halstead vocabulary

-

first module methodAggregate has correct Halstead difficulty

-

first module methodAggregate has correct Halstead volume

-

first module methodAggregate has correct Halstead effort

-

first module methodAggregate has correct Halstead bugs

-

first module methodAggregate has correct Halstead time

-

first module has correct srcPath

-

first-order density is correct

-

change cost is correct

-

core size is correct

-

mean per-function logical LOC is correct

-

mean per-function cyclomatic complexity is correct

-

mean per-function Halstead effort is correct

-

mean per-function parameter count is correct

-

mean per-function maintainability index is correct

-

modules is correct length

-

first module methodAggregate has correct physical lines of code

-

first module methodAggregate has correct logical lines of code

-

first module methodAggregate has correct cyclomatic complexity

-

first module methodAggregate has correct cyclomatic complexity density

-

first module methods is empty

-

first module methodAggregate has correct Halstead total operators

-

first module methodAggregate has correct Halstead distinct operators

-

first module methodAggregate has correct Halstead total operands

-

first module methodAggregate has correct Halstead distinct operands

-

first module methodAggregate has correct Halstead operator identifier length

-

first module methodAggregate has correct Halstead operand identifier length

-

first module methodAggregate has correct Halstead length

-

first module methodAggregate has correct Halstead vocabulary

-

first module methodAggregate has correct Halstead difficulty

-

first module methodAggregate has correct Halstead volume

-

first module methodAggregate has correct Halstead effort

-

first module methodAggregate has correct Halstead bugs

-

first module methodAggregate has correct Halstead time

-

first module has correct srcPath

-

second module maintainability index is correct

-

second module first method has correct parameter count

-

second module second method has correct parameter count

-

second module methodAggregate has correct parameter count

-

second module mean parameter count is correct

-

second module has correct srcPath

-

first-order density is correct

-

change cost is correct

-

core size is correct

-

mean per-function logical LOC is correct

-

mean per-function cyclomatic complexity is correct

-

mean per-function Halstead effort is correct

-

mean per-function parameter count is correct

-

mean per-function maintainability index is correct

-

should have default values if we call with skipCalculation

-

should have default coreSize and visibilityMatrix if we call with noCoreSize

-

should be able to run process

-

should be able to run process without calculating coreSize

-

should be able to run processAsync

-

modules are in correct order

-

modules only contains object hash w/ filePath, srcPath and srcPathAlias entries

-

modules are in correct order

-

adjacency list is correct

-

visibility list is correct

-

modules are in correct order

-

adjacency list is correct

-

visibility list is correct

-

first order density is correct

-

change cost is correct

-

core size is correct

-

modules are in correct order

-

adjacency list is correct

-

visibility list is correct

-

first order density is correct

-

change cost is correct

-

core size is correct

-

modules are in correct order

-

adjacency list is correct

-

visibility list is correct

-

first order density is correct

-

change cost is correct

-

core size is correct

-

modules are in correct order

-

adjacency list is correct

-

visibility list is correct

-

first order density is correct

-

change cost is correct

-

core size is correct

-

modules are in correct order

-

adjacency list is correct

-

visibility list is correct

-

first order density is correct

-

change cost is correct

-

core size is correct

-

deserialize JSON object should be sufficiently fast

-

running calculations should be sufficiently fast

-

running analyze should be sufficiently fast

-