Global Metrics
path: .metrics.nexits.sum
old: 0.0
new: 55.0
path: .metrics.nexits.average
old: null
new: 1.5714285714285714
path: .metrics.nom.functions
old: 0.0
new: 35.0
path: .metrics.nom.total
old: 0.0
new: 35.0
path: .metrics.loc.sloc
old: 85.0
new: 579.0
path: .metrics.loc.cloc
old: 46.0
new: 49.0
path: .metrics.loc.lloc
old: 0.0
new: 182.0
path: .metrics.loc.ploc
old: 30.0
new: 412.0
path: .metrics.loc.blank
old: 9.0
new: 118.0
path: .metrics.cognitive.sum
old: 0.0
new: 34.0
path: .metrics.cognitive.average
old: null
new: 0.9714285714285714
path: .metrics.halstead.n1
old: 6.0
new: 33.0
path: .metrics.halstead.bugs
old: 0.047887424275989576
new: 2.916898608663794
path: .metrics.halstead.effort
old: 1721.924476661767
new: 818585.1881400589
path: .metrics.halstead.length
old: 81.0
new: 1772.0
path: .metrics.halstead.vocabulary
old: 34.0
new: 237.0
path: .metrics.halstead.volume
old: 412.08449014127746
new: 13978.853037047716
path: .metrics.halstead.level
old: 0.2393162393162393
new: 0.017076845806127575
path: .metrics.halstead.n2
old: 28.0
new: 204.0
path: .metrics.halstead.N2
old: 39.0
new: 724.0
path: .metrics.halstead.estimated_program_length
old: 150.11571282193984
new: 1731.6397757010138
path: .metrics.halstead.N1
old: 42.0
new: 1048.0
path: .metrics.halstead.difficulty
old: 4.178571428571429
new: 58.55882352941177
path: .metrics.halstead.time
old: 95.66247092565372
new: 45476.95489666994
path: .metrics.halstead.purity_ratio
old: 1.8532804052091336
new: 0.9772233497184052
path: .metrics.mi.mi_sei
old: 66.96108615501599
new: -45.90447563578884
path: .metrics.mi.mi_visual_studio
old: 39.33255085213069
new: 0.0
path: .metrics.mi.mi_original
old: 67.25866195714347
new: -0.08866517700325005
path: .metrics.nargs.average
old: null
new: 1.8
path: .metrics.nargs.sum
old: 0.0
new: 63.0
path: .metrics.cyclomatic.sum
old: 2.0
new: 80.0
path: .metrics.cyclomatic.average
old: 1.0
new: 2.1621621621621623
Spaces Data
Minimal test - lines (41, 57)
path: .spaces[0].metrics.mi.mi_original
old: null
new: 97.7049361632595
path: .spaces[0].metrics.mi.mi_sei
old: null
new: 65.35939474049894
path: .spaces[0].metrics.mi.mi_visual_studio
old: null
new: 57.137389569157605
path: .spaces[0].metrics.halstead.estimated_program_length
old: null
new: 98.04820237218406
path: .spaces[0].metrics.halstead.difficulty
old: 0.0
new: 2.625
path: .spaces[0].metrics.halstead.purity_ratio
old: null
new: 2.4512050593046015
path: .spaces[0].metrics.halstead.time
old: 0.0
new: 27.089161107019223
path: .spaces[0].metrics.halstead.volume
old: 0.0
new: 185.75424759098897
path: .spaces[0].metrics.halstead.N2
old: 1.0
new: 21.0
path: .spaces[0].metrics.halstead.n2
old: 1.0
new: 20.0
path: .spaces[0].metrics.halstead.effort
old: 0.0
new: 487.6048999263461
path: .spaces[0].metrics.halstead.vocabulary
old: 1.0
new: 25.0
path: .spaces[0].metrics.halstead.bugs
old: 0.0
new: 0.02065019320937327
path: .spaces[0].metrics.halstead.N1
old: 0.0
new: 19.0
path: .spaces[0].metrics.halstead.level
old: null
new: 0.380952380952381
path: .spaces[0].metrics.halstead.length
old: 1.0
new: 40.0
path: .spaces[0].metrics.halstead.n1
old: 0.0
new: 5.0
path: .spaces[0].metrics.loc.sloc
old: 1.0
new: 17.0
path: .spaces[0].metrics.loc.ploc
old: 1.0
new: 16.0
path: .spaces[0].metrics.loc.blank
old: 0.0
new: 1.0
Code
class nsStringInputStream final : public nsIStringInputStream,
public nsISeekableStream,
public nsISupportsCString,
public nsIIPCSerializableInputStream,
public nsICloneableInputStream {
public:
NS_DECL_THREADSAFE_ISUPPORTS
NS_DECL_NSIINPUTSTREAM
NS_DECL_NSISTRINGINPUTSTREAM
NS_DECL_NSISEEKABLESTREAM
NS_DECL_NSITELLABLESTREAM
NS_DECL_NSISUPPORTSPRIMITIVE
NS_DECL_NSISUPPORTSCSTRING
NS_DECL_NSIIPCSERIALIZABLEINPUTSTREAM
NS_DECL_NSICLONEABLEINPUTSTREAM
nsStringInputStream() : mOffset(0), mMon("nsStringInputStream") { Clear(); }