Global Metrics

path: .metrics.loc.lloc
old: 11.0
new: 3.0

path: .metrics.halstead.length
old: 90.0
new: 92.0

path: .metrics.halstead.purity_ratio
old: 1.4232247470598174
new: 1.3922850786454737

path: .metrics.halstead.time
old: 330.8823529411764
new: 360.78431372549016

path: .metrics.halstead.N2
old: 30.0
new: 32.0

path: .metrics.halstead.level
old: 0.07555555555555556
new: 0.07083333333333333

path: .metrics.halstead.volume
old: 450.0
new: 460.0

path: .metrics.halstead.bugs
old: 0.1095240476740766
new: 0.11602694212592451

path: .metrics.halstead.difficulty
old: 13.235294117647058
new: 14.117647058823527

path: .metrics.halstead.effort
old: 5955.882352941176
new: 6494.117647058823

path: .metrics.cognitive.average
old: 0.3333333333333333
new: 0.0

path: .metrics.cognitive.sum
old: 1.0
new: 0.0

path: .metrics.nom.functions
old: 1.0
new: 0.0

path: .metrics.nom.total
old: 3.0
new: 2.0

path: .metrics.mi.mi_sei
old: 74.18691168200232
new: 74.25202561142017

path: .metrics.mi.mi_visual_studio
old: 41.05819049637264
new: 41.12585697886525

path: .metrics.mi.mi_original
old: 70.20950574879721
new: 70.32521543385958

path: .metrics.cyclomatic.average
old: 1.25
new: 1.3333333333333333

path: .metrics.cyclomatic.sum
old: 5.0
new: 4.0

Spaces Data

Minimal test - lines (65, 65)

path: .spaces[0].spaces[0].metrics.mi.mi_sei
old: 133.39666920580703
new: 146.54249035246173

path: .spaces[0].spaces[0].metrics.mi.mi_visual_studio
old: 84.71624627594792
new: 90.04489473439764

path: .spaces[0].spaces[0].metrics.mi.mi_original
old: 144.86478113187096
new: 153.97676999581998

path: .spaces[0].spaces[0].metrics.loc.lloc
old: 2.0
new: 0.0

path: .spaces[0].spaces[0].metrics.loc.sloc
old: 3.0
new: 1.0

path: .spaces[0].spaces[0].metrics.loc.ploc
old: 3.0
new: 1.0

path: .spaces[0].spaces[0].metrics.halstead.level
old: 1.0
new: 0.6666666666666666

path: .spaces[0].spaces[0].metrics.halstead.purity_ratio
old: 0.6666666666666666
new: 1.4172097224626077

path: .spaces[0].spaces[0].metrics.halstead.time
old: 0.26416041678685936
new: 2.1055161915432032

path: .spaces[0].spaces[0].metrics.halstead.vocabulary
old: 3.0
new: 7.0

path: .spaces[0].spaces[0].metrics.halstead.estimated_program_length
old: 2.0
new: 12.754887502163468

path: .spaces[0].spaces[0].metrics.halstead.volume
old: 4.754887502163468
new: 25.26619429851844

path: .spaces[0].spaces[0].metrics.halstead.difficulty
old: 1.0
new: 1.5

path: .spaces[0].spaces[0].metrics.halstead.N1
old: 2.0
new: 5.0

path: .spaces[0].spaces[0].metrics.halstead.bugs
old: 0.0009425525573729414
new: 0.003760966563278664

path: .spaces[0].spaces[0].metrics.halstead.length
old: 3.0
new: 9.0

path: .spaces[0].spaces[0].metrics.halstead.N2
old: 1.0
new: 4.0

path: .spaces[0].spaces[0].metrics.halstead.n1
old: 2.0
new: 3.0

path: .spaces[0].spaces[0].metrics.halstead.n2
old: 1.0
new: 4.0

path: .spaces[0].spaces[0].metrics.halstead.effort
old: 4.754887502163468
new: 37.89929144777766

path: .spaces[0].spaces[0].metrics.nom.closures
old: 0.0
new: 1.0

path: .spaces[0].spaces[0].metrics.nom.functions
old: 1.0
new: 0.0

Code

  .then(() => assert.sameValue(iterCount, 1, 'iteration occurred as expected'), $DONE)

Minimal test - lines (50, 66)

path: .spaces[0].metrics.nom.functions
old: 1.0
new: 0.0

path: .spaces[0].metrics.nom.closures
old: 1.0
new: 2.0

path: .spaces[0].metrics.cognitive.average
old: 0.5
new: 0.0

path: .spaces[0].metrics.cognitive.sum
old: 1.0
new: 0.0

path: .spaces[0].metrics.mi.mi_sei
old: 67.38361130161853
new: 58.57105020711137

path: .spaces[0].metrics.mi.mi_visual_studio
old: 57.87535898742683
new: 54.30319414756138

path: .spaces[0].metrics.mi.mi_original
old: 98.96686386849989
new: 92.85846199232996

path: .spaces[0].metrics.halstead.length
old: 64.0
new: 88.0

path: .spaces[0].metrics.halstead.purity_ratio
old: 1.6657177784002015
new: 1.332988283054619

path: .spaces[0].metrics.halstead.effort
old: 3076.7071501168666
new: 5667.458637927839

path: .spaces[0].metrics.halstead.bugs
old: 0.07051305307207476
new: 0.10595895132833244

path: .spaces[0].metrics.halstead.difficulty
old: 10.0
new: 13.125

path: .spaces[0].metrics.halstead.vocabulary
old: 28.0
new: 30.0

path: .spaces[0].metrics.halstead.N2
old: 20.0
new: 30.0

path: .spaces[0].metrics.halstead.level
old: 0.1
new: 0.0761904761904762

path: .spaces[0].metrics.halstead.n2
old: 14.0
new: 16.0

path: .spaces[0].metrics.halstead.N1
old: 44.0
new: 58.0

path: .spaces[0].metrics.halstead.estimated_program_length
old: 106.60593781761293
new: 117.30296890880646

path: .spaces[0].metrics.halstead.volume
old: 307.67071501168664
new: 431.8063724135496

path: .spaces[0].metrics.halstead.time
old: 170.92817500649258
new: 314.8588132182133

path: .spaces[0].metrics.loc.blank
old: 2.0
new: 3.0

path: .spaces[0].metrics.loc.ploc
old: 11.0
new: 14.0

path: .spaces[0].metrics.loc.lloc
old: 10.0
new: 2.0

path: .spaces[0].metrics.loc.sloc
old: 13.0
new: 17.0

Code

async function *fn() {
  for await (let { w: { x, y, z } = { x: 4, y: 5, z: 6 } } of [{ w: { x: undefined, z: 7 } }]) {
    assert.sameValue(x, undefined);
    assert.sameValue(y, undefined);
    assert.sameValue(z, 7);

    assert.throws(ReferenceError, function() {
      w;
    });

    iterCount += 1;
  }
}

fn().next()
  .then(() => assert.sameValue(iterCount, 1, 'iteration occurred as expected'), $DONE)
  .then($DONE, $DONE);