Global Metrics
path: .metrics.cyclomatic.sum
old: 25.0
new: 13.0
path: .metrics.cyclomatic.average
old: 8.333333333333334
new: 1.625
path: .metrics.cognitive.average
old: 10.0
new: 1.0
path: .metrics.cognitive.sum
old: 20.0
new: 7.0
path: .metrics.loc.ploc
old: 66.0
new: 67.0
path: .metrics.loc.cloc
old: 13.0
new: 4.0
path: .metrics.loc.lloc
old: 23.0
new: 31.0
path: .metrics.loc.blank
old: 6.0
new: 16.0
path: .metrics.loc.sloc
old: 85.0
new: 87.0
path: .metrics.mi.mi_sei
old: 31.80383671904169
new: 23.015373736850904
path: .metrics.mi.mi_original
old: 53.01604574572177
new: 56.20539551332779
path: .metrics.mi.mi_visual_studio
old: 31.0035355238139
new: 32.86865234697531
path: .metrics.nexits.average
old: 3.0
new: 1.0
path: .metrics.nexits.sum
old: 6.0
new: 7.0
path: .metrics.nom.functions
old: 2.0
new: 7.0
path: .metrics.nom.total
old: 2.0
new: 7.0
path: .metrics.halstead.vocabulary
old: 67.0
new: 85.0
path: .metrics.halstead.difficulty
old: 38.42045454545455
new: 18.85606060606061
path: .metrics.halstead.time
old: 4920.195751336072
new: 2067.978116302355
path: .metrics.halstead.estimated_program_length
old: 344.25691620935237
new: 479.6406346330861
path: .metrics.halstead.level
old: 0.026027802425317954
new: 0.05303334672559261
path: .metrics.halstead.N1
old: 233.0
new: 177.0
path: .metrics.halstead.N2
old: 147.0
new: 131.0
path: .metrics.halstead.n2
old: 44.0
new: 66.0
path: .metrics.halstead.volume
old: 2305.1138923739536
new: 1974.092408330412
path: .metrics.halstead.n1
old: 23.0
new: 19.0
path: .metrics.halstead.bugs
old: 0.662290720009873
new: 0.3716131221703835
path: .metrics.halstead.purity_ratio
old: 0.9059392531825062
new: 1.55727478776976
path: .metrics.halstead.length
old: 380.0
new: 308.0
path: .metrics.halstead.effort
old: 88563.52352404929
new: 37223.60609344239
path: .metrics.nargs.sum
old: 8.0
new: 9.0
path: .metrics.nargs.average
old: 4.0
new: 1.2857142857142858
Spaces Data
Minimal test - lines (28, 29)
path: .spaces[1].metrics.cyclomatic.sum
old: 3.0
new: 1.0
path: .spaces[1].metrics.cyclomatic.average
old: 3.0
new: 1.0
path: .spaces[1].metrics.mi.mi_sei
old: 63.14024744480162
new: 121.91392648673693
path: .spaces[1].metrics.mi.mi_original
old: 96.02558817505728
new: 136.90555039105226
path: .spaces[1].metrics.mi.mi_visual_studio
old: 56.15531472225572
new: 80.06172537488436
path: .spaces[1].metrics.nexits.average
old: 1.0
new: 0.0
path: .spaces[1].metrics.nexits.sum
old: 1.0
new: 0.0
path: .spaces[1].metrics.loc.sloc
old: 14.0
new: 2.0
path: .spaces[1].metrics.loc.ploc
old: 14.0
new: 2.0
path: .spaces[1].metrics.loc.lloc
old: 5.0
new: 0.0
path: .spaces[1].metrics.halstead.time
old: 446.72222222222223
new: 16.651978731634912
path: .spaces[1].metrics.halstead.length
old: 86.0
new: 21.0
path: .spaces[1].metrics.halstead.difficulty
old: 18.7
new: 3.857142857142857
path: .spaces[1].metrics.halstead.effort
old: 8041.0
new: 299.73561716942845
path: .spaces[1].metrics.halstead.N2
old: 33.0
new: 9.0
path: .spaces[1].metrics.halstead.estimated_program_length
old: 128.09022723538357
new: 35.161259458730164
path: .spaces[1].metrics.halstead.n2
old: 15.0
new: 7.0
path: .spaces[1].metrics.halstead.level
old: 0.05347593582887701
new: 0.25925925925925924
path: .spaces[1].metrics.halstead.bugs
old: 0.13378850065220746
new: 0.014929238188052526
path: .spaces[1].metrics.halstead.N1
old: 53.0
new: 12.0
path: .spaces[1].metrics.halstead.volume
old: 430.0
new: 77.70923408096293
path: .spaces[1].metrics.halstead.purity_ratio
old: 1.4894212469230648
new: 1.6743456885109602
path: .spaces[1].metrics.halstead.vocabulary
old: 32.0
new: 13.0
path: .spaces[1].metrics.halstead.n1
old: 17.0
new: 6.0
path: .spaces[1].metrics.cognitive.average
old: 3.0
new: 0.0
path: .spaces[1].metrics.cognitive.sum
old: 3.0
new: 0.0
path: .spaces[1].metrics.nargs.sum
old: 5.0
new: 2.0
path: .spaces[1].metrics.nargs.average
old: 5.0
new: 2.0
Code
nsPaper::nsPaper(nsPrinterBase& aPrinter, const mozilla::PaperInfo& aInfo)
: mPrinter(&aPrinter), mInfo(aInfo) {}
Minimal test - lines (25, 26)
path: .spaces[0].metrics.nargs.average
old: 3.0
new: 1.0
path: .spaces[0].metrics.nargs.sum
old: 3.0
new: 1.0
path: .spaces[0].metrics.loc.lloc
old: 18.0
new: 0.0
path: .spaces[0].metrics.loc.ploc
old: 44.0
new: 2.0
path: .spaces[0].metrics.loc.cloc
old: 5.0
new: 0.0
path: .spaces[0].metrics.loc.sloc
old: 49.0
new: 2.0
path: .spaces[0].metrics.cognitive.sum
old: 16.0
new: 0.0
path: .spaces[0].metrics.cognitive.average
old: 16.0
new: 0.0
path: .spaces[0].metrics.halstead.time
old: 2729.59194456045
new: 11.153216668910265
path: .spaces[0].metrics.halstead.N2
old: 108.0
new: 7.0
path: .spaces[0].metrics.halstead.bugs
old: 0.4471558332158796
new: 0.011428621282029669
path: .spaces[0].metrics.halstead.difficulty
old: 31.655172413793103
new: 3.5
path: .spaces[0].metrics.halstead.effort
old: 49132.6550020881
new: 200.75790004038475
path: .spaces[0].metrics.halstead.vocabulary
old: 46.0
new: 12.0
path: .spaces[0].metrics.halstead.length
old: 281.0
new: 16.0
path: .spaces[0].metrics.halstead.estimated_program_length
old: 210.36831715995532
new: 31.019550008653873
path: .spaces[0].metrics.halstead.N1
old: 173.0
new: 9.0
path: .spaces[0].metrics.halstead.level
old: 0.03159041394335512
new: 0.2857142857142857
path: .spaces[0].metrics.halstead.n1
old: 17.0
new: 6.0
path: .spaces[0].metrics.halstead.n2
old: 29.0
new: 6.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 0.7486416980781329
new: 1.938721875540867
path: .spaces[0].metrics.halstead.volume
old: 1552.1209096520206
new: 57.3594000115385
path: .spaces[0].metrics.mi.mi_sei
old: 44.29750489720984
new: 124.191818253432
path: .spaces[0].metrics.mi.mi_visual_studio
old: 38.23166528237657
new: 80.98506704488753
path: .spaces[0].metrics.mi.mi_original
old: 65.37614763286393
new: 138.4844646467577
path: .spaces[0].metrics.nexits.average
old: 5.0
new: 0.0
path: .spaces[0].metrics.nexits.sum
old: 5.0
new: 0.0
path: .spaces[0].metrics.cyclomatic.sum
old: 19.0
new: 1.0
path: .spaces[0].metrics.cyclomatic.average
old: 19.0
new: 1.0
Code
nsPaper::nsPaper(const mozilla::PaperInfo& aInfo)
: mPrinter(nullptr), mInfo(aInfo) {}