Global Metrics

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

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

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

Spaces Data

Minimal test - lines (31, 42)

path: .spaces[0].metrics.cyclomatic.average
old: 2.0
new: 1.5

path: .spaces[0].metrics.cyclomatic.sum
old: 2.0
new: 3.0

path: .spaces[0].metrics.halstead.volume
old: 112.58797503894245
new: 227.43101255050215

path: .spaces[0].metrics.halstead.effort
old: 1013.291775350482
new: 3120.858894443002

path: .spaces[0].metrics.halstead.n2
old: 6.0
new: 9.0

path: .spaces[0].metrics.halstead.N1
old: 18.0
new: 32.0

path: .spaces[0].metrics.halstead.N2
old: 9.0
new: 19.0

path: .spaces[0].metrics.halstead.vocabulary
old: 18.0
new: 22.0

path: .spaces[0].metrics.halstead.bugs
old: 0.033628055616546616
new: 0.07118603994920544

path: .spaces[0].metrics.halstead.time
old: 56.293987519471216
new: 173.3810496912779

path: .spaces[0].metrics.halstead.n1
old: 12.0
new: 13.0

path: .spaces[0].metrics.halstead.difficulty
old: 9.0
new: 13.72222222222222

path: .spaces[0].metrics.halstead.estimated_program_length
old: 58.529325012980806
new: 76.63504134881501

path: .spaces[0].metrics.halstead.length
old: 27.0
new: 51.0

path: .spaces[0].metrics.halstead.level
old: 0.1111111111111111
new: 0.07287449392712551

path: .spaces[0].metrics.halstead.purity_ratio
old: 2.1677527782585484
new: 1.502647869584608

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

path: .spaces[0].metrics.loc.ploc
old: 6.0
new: 10.0

path: .spaces[0].metrics.loc.sloc
old: 6.0
new: 12.0

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

path: .spaces[0].metrics.mi.mi_original
old: 116.9500750332896
new: 101.83490812892217

path: .spaces[0].metrics.mi.mi_visual_studio
old: 68.3918567446138
new: 59.55257785317085

path: .spaces[0].metrics.mi.mi_sei
old: 93.22608100891529
new: 71.52132453317982

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

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

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

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

Code

async function fn() {
  for await ({ y: x = 1 } of [{ y: undefined }]) {
    assert.sameValue(x, 1);
    iterCount += 1;
  }
}

let promise = fn();

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