![]() | Analysis of Class : org.junit.experimental.max.MaxHistory$TestComparator (Includes summary list of methods in class) | Home |
Dashboard for Class : org.junit.experimental.max.MaxHistory$TestComparator |
---|
![]() |
Cyclomatic Complexity |
Summary of MaxHistory$TestComparator | ||
---|---|---|
Feature | Number | Values |
Name | MaxHistory$TestComparator | - |
Number of Methods | 2 | - |
LCOM | 0.00 | - |
Average Cyclomatic Complexity | 2.50 | - |
Number of Statements | 10 | - |
Halstead Cumulative Bugs | 0.13 | - |
Halstead Effort | 4105.53 | - |
UnWeighted Class Size | 2 | - |
Instance Variables | 0 | - |
Imported Packages | 14 | java.io.File java.io.FileInputStream java.io.FileOutputStream java.io.IOException java.io.ObjectInputStream java.io.ObjectOutputStream java.io.Serializable java.util.Comparator java.util.HashMap java.util.Map org.junit.runner.Description org.junit.runner.Result org.junit.runner.notification.Failure org.junit.runner.notification.RunListener |
Response For class | 2 | - |
CBO | 1 | - |
Maintainability Index | 168.63 | - |
Cumulative Number of Comment Lines | 3 | - |
Lines Of Code | 17 | - |
Fan In | 0 | - |
DIT | 1 | - |
Maintainability Index (NC) | 118.63 | - |
Specialization ratio | 0.00 | - |
Reuse Ratio | 0.00 | - |
COH | 0.00 | - |
Local Method Calls | 1 | getFailure (2) |
LCOM2 | 2.00 | - |
Max Complexity | 3 | - |
Halstead Cumulative Volume | 376.41 | - |
Hierarchy Method Calls | 3 | isNewTest (2) getTestDuration (2) getFailureTimestamp (1) |
Number of Queries | 2 | - |
Fan Out | 1 | - |
SuperClass Name | java.lang.Object | - |
SIX | 0.00 | - |
External Method Calls | 0 | o2().compareTo (1) o1().compareTo (1) |
Superclasses | 0 | - |
Total Complexity | 5 | - |
Subclasses | 0 | - |
Message Passing Coupling | 0 | - |
Number of Commands | 0 | - |
Interfaces | 1 | java.util.Comparator |
Cumulative Number of Comments | 4 | - |
Halstead Cumulative Length | 88 | - |
Modifiers | 1 | private |
Methods in Class : org.junit.experimental.max.MaxHistory$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 |
Analysis of Method : compare(Description, Description) in Class : org.junit.experimental.max.MaxHistory$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 | org.junit.runner.Description (2) |
External Methods Called | 2 | o2().compareTo (1) o1().compareTo (1) |
Local Methods Called | 3 | getTestDuration (2) isNewTest (2) getFailure (2) |
Lines Of Code | 9 | - |
Number of Comments | 3 | - |
Arguments | 2 | o1 (org.junit.runner.Description) o2 (org.junit.runner.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.MaxHistory$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 | org.junit.runner.Description (1) java.lang.Long (2) |
External Methods Called | 0 | |
Local Methods Called | 1 | getFailureTimestamp (1) |
Lines Of Code | 6 | - |
Number of Comments | 1 | - |
Arguments | 1 | key (org.junit.runner.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 | - |
Top of this page | Data Generated by JHawk - The Java Metrics tool | Home |