Global Metrics

path: .metrics.cyclomatic.sum
old: 8.0
new: 6.0

path: .metrics.cyclomatic.average
old: 1.0
new: 2.0

path: .metrics.nargs.average
old: 0.5
new: 1.5

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

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

path: .metrics.nexits.sum
old: 3.0
new: 1.0

path: .metrics.loc.lloc
old: 4.0
new: 13.0

path: .metrics.loc.cloc
old: 43.0
new: 16.0

path: .metrics.loc.sloc
old: 84.0
new: 51.0

path: .metrics.loc.blank
old: 10.0
new: 4.0

path: .metrics.mi.mi_visual_studio
old: 37.72029121413031
new: 41.5449119601337

path: .metrics.mi.mi_sei
old: 62.91950070522838
new: 65.54461548790147

path: .metrics.mi.mi_original
old: 64.50169797616283
new: 71.04179945182864

path: .metrics.nom.functions
old: 6.0
new: 2.0

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

path: .metrics.halstead.difficulty
old: 12.8
new: 20.671875

path: .metrics.halstead.N2
old: 40.0
new: 63.0

path: .metrics.halstead.vocabulary
old: 41.0
new: 53.0

path: .metrics.halstead.purity_ratio
old: 1.731696199465078
new: 1.7639067543940836

path: .metrics.halstead.length
old: 104.0
new: 143.0

path: .metrics.halstead.N1
old: 64.0
new: 80.0

path: .metrics.halstead.effort
old: 7131.973228547593
new: 16932.180357474328

path: .metrics.halstead.n1
old: 16.0
new: 21.0

path: .metrics.halstead.volume
old: 557.1854084802807
new: 819.0926250025374

path: .metrics.halstead.bugs
old: 0.12350519189786682
new: 0.2197964476941255

path: .metrics.halstead.estimated_program_length
old: 180.0964047443681
new: 252.23866587835397

path: .metrics.halstead.n2
old: 25.0
new: 32.0

path: .metrics.halstead.level
old: 0.078125
new: 0.04837490551776266

path: .metrics.halstead.time
old: 396.2207349193107
new: 940.6766865263515

Spaces Data

Minimal test - lines (18, 32)

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

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

path: .spaces[0].metrics.nexits.average
old: 0.5
new: 1.0

path: .spaces[0].metrics.nexits.sum
old: 3.0
new: 1.0

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

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

path: .spaces[0].metrics.cyclomatic.average
old: 1.0
new: 4.0

path: .spaces[0].metrics.cyclomatic.sum
old: 7.0
new: 4.0

path: .spaces[0].metrics.mi.mi_visual_studio
old: 39.98431233932763
new: 55.98504862047931

path: .spaces[0].metrics.mi.mi_original
old: 68.37317410025025
new: 95.73443314101962

path: .spaces[0].metrics.mi.mi_sei
old: 68.63686766653657
new: 82.29293649590267

path: .spaces[0].metrics.nargs.average
old: 0.5
new: 1.0

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

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

path: .spaces[0].metrics.halstead.volume
old: 510.52642983163713
new: 350.93690931020507

path: .spaces[0].metrics.halstead.length
old: 98.0
new: 73.0

path: .spaces[0].metrics.halstead.level
old: 0.075
new: 0.05977011494252874

path: .spaces[0].metrics.halstead.purity_ratio
old: 1.5942721007995304
new: 1.4617681543830408

path: .spaces[0].metrics.halstead.time
old: 378.1677258012126
new: 326.19135801269056

path: .spaces[0].metrics.halstead.n2
old: 21.0
new: 13.0

path: .spaces[0].metrics.halstead.estimated_program_length
old: 156.23866587835397
new: 106.70907526996196

path: .spaces[0].metrics.halstead.difficulty
old: 13.333333333333334
new: 16.73076923076923

path: .spaces[0].metrics.halstead.bugs
old: 0.11972459866708544
new: 0.10848642115968132

path: .spaces[0].metrics.halstead.effort
old: 6807.019064421828
new: 5871.44444422843

path: .spaces[0].metrics.halstead.n1
old: 16.0
new: 15.0

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

path: .spaces[0].metrics.halstead.N2
old: 35.0
new: 29.0

path: .spaces[0].metrics.loc.lloc
old: 4.0
new: 7.0

path: .spaces[0].metrics.loc.sloc
old: 69.0
new: 15.0

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

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

path: .spaces[0].metrics.loc.cloc
old: 36.0
new: 1.0

Code

static void gtest_logging_sink_for_LulIntegration(const char* str) {
  if (DEBUG_LUL_TEST == 0) {
    return;
  }
  // Ignore any trailing \n, since LOG will add one anyway.
  size_t n = strlen(str);
  if (n > 0 && str[n - 1] == '\n') {
    char* tmp = strdup(str);
    tmp[n - 1] = 0;
    fprintf(stderr, "LUL-in-gtest: %s\n", tmp);
    free(tmp);
  } else {
    fprintf(stderr, "LUL-in-gtest: %s\n", str);
  }
}