![]() | Analysis of Class : org.junit.experimental.max.TestComparator (Includes summary list of methods in class) | Home |
Dashboard for Class : org.junit.experimental.max.TestComparator |
---|
![]() |
Cyclomatic Complexity |
Summary of TestComparator | ||
---|---|---|
Feature | Number | Values |
Name | TestComparator | - |
Number of Methods | 4 | - |
LCOM | 0.00 | - |
Average Cyclomatic Complexity | 1.75 | - |
Number of Statements | 14 | - |
Halstead Cumulative Bugs | 0.15 | - |
Halstead Effort | 4387.05 | - |
UnWeighted Class Size | 4 | - |
Instance Variables | 0 | - |
Imported Packages | 0 | - |
Response For class | 4 | - |
CBO | 3 | - |
Maintainability Index | 129.13 | - |
Cumulative Number of Comment Lines | 3 | - |
Lines Of Code | 17 | - |
Fan In | 1 | - |
DIT | 1 | - |
Maintainability Index (NC) | 129.13 | - |
Specialization ratio | 0.00 | - |
Reuse Ratio | 0.00 | - |
COH | 0.00 | - |
Local Method Calls | 1 | getFailure (2) |
LCOM2 | 4.00 | - |
Max Complexity | 3 | - |
Halstead Cumulative Volume | 454.71 | - |
Hierarchy Method Calls | 3 | isNewTest (2) getTestDuration (2) getFailureTimestamp (1) |
Number of Queries | 4 | - |
Fan Out | 2 | - |
SuperClass Name | java.lang.Object | - |
SIX | 0.00 | - |
External Method Calls | 0 | org.junit.experimental.max.TestComparator.TestComparator (1) o1().compareTo (1) org.junit.experimental.max.RememberingListener.RememberingListener (1) o2().compareTo (1) |
Superclasses | 0 | - |
Total Complexity | 7 | - |
Subclasses | 0 | - |
Message Passing Coupling | 0 | - |
Number of Commands | 0 | - |
Interfaces | 1 | Comparator |
Cumulative Number of Comments | 6 | - |
Halstead Cumulative Length | 111 | - |
Modifiers | 1 | private |
Methods in Class : org.junit.experimental.max.TestComparator | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | |
![]() | compare | 3 | 3 | 5 | 56 | 24 | 3466.23 | 0.09 | 1 | 2 | 3 | 9 | 3 | 2 | 1 | 13.50 | 1 | 0 | 0 | 0 | 0 | 256.76 | 27 | 8 | 29 | 0 | 12 | 0 |
![]() | getFailure | 2 | 0 | 4 | 25 | 16 | 600.00 | 0.03 | 2 | 0 | 1 | 6 | 1 | 1 | 1 | 6.00 | 1 | 0 | 0 | 0 | 0 | 100.00 | 12 | 3 | 13 | 0 | 3 | 0 |
![]() | listener | 1 | 4 | 2 | 10 | 9 | 95.10 | 0.01 | 2 | 1 | 0 | 3 | 1 | 0 | 1 | 3.00 | 0 | 0 | 0 | 0 | 0 | 31.70 | 3 | 0 | 7 | 0 | 1 | 0 |
![]() | testComparator | 1 | 4 | 2 | 13 | 12 | 186.42 | 0.02 | 3 | 1 | 0 | 3 | 1 | 0 | 1 | 4.00 | 0 | 0 | 0 | 0 | 0 | 46.60 | 4 | 0 | 9 | 0 | 1 | 0 |
Analysis of Method : compare(Description, Description) in Class : org.junit.experimental.max.TestComparator | ||
---|---|---|
Feature | Number | Values |
Name | compare | - |
Cyclomatic Complexity | 3 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 5 | - |
Halstead Length | 56 | - |
Halstead Vocabulary | 24 | - |
Halstead Effort | 3466.23 | - |
Halstead Bugs | 0.09 | - |
Classes Referenced | 1 | Description (2) |
External Methods Called | 2 | o1().compareTo (1) o2().compareTo (1) |
Local Methods Called | 3 | getTestDuration (2) isNewTest (2) getFailure (2) |
Lines Of Code | 9 | - |
Number of Comments | 3 | - |
Arguments | 2 | o1 (Description) o2 (Description) |
Modifiers | 1 | public |
Halstead Difficulty | 13.50 | - |
Variable Declarations | 1 | result (int) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 256.76 | - |
Number of Operands | 27 | - |
Variable References | 8 | result (2) o2 (3) o1 (3) |
Number of Operators | 29 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 12 | - |
Number of Loops | 0 | - |
Analysis of Method : getFailure(Description) in Class : org.junit.experimental.max.TestComparator | ||
---|---|---|
Feature | Number | Values |
Name | getFailure | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 4 | - |
Halstead Length | 25 | - |
Halstead Vocabulary | 16 | - |
Halstead Effort | 600.00 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 2 | java.lang.Long (2) Description (1) |
External Methods Called | 0 | |
Local Methods Called | 1 | getFailureTimestamp (1) |
Lines Of Code | 6 | - |
Number of Comments | 1 | - |
Arguments | 1 | key (Description) |
Modifiers | 1 | private |
Halstead Difficulty | 6.00 | - |
Variable Declarations | 1 | result (java.lang.Long) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 100.00 | - |
Number of Operands | 12 | - |
Variable References | 3 | result (2) key (1) |
Number of Operators | 13 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 3 | - |
Number of Loops | 0 | - |
Analysis of Method : listener() in Class : org.junit.experimental.max.TestComparator | ||
---|---|---|
Feature | Number | Values |
Name | listener | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 2 | - |
Halstead Length | 10 | - |
Halstead Vocabulary | 9 | - |
Halstead Effort | 95.10 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 2 | org.junit.experimental.max.RememberingListener (1) RunListener (1) |
External Methods Called | 1 | org.junit.experimental.max.RememberingListener.RememberingListener (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 1 | public |
Halstead Difficulty | 3.00 | - |
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 | 3 | - |
Variable References | 0 | |
Number of Operators | 7 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : testComparator() in Class : org.junit.experimental.max.TestComparator | ||
---|---|---|
Feature | Number | Values |
Name | testComparator | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 2 | - |
Halstead Length | 13 | - |
Halstead Vocabulary | 12 | - |
Halstead Effort | 186.42 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 3 | Description (1) org.junit.experimental.max.TestComparator (1) Comparator (1) |
External Methods Called | 1 | org.junit.experimental.max.TestComparator.TestComparator (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 1 | public |
Halstead Difficulty | 4.00 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 46.60 | - |
Number of Operands | 4 | - |
Variable References | 0 | |
Number of Operators | 9 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Top of this page | Data Generated by JHawk - The Java Metrics tool | Home |