# Global Metrics

path: .metrics.nargs.average
old: 1.5
new: 2.0
path: .metrics.nargs.sum
old: 3.0
new: 4.0
path: .metrics.nexits.average
old: 0.5
new: 0.0
path: .metrics.nexits.sum
old: 1.0
new: 0.0
path: .metrics.loc.lloc
old: 29.0
new: 6.0
path: .metrics.loc.ploc
old: 61.0
new: 24.0
path: .metrics.loc.blank
old: 19.0
new: 6.0
path: .metrics.loc.cloc
old: 11.0
new: 3.0
path: .metrics.loc.sloc
old: 91.0
new: 33.0
path: .metrics.cyclomatic.sum
old: 13.0
new: 3.0
path: .metrics.mi.mi_original
old: 53.923277842396146
new: 81.07840884350968
path: .metrics.mi.mi_sei
old: 29.06518061749162
new: 64.09093949494397
path: .metrics.mi.mi_visual_studio
old: 31.53408060958839
new: 47.41427417749104
path: .metrics.halstead.bugs
old: 0.5233410224430782
new: 0.10140878856367191
path: .metrics.halstead.vocabulary
old: 73.0
new: 40.0
path: .metrics.halstead.N1
old: 233.0
new: 52.0
path: .metrics.halstead.n1
old: 14.0
new: 12.0
path: .metrics.halstead.length
old: 430.0
new: 99.0
path: .metrics.halstead.n2
old: 59.0
new: 28.0
path: .metrics.halstead.estimated_program_length
old: 400.3789088211551
new: 177.62548782626678
path: .metrics.halstead.time
old: 3456.101947908742
new: 294.7968026846536
path: .metrics.halstead.purity_ratio
old: 0.9311137414445468
new: 1.7941968467299674
path: .metrics.halstead.level
old: 0.04278462654097172
new: 0.09929078014184398
path: .metrics.halstead.volume
old: 2661.6245603184075
new: 526.8708813938489
path: .metrics.halstead.difficulty
old: 23.372881355932204
new: 10.071428571428571
path: .metrics.halstead.effort
old: 62209.83506235736
new: 5306.342448323764
path: .metrics.halstead.N2
old: 197.0
new: 47.0

# Spaces Data

## Minimal test - lines (23, 33)

path: .spaces[1].metrics.nexits.average
old: 1.0
new: 0.0
path: .spaces[1].metrics.nexits.sum
old: 1.0
new: 0.0
path: .spaces[1].metrics.halstead.purity_ratio
old: 0.6287833071304794
new: 1.891279006621112
path: .spaces[1].metrics.halstead.N1
old: 44.0
new: 23.0
path: .spaces[1].metrics.halstead.n2
old: 10.0
new: 13.0
path: .spaces[1].metrics.halstead.time
old: 396.3282051370838
new: 83.12528380788528
path: .spaces[1].metrics.halstead.bugs
old: 0.12352752377627343
new: 0.043606293752680624
path: .spaces[1].metrics.halstead.length
old: 91.0
new: 43.0
path: .spaces[1].metrics.halstead.effort
old: 7133.907692467508
new: 1496.255108541935
path: .spaces[1].metrics.halstead.level
old: 0.05319148936170213
new: 0.13
path: .spaces[1].metrics.halstead.volume
old: 379.4631751312504
new: 194.51316411045156
path: .spaces[1].metrics.halstead.n1
old: 8.0
new: 10.0
path: .spaces[1].metrics.halstead.estimated_program_length
old: 57.219280948873624
new: 81.32499728470782
path: .spaces[1].metrics.halstead.vocabulary
old: 18.0
new: 23.0
path: .spaces[1].metrics.halstead.difficulty
old: 18.8
new: 7.6923076923076925
path: .spaces[1].metrics.halstead.N2
old: 47.0
new: 20.0
path: .spaces[1].metrics.cyclomatic.sum
old: 4.0
new: 1.0
path: .spaces[1].metrics.loc.sloc
old: 13.0
new: 11.0
path: .spaces[1].metrics.loc.blank
old: 2.0
new: 1.0
path: .spaces[1].metrics.loc.ploc
old: 11.0
new: 10.0
path: .spaces[1].metrics.mi.mi_sei
old: 65.58023296892914
new: 75.18784305149045
path: .spaces[1].metrics.mi.mi_original
old: 97.64628111324213
new: 104.5174973993024
path: .spaces[1].metrics.mi.mi_visual_studio
old: 57.103088370317025
new: 61.121343508363985

### Code

    TEST(RustXpcom, ImplementRunnableInRust)
    {
      bool itWorked = false;
      nsCOMPtr runnable;
      Rust_ImplementRunnableInRust(&itWorked, getter_AddRefs(runnable));

      EXPECT_TRUE(runnable);
      EXPECT_FALSE(itWorked);
      runnable->Run();
      EXPECT_TRUE(itWorked);
    }

## Minimal test - lines (13, 18)

path: .spaces[0].metrics.nexits.average
old: null
new: 0.0
path: .spaces[0].metrics.loc.sloc
old: 5.0
new: 6.0
path: .spaces[0].metrics.loc.lloc
old: 0.0
new: 1.0
path: .spaces[0].metrics.loc.ploc
old: 5.0
new: 6.0
path: .spaces[0].metrics.cognitive.average
old: null
new: 0.0
path: .spaces[0].metrics.halstead.effort
old: 46.321356213950466
new: 747.2505602584623
path: .spaces[0].metrics.halstead.vocabulary
old: 7.0
new: 18.0
path: .spaces[0].metrics.halstead.bugs
old: 0.004299318203100795
new: 0.027448771475085284
path: .spaces[0].metrics.halstead.volume
old: 30.880904142633646
new: 133.437600046154
path: .spaces[0].metrics.halstead.N2
old: 4.0
new: 14.0
path: .spaces[0].metrics.halstead.estimated_program_length
old: 12.754887502163468
new: 57.219280948873624
path: .spaces[0].metrics.halstead.n1
old: 3.0
new: 8.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.1595352274694062
new: 1.7881025296523008
path: .spaces[0].metrics.halstead.difficulty
old: 1.5
new: 5.6
path: .spaces[0].metrics.halstead.time
old: 2.573408678552804
new: 41.513920014359016
path: .spaces[0].metrics.halstead.n2
old: 4.0
new: 10.0
path: .spaces[0].metrics.halstead.N1
old: 7.0
new: 18.0
path: .spaces[0].metrics.halstead.length
old: 11.0
new: 32.0
path: .spaces[0].metrics.halstead.level
old: 0.6666666666666666
new: 0.17857142857142858
path: .spaces[0].metrics.mi.mi_sei
old: 107.42182080587256
new: 92.18149602016535
path: .spaces[0].metrics.mi.mi_visual_studio
old: 74.18736151928911
new: 68.00970762687342
path: .spaces[0].metrics.mi.mi_original
old: 126.86038819798438
new: 116.29660004195355
path: .spaces[0].metrics.nargs.average
old: null
new: 2.0
path: .spaces[0].metrics.nargs.sum
old: 0.0
new: 2.0
path: .spaces[0].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[0].metrics.nom.functions
old: 0.0
new: 1.0

### Code

    TEST(RustXpcom, ObserverFromRust)
    {
      nsCOMPtr rust = Rust_ObserveFromRust();
      nsCOMPtr cpp = mozilla::services::GetObserverService();
      EXPECT_EQ(rust, cpp);
    }