metrics: update tests
authorAlexandre Terrasa <alexandre@moz-code.org>
Fri, 25 Apr 2014 02:31:31 +0000 (22:31 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Fri, 25 Apr 2014 02:31:31 +0000 (22:31 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

tests/sav/nitmetrics_args1.res

index 4a951ac..9e69628 100644 (file)
          max: base_simple3 (0)
          min: base_simple3 (0)
          std: 0.0
+         sum: 0
        mnop: number of parent modules
          avg: 0.0
          max: base_simple3 (0)
          min: base_simple3 (0)
          std: 0.0
+         sum: 0
        mnoc: number of child modules
          avg: 1.0
          max: base_simple3 (1)
          min: base_simple3 (1)
          std: 0.0
+         sum: 1
        mnod: number of descendant modules
          avg: 1.0
          max: base_simple3 (1)
          min: base_simple3 (1)
          std: 0.0
+         sum: 1
        mdit: depth in module tree
          avg: 0.0
          max: base_simple3 (0)
          min: base_simple3 (0)
          std: 0.0
+         sum: 0
        mnbi: number of introduction in module
          avg: 7.0
          max: base_simple3 (7)
          min: base_simple3 (7)
          std: 0.0
+         sum: 7
        mnbr: number of refinement in module
          avg: 3.0
          max: base_simple3 (3)
          min: base_simple3 (3)
          std: 0.0
+         sum: 3
        mnbcc: number of concrete class in module (intro + redef)
          avg: 4.0
          max: base_simple3 (4)
          min: base_simple3 (4)
          std: 0.0
+         sum: 4
        mnbac: number of abstract class in module (intro + redef)
          avg: 0.0
          max: base_simple3 (0)
          min: base_simple3 (0)
          std: 0.0
+         sum: 0
        mnbic: number of interface in module (intro + redef)
          avg: 4.0
          max: base_simple3 (4)
          min: base_simple3 (4)
          std: 0.0
+         sum: 4
 
  ## project base_empty_module
   `- group base_empty_module
        mnoa: number of ancestor modules
          avg: 0.0
-         max: base_simple3 (0)
-         min: base_simple3 (0)
+         max: base_empty_module (0)
+         min: base_empty_module (0)
          std: 0.0
+         sum: 0
        mnop: number of parent modules
          avg: 0.0
-         max: base_simple3 (0)
-         min: base_simple3 (0)
+         max: base_empty_module (0)
+         min: base_empty_module (0)
          std: 0.0
+         sum: 0
        mnoc: number of child modules
          avg: 1.0
-         max: base_simple3 (1)
-         min: base_simple3 (1)
+         max: base_empty_module (1)
+         min: base_empty_module (1)
          std: 0.0
+         sum: 1
        mnod: number of descendant modules
          avg: 1.0
-         max: base_simple3 (1)
-         min: base_simple3 (1)
+         max: base_empty_module (1)
+         min: base_empty_module (1)
          std: 0.0
+         sum: 1
        mdit: depth in module tree
          avg: 0.0
-         max: base_simple3 (0)
-         min: base_simple3 (0)
+         max: base_empty_module (0)
+         min: base_empty_module (0)
          std: 0.0
+         sum: 0
        mnbi: number of introduction in module
-         avg: 4.0
-         max: base_simple3 (7)
+         avg: 1.0
+         max: base_empty_module (1)
          min: base_empty_module (1)
-         std: 3.0
+         std: 0.0
+         sum: 1
        mnbr: number of refinement in module
-         avg: 1.0
-         max: base_simple3 (3)
+         avg: 0.0
+         max: base_empty_module (0)
          min: base_empty_module (0)
-         std: 1.581
+         std: 0.0
+         sum: 0
        mnbcc: number of concrete class in module (intro + redef)
-         avg: 2.0
-         max: base_simple3 (4)
+         avg: 1.0
+         max: base_empty_module (1)
          min: base_empty_module (1)
-         std: 1.581
+         std: 0.0
+         sum: 1
        mnbac: number of abstract class in module (intro + redef)
          avg: 0.0
-         max: base_simple3 (0)
-         min: base_simple3 (0)
+         max: base_empty_module (0)
+         min: base_empty_module (0)
          std: 0.0
+         sum: 0
        mnbic: number of interface in module (intro + redef)
-         avg: 2.0
-         max: base_simple3 (4)
+         avg: 0.0
+         max: base_empty_module (0)
          min: base_empty_module (0)
-         std: 2.0
+         std: 0.0
+         sum: 0
 
  ## global metrics
        mnoa: number of ancestor modules
          max: base_simple3 (0)
          min: base_simple3 (0)
          std: 0.0
+         sum: 0
        mnop: number of parent modules
          avg: 0.0
          max: base_simple3 (0)
          min: base_simple3 (0)
          std: 0.0
+         sum: 0
        mnoc: number of child modules
-         avg: 2.0
+         avg: 1.0
          max: base_simple3 (1)
          min: base_simple3 (1)
-         std: 1.0
+         std: 0.0
+         sum: 2
        mnod: number of descendant modules
-         avg: 2.0
+         avg: 1.0
          max: base_simple3 (1)
          min: base_simple3 (1)
-         std: 1.0
+         std: 0.0
+         sum: 2
        mdit: depth in module tree
          avg: 0.0
          max: base_simple3 (0)
          min: base_simple3 (0)
          std: 0.0
+         sum: 0
        mnbi: number of introduction in module
-         avg: 8.0
+         avg: 4.0
          max: base_simple3 (7)
          min: base_empty_module (1)
-         std: 5.0
+         std: 3.0
+         sum: 8
        mnbr: number of refinement in module
-         avg: 3.0
+         avg: 1.0
          max: base_simple3 (3)
          min: base_empty_module (0)
-         std: 2.121
+         std: 1.581
+         sum: 3
        mnbcc: number of concrete class in module (intro + redef)
-         avg: 5.0
+         avg: 2.0
          max: base_simple3 (4)
          min: base_empty_module (1)
-         std: 2.915
+         std: 1.581
+         sum: 5
        mnbac: number of abstract class in module (intro + redef)
          avg: 0.0
          max: base_simple3 (0)
          min: base_simple3 (0)
          std: 0.0
+         sum: 0
        mnbic: number of interface in module (intro + redef)
-         avg: 4.0
+         avg: 2.0
          max: base_simple3 (4)
          min: base_empty_module (0)
-         std: 2.828
+         std: 2.0
+         sum: 4
 
 # MClasses metrics
 
          max: Bool (1)
          min: Object (0)
          std: 0.926
+         sum: 6
        cnop: number of parent classes
          avg: 0.0
          max: Bool (1)
          min: Object (0)
          std: 0.926
+         sum: 6
        cnoc: number of child classes
          avg: 0.0
          max: Object (6)
          min: Bool (0)
          std: 2.268
+         sum: 6
        cnod: number of descendant classes
          avg: 0.0
          max: Object (6)
          min: Bool (0)
          std: 2.268
+         sum: 6
        cdit: depth in class tree
          avg: 0.0
          max: Bool (1)
          min: Object (0)
          std: 0.926
+         sum: 6
+       cnbp: number of accessible properties (inherited + local)
+         avg: 4.0
+         max: C (8)
+         min: Object (3)
+         std: 2.0
+         sum: 34
+       cnba: number of accessible attributes (inherited + local)
+         avg: 0.0
+         max: Object (0)
+         min: Object (0)
+         std: 0.0
+         sum: 0
        cnbip: number of introduced properties
          avg: 2.0
          max: C (5)
          min: Bool (0)
          std: 1.69
+         sum: 16
        cnbrp: number of redefined properties
          avg: 0.0
          max: Object (0)
          min: Object (0)
          std: 0.0
+         sum: 0
        cnbhp: number of inherited properties
          avg: 2.0
          max: Bool (3)
          min: Object (0)
          std: 1.195
+         sum: 18
 
  ## project base_empty_module
   `- group base_empty_module
        cnoa: number of ancestor classes
          avg: 0.0
-         max: Bool (1)
+         max: Object (0)
          min: Object (0)
-         std: 0.866
+         std: 0.0
+         sum: 0
        cnop: number of parent classes
          avg: 0.0
-         max: Bool (1)
+         max: Object (0)
          min: Object (0)
-         std: 0.866
+         std: 0.0
+         sum: 0
        cnoc: number of child classes
          avg: 0.0
-         max: Object (6)
-         min: Bool (0)
-         std: 2.121
+         max: Object (0)
+         min: Object (0)
+         std: 0.0
+         sum: 0
        cnod: number of descendant classes
          avg: 0.0
-         max: Object (6)
-         min: Bool (0)
-         std: 2.121
+         max: Object (0)
+         min: Object (0)
+         std: 0.0
+         sum: 0
        cdit: depth in class tree
          avg: 0.0
-         max: Bool (1)
+         max: Object (0)
          min: Object (0)
-         std: 0.866
+         std: 0.0
+         sum: 0
+       cnbp: number of accessible properties (inherited + local)
+         avg: 1.0
+         max: Object (1)
+         min: Object (1)
+         std: 0.0
+         sum: 1
+       cnba: number of accessible attributes (inherited + local)
+         avg: 0.0
+         max: Object (0)
+         min: Object (0)
+         std: 0.0
+         sum: 0
        cnbip: number of introduced properties
-         avg: 2.0
-         max: C (5)
-         min: Bool (0)
-         std: 1.62
+         avg: 1.0
+         max: Object (1)
+         min: Object (1)
+         std: 0.0
+         sum: 1
        cnbrp: number of redefined properties
          avg: 0.0
          max: Object (0)
          min: Object (0)
          std: 0.0
+         sum: 0
        cnbhp: number of inherited properties
-         avg: 2.0
-         max: Bool (3)
+         avg: 0.0
+         max: Object (0)
          min: Object (0)
-         std: 1.323
+         std: 0.0
+         sum: 0
 
  ## global metrics
        cnoa: number of ancestor classes
          max: Bool (1)
          min: Object (0)
          std: 0.866
+         sum: 6
        cnop: number of parent classes
          avg: 0.0
          max: Bool (1)
          min: Object (0)
          std: 0.866
+         sum: 6
        cnoc: number of child classes
          avg: 0.0
          max: Object (6)
          min: Bool (0)
          std: 2.121
+         sum: 6
        cnod: number of descendant classes
          avg: 0.0
          max: Object (6)
          min: Bool (0)
          std: 2.121
+         sum: 6
        cdit: depth in class tree
          avg: 0.0
          max: Bool (1)
          min: Object (0)
          std: 0.866
+         sum: 6
+       cnbp: number of accessible properties (inherited + local)
+         avg: 4.0
+         max: C (8)
+         min: Object (1)
+         std: 2.151
+         sum: 35
+       cnba: number of accessible attributes (inherited + local)
+         avg: 0.0
+         max: Object (0)
+         min: Object (0)
+         std: 0.0
+         sum: 0
        cnbip: number of introduced properties
          avg: 2.0
          max: C (5)
          min: Bool (0)
          std: 1.62
+         sum: 17
        cnbrp: number of redefined properties
          avg: 0.0
          max: Object (0)
          min: Object (0)
          std: 0.0
+         sum: 0
        cnbhp: number of inherited properties
          avg: 2.0
          max: Bool (3)
          min: Object (0)
          std: 1.323
+         sum: 18
 --- Poset metrics ---
 ## Module importation hierarchy
 Number of nodes: 3
@@ -519,10 +609,6 @@ Statistics of type usage:
   C: 1 (11.11%)
   B: 1 (11.11%)
   A: 1 (11.11%)
---- Sends on Nullable Receiver ---
-Total number of sends: 19
-Number of sends on a nullable receiver: 0 (0.0%)
-Number of buggy sends (cannot determine the type of the receiver): 0 (0.0%)
 --- Explicit vs. Implicit Self ---
 Total number of self: 5
 Total number of implicit self: 4 (80.00%)
@@ -547,6 +633,44 @@ Values never redefined: 35 (100.00%)
           B: 3.0
           C: 3.0
 
+# Nullable metrics
+
+ ## project base_simple3
+  `- group base_simple3
+       cnba: number of accessible attributes (inherited + local)
+         avg: 0.0
+         max: Object (0)
+         min: Object (0)
+         std: 0.0
+         sum: 0
+       cnbna: number of accessible nullable attributes (inherited + local) -- nothing
+         sum: 0
+
+ ## project base_empty_module
+  `- group base_empty_module
+       cnba: number of accessible attributes (inherited + local)
+         avg: 0.0
+         max: Object (0)
+         min: Object (0)
+         std: 0.0
+         sum: 0
+       cnbna: number of accessible nullable attributes (inherited + local) -- nothing
+         sum: 0
+
+ ## global metrics
+       cnba: number of accessible attributes (inherited + local)
+         avg: 0.0
+         max: Object (0)
+         min: Object (0)
+         std: 0.0
+         sum: 0
+       cnbna: number of accessible nullable attributes (inherited + local) -- nothing
+         sum: 0
+--- Sends on Nullable Receiver ---
+Total number of sends: 19
+Number of sends on a nullable receiver: 0 (0.0%)
+Number of buggy sends (cannot determine the type of the receiver): 0 (0.0%)
+
 # Inheritance metrics
 
  ## project base_simple3
@@ -556,76 +680,91 @@ Values never redefined: 35 (100.00%)
          max: Object (0)
          min: Object (0)
          std: 0.0
+         sum: 0
        cnopc: number of class_kind parent
          avg: 0.0
          max: Object (0)
          min: Object (0)
          std: 0.0
+         sum: 0
        cnocc: number of class_kind children
          avg: 0.0
          max: Object (4)
          min: Bool (0)
          std: 1.512
+         sum: 4
        cnodc: number of class_kind descendants
          avg: 0.0
          max: Object (4)
          min: Bool (0)
          std: 1.512
+         sum: 4
        cnopi: number of interface_kind parent
          avg: 0.0
          max: Bool (1)
          min: Object (0)
          std: 0.926
+         sum: 6
        cnoci: number of interface_kind children
          avg: 0.0
          max: Object (0)
          min: Object (0)
          std: 0.0
+         sum: 0
        cnodi: number of interface_kind descendants
          avg: 0.0
          max: Object (0)
          min: Object (0)
          std: 0.0
+         sum: 0
        cditc: depth in class tree following only class, abstract, extern kind
          avg: 0.0
          max: Object (0)
          min: Object (0)
          std: 0.0
+         sum: 0
        cditi: depth in class tree following only interface_kind
          avg: 0.0
          max: Bool (1)
          min: Object (0)
          std: 0.926
+         sum: 6
        mdui: proportion of mclass defined using inheritance (has other parent than Object)
          avg: 0.0
          max: base_simple3 (0.0)
          min: base_simple3 (0.0)
          std: 0.0
+         sum: 0.0
        mduic: proportion of class_kind defined using inheritance
          avg: 0.0
          max: base_simple3 (0.0)
          min: base_simple3 (0.0)
          std: 0.0
+         sum: 0.0
        mduii: proportion of interface_kind defined using inheritance
          avg: 0.0
          max: base_simple3 (0.0)
          min: base_simple3 (0.0)
          std: 0.0
+         sum: 0.0
        mif: proportion of mclass inherited from
          avg: 0.143
          max: base_simple3 (0.143)
          min: base_simple3 (0.143)
          std: 0.0
+         sum: 0.143
        mifc: proportion of class_kind inherited from
          avg: 0.0
          max: base_simple3 (0.0)
          min: base_simple3 (0.0)
          std: 0.0
+         sum: 0.0
        mifi: proportion of interface_kind inherited from
          avg: 0.143
          max: base_simple3 (0.143)
          min: base_simple3 (0.143)
          std: 0.0
+         sum: 0.143
 
  ## project base_empty_module
   `- group base_empty_module
@@ -634,76 +773,91 @@ Values never redefined: 35 (100.00%)
          max: Object (0)
          min: Object (0)
          std: 0.0
+         sum: 0
        cnopc: number of class_kind parent
          avg: 0.0
          max: Object (0)
          min: Object (0)
          std: 0.0
+         sum: 0
        cnocc: number of class_kind children
          avg: 0.0
-         max: Object (4)
-         min: Bool (0)
-         std: 1.414
+         max: Object (0)
+         min: Object (0)
+         std: 0.0
+         sum: 0
        cnodc: number of class_kind descendants
          avg: 0.0
-         max: Object (4)
-         min: Bool (0)
-         std: 1.414
+         max: Object (0)
+         min: Object (0)
+         std: 0.0
+         sum: 0
        cnopi: number of interface_kind parent
          avg: 0.0
-         max: Bool (1)
+         max: Object (0)
          min: Object (0)
-         std: 0.866
+         std: 0.0
+         sum: 0
        cnoci: number of interface_kind children
          avg: 0.0
          max: Object (0)
          min: Object (0)
          std: 0.0
+         sum: 0
        cnodi: number of interface_kind descendants
          avg: 0.0
          max: Object (0)
          min: Object (0)
          std: 0.0
+         sum: 0
        cditc: depth in class tree following only class, abstract, extern kind
          avg: 0.0
          max: Object (0)
          min: Object (0)
          std: 0.0
+         sum: 0
        cditi: depth in class tree following only interface_kind
          avg: 0.0
-         max: Bool (1)
+         max: Object (0)
          min: Object (0)
-         std: 0.866
+         std: 0.0
+         sum: 0
        mdui: proportion of mclass defined using inheritance (has other parent than Object)
          avg: 0.0
-         max: base_simple3 (0.0)
-         min: base_simple3 (0.0)
+         max: base_empty_module (0.0)
+         min: base_empty_module (0.0)
          std: 0.0
+         sum: 0.0
        mduic: proportion of class_kind defined using inheritance
          avg: 0.0
-         max: base_simple3 (0.0)
-         min: base_simple3 (0.0)
+         max: base_empty_module (0.0)
+         min: base_empty_module (0.0)
          std: 0.0
+         sum: 0.0
        mduii: proportion of interface_kind defined using inheritance
          avg: 0.0
-         max: base_simple3 (0.0)
-         min: base_simple3 (0.0)
+         max: base_empty_module (0.0)
+         min: base_empty_module (0.0)
          std: 0.0
+         sum: 0.0
        mif: proportion of mclass inherited from
-         avg: 0.071
-         max: base_simple3 (0.143)
+         avg: 0.0
+         max: base_empty_module (0.0)
          min: base_empty_module (0.0)
-         std: 0.071
+         std: 0.0
+         sum: 0.0
        mifc: proportion of class_kind inherited from
          avg: 0.0
-         max: base_simple3 (0.0)
-         min: base_simple3 (0.0)
+         max: base_empty_module (0.0)
+         min: base_empty_module (0.0)
          std: 0.0
+         sum: 0.0
        mifi: proportion of interface_kind inherited from
-         avg: 0.071
-         max: base_simple3 (0.143)
+         avg: 0.0
+         max: base_empty_module (0.0)
          min: base_empty_module (0.0)
-         std: 0.071
+         std: 0.0
+         sum: 0.0
 
  ## global metrics
        cnoac: number of class_kind ancestor
@@ -711,76 +865,91 @@ Values never redefined: 35 (100.00%)
          max: Object (0)
          min: Object (0)
          std: 0.0
+         sum: 0
        cnopc: number of class_kind parent
          avg: 0.0
          max: Object (0)
          min: Object (0)
          std: 0.0
+         sum: 0
        cnocc: number of class_kind children
-         avg: 1.0
+         avg: 0.0
          max: Object (4)
          min: Bool (0)
          std: 1.414
+         sum: 4
        cnodc: number of class_kind descendants
-         avg: 1.0
+         avg: 0.0
          max: Object (4)
          min: Bool (0)
          std: 1.414
+         sum: 4
        cnopi: number of interface_kind parent
-         avg: 1.0
+         avg: 0.0
          max: Bool (1)
          min: Object (0)
-         std: 0.5
+         std: 0.866
+         sum: 6
        cnoci: number of interface_kind children
          avg: 0.0
          max: Object (0)
          min: Object (0)
          std: 0.0
+         sum: 0
        cnodi: number of interface_kind descendants
          avg: 0.0
          max: Object (0)
          min: Object (0)
          std: 0.0
+         sum: 0
        cditc: depth in class tree following only class, abstract, extern kind
          avg: 0.0
          max: Object (0)
          min: Object (0)
          std: 0.0
+         sum: 0
        cditi: depth in class tree following only interface_kind
-         avg: 1.0
+         avg: 0.0
          max: Bool (1)
          min: Object (0)
-         std: 0.5
+         std: 0.866
+         sum: 6
        mdui: proportion of mclass defined using inheritance (has other parent than Object)
          avg: 0.0
          max: base_simple3 (0.0)
          min: base_simple3 (0.0)
          std: 0.0
+         sum: 0.0
        mduic: proportion of class_kind defined using inheritance
          avg: 0.0
          max: base_simple3 (0.0)
          min: base_simple3 (0.0)
          std: 0.0
+         sum: 0.0
        mduii: proportion of interface_kind defined using inheritance
          avg: 0.0
          max: base_simple3 (0.0)
          min: base_simple3 (0.0)
          std: 0.0
+         sum: 0.0
        mif: proportion of mclass inherited from
          avg: 0.071
          max: base_simple3 (0.143)
          min: base_empty_module (0.0)
          std: 0.071
+         sum: 0.143
        mifc: proportion of class_kind inherited from
          avg: 0.0
          max: base_simple3 (0.0)
          min: base_simple3 (0.0)
          std: 0.0
+         sum: 0.0
        mifi: proportion of interface_kind inherited from
          avg: 0.071
          max: base_simple3 (0.143)
          min: base_empty_module (0.0)
          std: 0.071
+         sum: 0.143
 
 # RTA metrics
 
@@ -790,36 +959,43 @@ Values never redefined: 35 (100.00%)
          max: <main> (6)
          min: <main> (6)
          std: 0.0
+         sum: 6
        mnlt: number of live mtypes in a mmodule
          avg: 6.0
          max: <main> (6)
          min: <main> (6)
          std: 0.0
+         sum: 6
        mnct: number of live cast mtypes in a mmodule
          avg: 0.0
          max: <main> (0)
          min: <main> (0)
          std: 0.0
+         sum: 0
        mnli: number of live instances in a mmodule
          avg: 17.0
          max: <main> (17)
          min: <main> (17)
          std: 0.0
+         sum: 17
        mnlm: number of live methods in a mmodule
          avg: 14.0
          max: <main> (14)
          min: <main> (14)
          std: 0.0
+         sum: 14
        mnlmd: number of live method definitions in a mmodule
          avg: 14.0
          max: <main> (14)
          min: <main> (14)
          std: 0.0
+         sum: 14
        mnldd: number of dead method definitions in a mmodule
          avg: 0.0
          max: <main> (0)
          min: <main> (0)
          std: 0.0
+         sum: 0
 
  ## Total live instances by mclasses
        cnli: number of live instances for a mclass
@@ -827,7 +1003,9 @@ Values never redefined: 35 (100.00%)
          max: Int (12)
          min: Sys (1)
          std: 4.183
+         sum: 17
        cnlc: number of live cast for a mclass type -- nothing
+         sum: 0
 
  ## Total live instances by mtypes
        tnli: number of live instances for a mtype
@@ -835,7 +1013,9 @@ Values never redefined: 35 (100.00%)
          max: Int (12)
          min: Sys (1)
          std: 4.183
+         sum: 17
        tnlc: number of live casts to a mtype -- nothing
+         sum: 0
 
  ## MType complexity
        tags: arity of generic signature
@@ -843,11 +1023,13 @@ Values never redefined: 35 (100.00%)
          max: Sys (0)
          min: Sys (0)
          std: 0.0
+         sum: 0
        tdos: depth of generic signature
          avg: 0.0
          max: Sys (0)
          min: Sys (0)
          std: 0.0
+         sum: 0
 
  ## Callsites
 * 22 live callsites
@@ -903,5 +1085,6 @@ mendel/
 mmodules/
 model.html
 module_hierarchy.dot
+nullables/
 project_hierarchy.dot
 rta/