![]() | Analysis of Class : org.junit.internal.ComparisonCriteria (Includes summary list of methods in class) | Home |
Dashboard for Class : org.junit.internal.ComparisonCriteria |
---|
![]() |
Cyclomatic Complexity |
Summary of ComparisonCriteria | ||
---|---|---|
Feature | Number | Values |
Name | ComparisonCriteria | - |
Number of Methods | 4 | - |
LCOM | 0.00 | - |
Average Cyclomatic Complexity | 3.00 | - |
Number of Statements | 29 | - |
Halstead Cumulative Bugs | 0.40 | - |
Halstead Effort | 24918.52 | - |
UnWeighted Class Size | 4 | - |
Instance Variables | 0 | - |
Imported Packages | 2 | java.lang.reflect.Array org.junit.Assert |
Response For class | 4 | - |
CBO | 4 | - |
Maintainability Index | 91.47 | - |
Cumulative Number of Comment Lines | 20 | - |
Lines Of Code | 44 | - |
Fan In | 2 | - |
DIT | 1 | - |
Maintainability Index (NC) | 109.34 | - |
Specialization ratio | 2.00 | - |
Reuse Ratio | 0.00 | - |
COH | 0.00 | - |
Local Method Calls | 4 | assertArraysAreSameLength (1) isArray (2) assertElementsEqual (1) arrayEquals (1) |
LCOM2 | 4.00 | - |
Max Complexity | 6 | - |
Halstead Cumulative Volume | 1204.37 | - |
Hierarchy Method Calls | 0 | |
Number of Queries | 2 | - |
Fan Out | 2 | - |
SuperClass Name | java.lang.Object | - |
SIX | 0.00 | - |
External Method Calls | 0 | java.lang.Object.getClass (1) e.addDimension (1) java.lang.reflect.Array.get (2) java.lang.reflect.Array.getLength (2) org.junit.internal.ArrayComparisonFailure.ArrayComparisonFailure (1) org.junit.Assert.fail (3) getClass().isArray (1) |
Superclasses | 0 | - |
Total Complexity | 12 | - |
Subclasses | 2 | org.junit.internal.ExactComparisonCriteria org.junit.internal.InexactComparisonCriteria |
Message Passing Coupling | 0 | - |
Number of Commands | 2 | - |
Interfaces | 0 | - |
Cumulative Number of Comments | 2 | - |
Halstead Cumulative Length | 238 | - |
Modifiers | 0 | - |
Methods in Class : org.junit.internal.ComparisonCriteria | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name | COMP | NOCL | NOS | HLTH | HVOC | HEFF | HBUG | CREF | XMET | LMET | NLOC | NOC | NOA | MOD | HDIF | VDEC | EXCT | EXCR | CAST | TDN | HVOL | NAND | VREF | NOPR | MDN | NEXP | LOOP | |
![]() | arrayEquals | 6 | 16 | 18 | 129 | 48 | 19812.65 | 0.24 | 5 | 3 | 4 | 25 | 1 | 3 | 1 | 27.50 | 5 | 1 | 2 | 0 | 6 | 720.46 | 65 | 27 | 64 | 3 | 17 | 1 |
![]() | assertArraysAreSameLength | 4 | 0 | 7 | 77 | 29 | 4571.90 | 0.12 | 4 | 2 | 0 | 13 | 0 | 3 | 1 | 12.22 | 2 | 0 | 0 | 0 | 0 | 374.06 | 40 | 12 | 37 | 0 | 16 | 0 |
![]() | assertElementsEqual | 1 | 0 | 1 | 10 | 9 | 76.08 | 0.01 | 1 | 0 | 0 | 1 | 0 | 2 | 2 | 2.40 | 0 | 0 | 0 | 0 | 0 | 31.70 | 6 | 0 | 4 | 0 | 0 | 0 |
![]() | isArray | 1 | 0 | 2 | 20 | 14 | 456.88 | 0.03 | 1 | 2 | 0 | 3 | 0 | 1 | 1 | 6.00 | 0 | 0 | 0 | 0 | 0 | 76.15 | 9 | 2 | 11 | 0 | 4 | 0 |
Analysis of Method : arrayEquals(String, Object, Object) in Class : org.junit.internal.ComparisonCriteria | ||
---|---|---|
Feature | Number | Values |
Name | arrayEquals | - |
Cyclomatic Complexity | 6 | - |
Number of Comment Lines | 16 | - |
Number of Statements | 18 | - |
Halstead Length | 129 | - |
Halstead Vocabulary | 48 | - |
Halstead Effort | 19812.65 | - |
Halstead Bugs | 0.24 | - |
Classes Referenced | 5 | java.lang.AssertionError (1) java.lang.String (2) java.lang.Object (4) org.junit.internal.ArrayComparisonFailure (3) java.lang.reflect.Array (2) |
External Methods Called | 3 | java.lang.reflect.Array.get (2) e.addDimension (1) org.junit.internal.ArrayComparisonFailure.ArrayComparisonFailure (1) |
Local Methods Called | 4 | isArray (2) assertArraysAreSameLength (1) assertElementsEqual (1) arrayEquals (1) |
Lines Of Code | 25 | - |
Number of Comments | 1 | - |
Arguments | 3 | message (java.lang.String) expecteds (java.lang.Object) actuals (java.lang.Object) |
Modifiers | 1 | public |
Halstead Difficulty | 27.50 | - |
Variable Declarations | 5 | i (int) expected (java.lang.Object) actual (java.lang.Object) expectedsLength (int) header (java.lang.String) |
Exceptions Thrown | 1 | org.junit.internal.ArrayComparisonFailure (1) |
Exceptions Referenced | 2 | java.lang.AssertionError (1) org.junit.internal.ArrayComparisonFailure (1) |
Number of casts | 0 | - |
Total Depth of Nesting | 6 | - |
Halstead Volume | 720.46 | - |
Number of Operands | 65 | - |
Variable References | 27 | expecteds (3) i (6) header (2) expected (3) e (3) expectedsLength (1) actual (3) actuals (3) message (3) |
Number of Operators | 64 | - |
Max. depth of nesting | 3 | - |
Number of Expressions | 17 | - |
Number of Loops | 1 | - |
Analysis of Method : assertArraysAreSameLength(Object, Object, String) in Class : org.junit.internal.ComparisonCriteria | ||
---|---|---|
Feature | Number | Values |
Name | assertArraysAreSameLength | - |
Cyclomatic Complexity | 4 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 7 | - |
Halstead Length | 77 | - |
Halstead Vocabulary | 29 | - |
Halstead Effort | 4571.90 | - |
Halstead Bugs | 0.12 | - |
Classes Referenced | 4 | java.lang.String (1) java.lang.Object (2) org.junit.Assert (3) java.lang.reflect.Array (2) |
External Methods Called | 2 | java.lang.reflect.Array.getLength (2) org.junit.Assert.fail (3) |
Local Methods Called | 0 | |
Lines Of Code | 13 | - |
Number of Comments | 0 | - |
Arguments | 3 | expecteds (java.lang.Object) actuals (java.lang.Object) header (java.lang.String) |
Modifiers | 1 | private |
Halstead Difficulty | 12.22 | - |
Variable Declarations | 2 | actualsLength (int) expectedsLength (int) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 374.06 | - |
Number of Operands | 40 | - |
Variable References | 12 | actuals (2) actualsLength (2) expecteds (2) expectedsLength (3) header (3) |
Number of Operators | 37 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 16 | - |
Number of Loops | 0 | - |
Analysis of Method : assertElementsEqual(Object, Object) in Class : org.junit.internal.ComparisonCriteria | ||
---|---|---|
Feature | Number | Values |
Name | assertElementsEqual | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 1 | - |
Halstead Length | 10 | - |
Halstead Vocabulary | 9 | - |
Halstead Effort | 76.08 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | java.lang.Object (2) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 1 | - |
Number of Comments | 0 | - |
Arguments | 2 | expected (java.lang.Object) actual (java.lang.Object) |
Modifiers | 2 | protected abstract |
Halstead Difficulty | 2.40 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 31.70 | - |
Number of Operands | 6 | - |
Variable References | 0 | |
Number of Operators | 4 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 0 | - |
Number of Loops | 0 | - |
Analysis of Method : isArray(Object) in Class : org.junit.internal.ComparisonCriteria | ||
---|---|---|
Feature | Number | Values |
Name | isArray | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 20 | - |
Halstead Vocabulary | 14 | - |
Halstead Effort | 456.88 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 1 | java.lang.Object (1) |
External Methods Called | 2 | java.lang.Object.getClass (1) getClass().isArray (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 1 | expected (java.lang.Object) |
Modifiers | 1 | private |
Halstead Difficulty | 6.00 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 76.15 | - |
Number of Operands | 9 | - |
Variable References | 2 | expected (2) |
Number of Operators | 11 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 4 | - |
Number of Loops | 0 | - |
Top of this page | Data Generated by JHawk - The Java Metrics tool | Home |