Global Metrics
path: .metrics.nom.total
old: 4.0
new: 3.0
path: .metrics.nom.functions
old: 1.0
new: 0.0
path: .metrics.halstead.level
old: 0.07311827956989247
new: 0.06868686868686869
path: .metrics.halstead.time
old: 368.5049019607843
new: 400.36764705882354
path: .metrics.halstead.difficulty
old: 13.676470588235292
new: 14.558823529411764
path: .metrics.halstead.volume
old: 485.0
new: 495.0
path: .metrics.halstead.effort
old: 6633.088235294117
new: 7206.617647058823
path: .metrics.halstead.N2
old: 31.0
new: 33.0
path: .metrics.halstead.bugs
old: 0.11767636958616404
new: 0.12436544623606892
path: .metrics.halstead.purity_ratio
old: 1.320517806550346
new: 1.2938406791452886
path: .metrics.halstead.length
old: 97.0
new: 99.0
path: .metrics.cyclomatic.average
old: 1.2
new: 1.25
path: .metrics.cyclomatic.sum
old: 6.0
new: 5.0
path: .metrics.cognitive.average
old: 0.25
new: 0.0
path: .metrics.cognitive.sum
old: 1.0
new: 0.0
path: .metrics.mi.mi_sei
old: 71.67849324369465
new: 71.75538559865373
path: .metrics.mi.mi_visual_studio
old: 40.13848119644765
new: 40.21092205464514
path: .metrics.mi.mi_original
old: 68.63680284592547
new: 68.76067671344319
path: .metrics.loc.lloc
old: 13.0
new: 5.0
Spaces Data
Minimal test - lines (69, 69)
path: .spaces[1].spaces[0].metrics.mi.mi_sei
old: 133.39666920580703
new: 146.54249035246173
path: .spaces[1].spaces[0].metrics.mi.mi_original
old: 144.86478113187096
new: 153.97676999581998
path: .spaces[1].spaces[0].metrics.mi.mi_visual_studio
old: 84.71624627594792
new: 90.04489473439764
path: .spaces[1].spaces[0].metrics.loc.sloc
old: 3.0
new: 1.0
path: .spaces[1].spaces[0].metrics.loc.lloc
old: 2.0
new: 0.0
path: .spaces[1].spaces[0].metrics.loc.ploc
old: 3.0
new: 1.0
path: .spaces[1].spaces[0].metrics.halstead.N2
old: 1.0
new: 4.0
path: .spaces[1].spaces[0].metrics.halstead.difficulty
old: 1.0
new: 1.5
path: .spaces[1].spaces[0].metrics.halstead.estimated_program_length
old: 2.0
new: 12.754887502163468
path: .spaces[1].spaces[0].metrics.halstead.purity_ratio
old: 0.6666666666666666
new: 1.4172097224626077
path: .spaces[1].spaces[0].metrics.halstead.N1
old: 2.0
new: 5.0
path: .spaces[1].spaces[0].metrics.halstead.bugs
old: 0.0009425525573729414
new: 0.003760966563278664
path: .spaces[1].spaces[0].metrics.halstead.n2
old: 1.0
new: 4.0
path: .spaces[1].spaces[0].metrics.halstead.length
old: 3.0
new: 9.0
path: .spaces[1].spaces[0].metrics.halstead.time
old: 0.26416041678685936
new: 2.1055161915432032
path: .spaces[1].spaces[0].metrics.halstead.effort
old: 4.754887502163468
new: 37.89929144777766
path: .spaces[1].spaces[0].metrics.halstead.n1
old: 2.0
new: 3.0
path: .spaces[1].spaces[0].metrics.halstead.volume
old: 4.754887502163468
new: 25.26619429851844
path: .spaces[1].spaces[0].metrics.halstead.vocabulary
old: 3.0
new: 7.0
path: .spaces[1].spaces[0].metrics.halstead.level
old: 1.0
new: 0.6666666666666666
path: .spaces[1].spaces[0].metrics.nom.functions
old: 1.0
new: 0.0
path: .spaces[1].spaces[0].metrics.nom.closures
old: 0.0
new: 1.0
Code
.then(() => assert.sameValue(iterCount, 1, 'iteration occurred as expected'), $DONE)
Minimal test - lines (54, 70)
path: .spaces[1].metrics.halstead.purity_ratio
old: 1.718061297708364
new: 1.333863440874525
path: .spaces[1].metrics.halstead.effort
old: 2500.633930051061
new: 4832.994148308578
path: .spaces[1].metrics.halstead.length
old: 56.0
new: 80.0
path: .spaces[1].metrics.halstead.n2
old: 13.0
new: 15.0
path: .spaces[1].metrics.halstead.vocabulary
old: 26.0
new: 28.0
path: .spaces[1].metrics.halstead.bugs
old: 0.06141090417550736
new: 0.09528464599740624
path: .spaces[1].metrics.halstead.level
old: 0.10526315789473684
new: 0.07957559681697612
path: .spaces[1].metrics.halstead.difficulty
old: 9.5
new: 12.566666666666666
path: .spaces[1].metrics.halstead.time
old: 138.92410722505895
new: 268.4996749060321
path: .spaces[1].metrics.halstead.volume
old: 263.22462421590114
new: 384.5883937646083
path: .spaces[1].metrics.halstead.N1
old: 37.0
new: 51.0
path: .spaces[1].metrics.halstead.estimated_program_length
old: 96.2114326716684
new: 106.70907526996196
path: .spaces[1].metrics.halstead.N2
old: 19.0
new: 29.0
path: .spaces[1].metrics.cognitive.sum
old: 1.0
new: 0.0
path: .spaces[1].metrics.cognitive.average
old: 0.5
new: 0.0
path: .spaces[1].metrics.loc.lloc
old: 10.0
new: 2.0
path: .spaces[1].metrics.loc.ploc
old: 11.0
new: 14.0
path: .spaces[1].metrics.loc.sloc
old: 13.0
new: 17.0
path: .spaces[1].metrics.loc.blank
old: 2.0
new: 3.0
path: .spaces[1].metrics.nom.closures
old: 1.0
new: 2.0
path: .spaces[1].metrics.nom.functions
old: 1.0
new: 0.0
path: .spaces[1].metrics.mi.mi_original
old: 99.77818009806649
new: 93.4606408188322
path: .spaces[1].metrics.mi.mi_sei
old: 68.55409320260706
new: 59.43981061383445
path: .spaces[1].metrics.mi.mi_visual_studio
old: 58.34981292284589
new: 54.65534550808899
Code
async function *fn() {
for await (var { w: { x, y, z } = { x: 4, y: 5, z: 6 } } of asyncIter) {
assert.sameValue(x, 4);
assert.sameValue(y, 5);
assert.sameValue(z, 6);
assert.throws(ReferenceError, function() {
w;
});
iterCount += 1;
}
}
fn().next()
.then(() => assert.sameValue(iterCount, 1, 'iteration occurred as expected'), $DONE)
.then($DONE, $DONE);