Global Metrics

path: .metrics.halstead.level
old: 0.06698564593301436
new: 0.06363636363636364

path: .metrics.halstead.volume
old: 740.0
new: 755.0

path: .metrics.halstead.purity_ratio
old: 0.8803541465092177
new: 0.8628636667772466

path: .metrics.halstead.effort
old: 11047.142857142857
new: 11864.285714285714

path: .metrics.halstead.bugs
old: 0.16534030155936058
new: 0.1733962934948878

path: .metrics.halstead.time
old: 613.7301587301587
new: 659.1269841269841

path: .metrics.halstead.length
old: 148.0
new: 151.0

path: .metrics.halstead.difficulty
old: 14.928571428571429
new: 15.714285714285714

path: .metrics.halstead.N2
old: 57.0
new: 60.0

path: .metrics.nargs.sum
old: 1.0
new: 7.0

path: .metrics.nargs.average
old: 0.14285714285714285
new: 1.0

path: .metrics.mi.mi_visual_studio
old: 36.61080039568781
new: 36.54977622734617

path: .metrics.mi.mi_original
old: 62.604468676626155
new: 62.50011734876195

path: .metrics.mi.mi_sei
old: 62.13663753824573
new: 61.98609039502585

Spaces Data

Minimal test - lines (60, 80)

path: .spaces[1].spaces[0].metrics.halstead.effort
old: 5392.042427453373
new: 5937.665768326631

path: .spaces[1].spaces[0].metrics.halstead.length
old: 108.0
new: 111.0

path: .spaces[1].spaces[0].metrics.halstead.level
old: 0.09523809523809525
new: 0.08888888888888889

path: .spaces[1].spaces[0].metrics.halstead.bugs
old: 0.1024977375277313
new: 0.10930060778644264

path: .spaces[1].spaces[0].metrics.halstead.N2
old: 42.0
new: 45.0

path: .spaces[1].spaces[0].metrics.halstead.volume
old: 513.5278502336546
new: 527.792512740145

path: .spaces[1].spaces[0].metrics.halstead.purity_ratio
old: 0.9591479170272446
new: 0.9332250003508326

path: .spaces[1].spaces[0].metrics.halstead.difficulty
old: 10.5
new: 11.25

path: .spaces[1].spaces[0].metrics.halstead.time
old: 299.5579126362985
new: 329.8703204625906

path: .spaces[1].spaces[0].metrics.nargs.sum
old: 1.0
new: 7.0

path: .spaces[1].spaces[0].metrics.nargs.average
old: 0.2
new: 1.4

path: .spaces[1].spaces[0].metrics.mi.mi_original
old: 88.07395433612893
new: 87.93147967035074

path: .spaces[1].spaces[0].metrics.mi.mi_sei
old: 51.8721044572238
new: 51.66655696345329

path: .spaces[1].spaces[0].metrics.mi.mi_visual_studio
old: 51.50523645387657
new: 51.42191793587763

Code

  static async *method({ s: t = counter(), u: v = counter(), w: x = counter(), y: z = counter() } = { s: null, u: 0, w: false, y: '' }) {
    assert.sameValue(t, null);
    assert.sameValue(v, 0);
    assert.sameValue(x, false);
    assert.sameValue(z, '');
    assert.sameValue(initCount, 0);

    assert.throws(ReferenceError, function() {
      s;
    });
    assert.throws(ReferenceError, function() {
      u;
    });
    assert.throws(ReferenceError, function() {
      w;
    });
    assert.throws(ReferenceError, function() {
      y;
    });
    callCount = callCount + 1;
  }

Minimal test - lines (59, 81)

path: .spaces[1].metrics.nargs.sum
old: 1.0
new: 7.0

path: .spaces[1].metrics.nargs.average
old: 0.2
new: 1.4

path: .spaces[1].metrics.mi.mi_sei
old: 49.44679954052613
new: 49.243112434666614

path: .spaces[1].metrics.mi.mi_visual_studio
old: 50.48086837581904
new: 50.398303964624354

path: .spaces[1].metrics.mi.mi_original
old: 86.32228492265057
new: 86.18109977950763

path: .spaces[1].metrics.halstead.bugs
old: 0.10312946721563664
new: 0.10995608614346514

path: .spaces[1].metrics.halstead.purity_ratio
old: 0.9503483948526829
new: 0.9248926342762716

path: .spaces[1].metrics.halstead.level
old: 0.09523809523809525
new: 0.08888888888888889

path: .spaces[1].metrics.halstead.length
old: 109.0
new: 112.0

path: .spaces[1].metrics.halstead.time
old: 302.33159701256056
new: 332.84212515144276

path: .spaces[1].metrics.halstead.effort
old: 5441.96874622609
new: 5991.15825272597

path: .spaces[1].metrics.halstead.volume
old: 518.282737735818
new: 532.5474002423084

path: .spaces[1].metrics.halstead.difficulty
old: 10.5
new: 11.25

path: .spaces[1].metrics.halstead.N2
old: 42.0
new: 45.0

Code

var C = class {
  static async *method({ s: t = counter(), u: v = counter(), w: x = counter(), y: z = counter() } = { s: null, u: 0, w: false, y: '' }) {
    assert.sameValue(t, null);
    assert.sameValue(v, 0);
    assert.sameValue(x, false);
    assert.sameValue(z, '');
    assert.sameValue(initCount, 0);

    assert.throws(ReferenceError, function() {
      s;
    });
    assert.throws(ReferenceError, function() {
      u;
    });
    assert.throws(ReferenceError, function() {
      w;
    });
    assert.throws(ReferenceError, function() {
      y;
    });
    callCount = callCount + 1;
  }
};