![]() | Analysis of Class : org.junit.experimental.max.MaxHistory (Includes summary list of methods in class) | Home |
Dashboard for Class : org.junit.experimental.max.MaxHistory |
---|
![]() |
Cyclomatic Complexity |
Summary of MaxHistory | ||
---|---|---|
Feature | Number | Values |
Name | MaxHistory | - |
Number of Methods | 11 | - |
LCOM | 0.10 | - |
Average Cyclomatic Complexity | 1.27 | - |
Number of Statements | 41 | - |
Halstead Cumulative Bugs | 0.41 | - |
Halstead Effort | 8688.00 | - |
UnWeighted Class Size | 15 | - |
Instance Variables | 4 | fFailureTimestamps (java.util.Map) fDurations (java.util.Map) fHistoryStore (java.io.File) serialVersionUID (long) |
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 | 12 | - |
CBO | 7 | - |
Maintainability Index | 180.33 | - |
Cumulative Number of Comment Lines | 19 | - |
Lines Of Code | 64 | - |
Fan In | 2 | - |
DIT | 1 | - |
Maintainability Index (NC) | 130.33 | - |
Specialization ratio | 0.00 | - |
Reuse Ratio | 0.00 | - |
COH | 0.16 | - |
Local Method Calls | 1 | readHistory (1) |
LCOM2 | 54.00 | - |
Max Complexity | 3 | - |
Halstead Cumulative Volume | 1219.80 | - |
Hierarchy Method Calls | 0 | |
Number of Queries | 7 | - |
Fan Out | 5 | - |
SuperClass Name | java.lang.Object | - |
SIX | 0.00 | - |
External Method Calls | 1 | java.io.ObjectInputStream.ObjectInputStream (1) e.printStackTrace (1) java.io.ObjectOutputStream.writeObject (1) org.junit.runner.Description.toString (5) org.junit.experimental.max.TestComparator.TestComparator (1) java.io.ObjectOutputStream.ObjectOutputStream (1) java.io.FileOutputStream.FileOutputStream (1) java.io.ObjectInputStream.close (1) java.io.File.exists (1) java.util.Map.get (2) java.util.Map.put (2) java.util.HashMap.HashMap (2) org.junit.experimental.max.MaxHistory.MaxHistory (1) java.io.File.delete (1) java.io.ObjectInputStream.readObject (1) java.io.FileInputStream.FileInputStream (1) org.junit.experimental.max.RememberingListener.RememberingListener (1) java.util.Map.containsKey (1) java.io.FileInputStream.close (1) java.io.ObjectOutputStream.close (1) org.junit.experimental.max.CouldNotReadCoreException.CouldNotReadCoreException (1) |
Superclasses | 0 | - |
Total Complexity | 14 | - |
Subclasses | 0 | - |
Message Passing Coupling | 1 | - |
Number of Commands | 4 | - |
Interfaces | 1 | java.io.Serializable |
Cumulative Number of Comments | 4 | - |
Halstead Cumulative Length | 296 | - |
Modifiers | 0 | - |
Methods in Class : org.junit.experimental.max.MaxHistory | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | |
![]() | MaxHistory | 1 | 0 | 2 | 10 | 9 | 99.06 | 0.01 | 1 | 0 | 0 | 3 | 0 | 1 | 7 | 3.12 | 0 | 0 | 0 | 0 | 0 | 31.70 | 5 | 2 | 5 | 0 | 1 | 0 |
![]() | forFolder | 3 | 4 | 6 | 42 | 21 | 1623.40 | 0.06 | 3 | 4 | 1 | 10 | 1 | 1 | 5 | 8.80 | 0 | 0 | 1 | 0 | 2 | 184.48 | 16 | 5 | 26 | 1 | 5 | 0 |
![]() | getFailureTimestamp | 1 | 0 | 2 | 16 | 12 | 163.88 | 0.02 | 2 | 2 | 0 | 3 | 0 | 1 | 0 | 2.86 | 0 | 0 | 0 | 0 | 0 | 57.36 | 8 | 2 | 8 | 0 | 2 | 0 |
![]() | getTestDuration | 1 | 0 | 2 | 16 | 12 | 163.88 | 0.02 | 2 | 2 | 0 | 3 | 0 | 1 | 0 | 2.86 | 0 | 0 | 0 | 0 | 0 | 57.36 | 8 | 2 | 8 | 0 | 2 | 0 |
![]() | isNewTest | 1 | 0 | 2 | 17 | 13 | 215.68 | 0.02 | 1 | 2 | 0 | 3 | 0 | 1 | 0 | 3.43 | 0 | 0 | 0 | 0 | 0 | 62.91 | 8 | 2 | 9 | 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 |
![]() | putTestDuration | 1 | 0 | 2 | 18 | 13 | 162.82 | 0.02 | 1 | 2 | 0 | 3 | 0 | 2 | 0 | 2.44 | 0 | 0 | 0 | 0 | 0 | 66.61 | 11 | 3 | 7 | 0 | 2 | 0 |
![]() | putTestFailureTimestamp | 1 | 0 | 2 | 18 | 13 | 162.82 | 0.02 | 1 | 2 | 0 | 3 | 0 | 2 | 0 | 2.44 | 0 | 0 | 0 | 0 | 0 | 66.61 | 11 | 3 | 7 | 0 | 2 | 0 |
![]() | readHistory | 2 | 0 | 10 | 65 | 27 | 3994.11 | 0.10 | 6 | 6 | 0 | 18 | 0 | 1 | 2 | 12.92 | 2 | 1 | 1 | 1 | 6 | 309.07 | 24 | 6 | 41 | 3 | 9 | 0 |
![]() | save | 1 | 0 | 4 | 29 | 18 | 628.82 | 0.04 | 3 | 4 | 0 | 6 | 0 | 0 | 1 | 5.20 | 1 | 1 | 0 | 0 | 0 | 120.93 | 13 | 3 | 16 | 0 | 5 | 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 : MaxHistory(File) in Class : org.junit.experimental.max.MaxHistory | ||
---|---|---|
Feature | Number | Values |
Name | MaxHistory | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 10 | - |
Halstead Vocabulary | 9 | - |
Halstead Effort | 99.06 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | java.io.File (1) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 1 | storedResults (java.io.File) |
Modifiers | 7 | private final private final private final private |
Halstead Difficulty | 3.12 | - |
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 | 5 | - |
Variable References | 2 | storedResults (1) fHistoryStore (1) |
Number of Operators | 5 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : forFolder(File) in Class : org.junit.experimental.max.MaxHistory | ||
---|---|---|
Feature | Number | Values |
Name | forFolder | - |
Cyclomatic Complexity | 3 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 6 | - |
Halstead Length | 42 | - |
Halstead Vocabulary | 21 | - |
Halstead Effort | 1623.40 | - |
Halstead Bugs | 0.06 | - |
Classes Referenced | 3 | org.junit.experimental.max.MaxHistory (2) java.io.File (1) org.junit.experimental.max.CouldNotReadCoreException (1) |
External Methods Called | 4 | java.io.File.delete (1) java.io.File.exists (1) e.printStackTrace (1) org.junit.experimental.max.MaxHistory.MaxHistory (1) |
Local Methods Called | 1 | readHistory (1) |
Lines Of Code | 10 | - |
Number of Comments | 1 | - |
Arguments | 1 | file (java.io.File) |
Modifiers | 5 | private static final public static |
Halstead Difficulty | 8.80 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 1 | org.junit.experimental.max.CouldNotReadCoreException (1) |
Number of casts | 0 | - |
Total Depth of Nesting | 2 | - |
Halstead Volume | 184.48 | - |
Number of Operands | 16 | - |
Variable References | 5 | file (4) e (1) |
Number of Operators | 26 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 5 | - |
Number of Loops | 0 | - |
Analysis of Method : getFailureTimestamp(Description) in Class : org.junit.experimental.max.MaxHistory | ||
---|---|---|
Feature | Number | Values |
Name | getFailureTimestamp | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 16 | - |
Halstead Vocabulary | 12 | - |
Halstead Effort | 163.88 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 2 | org.junit.runner.Description (1) java.lang.Long (1) |
External Methods Called | 2 | org.junit.runner.Description.toString (1) java.util.Map.get (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 1 | key (org.junit.runner.Description) |
Modifiers | 0 | - |
Halstead Difficulty | 2.86 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 57.36 | - |
Number of Operands | 8 | - |
Variable References | 2 | key (1) fFailureTimestamps (1) |
Number of Operators | 8 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : getTestDuration(Description) in Class : org.junit.experimental.max.MaxHistory | ||
---|---|---|
Feature | Number | Values |
Name | getTestDuration | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 16 | - |
Halstead Vocabulary | 12 | - |
Halstead Effort | 163.88 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 2 | org.junit.runner.Description (1) java.lang.Long (1) |
External Methods Called | 2 | java.util.Map.get (1) org.junit.runner.Description.toString (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 1 | key (org.junit.runner.Description) |
Modifiers | 0 | - |
Halstead Difficulty | 2.86 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 57.36 | - |
Number of Operands | 8 | - |
Variable References | 2 | key (1) fDurations (1) |
Number of Operators | 8 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : isNewTest(Description) in Class : org.junit.experimental.max.MaxHistory | ||
---|---|---|
Feature | Number | Values |
Name | isNewTest | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 17 | - |
Halstead Vocabulary | 13 | - |
Halstead Effort | 215.68 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 1 | org.junit.runner.Description (1) |
External Methods Called | 2 | org.junit.runner.Description.toString (1) java.util.Map.containsKey (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 1 | key (org.junit.runner.Description) |
Modifiers | 0 | - |
Halstead Difficulty | 3.43 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 62.91 | - |
Number of Operands | 8 | - |
Variable References | 2 | key (1) fDurations (1) |
Number of Operators | 9 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 3 | - |
Number of Loops | 0 | - |
Analysis of Method : listener() in Class : org.junit.experimental.max.MaxHistory | ||
---|---|---|
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.runner.notification.RunListener (1) org.junit.experimental.max.RememberingListener (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 : putTestDuration(Description, long) in Class : org.junit.experimental.max.MaxHistory | ||
---|---|---|
Feature | Number | Values |
Name | putTestDuration | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 18 | - |
Halstead Vocabulary | 13 | - |
Halstead Effort | 162.82 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 1 | org.junit.runner.Description (1) |
External Methods Called | 2 | java.util.Map.put (1) org.junit.runner.Description.toString (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 2 | description (org.junit.runner.Description) duration (long) |
Modifiers | 0 | - |
Halstead Difficulty | 2.44 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 66.61 | - |
Number of Operands | 11 | - |
Variable References | 3 | description (1) fDurations (1) duration (1) |
Number of Operators | 7 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : putTestFailureTimestamp(Description, long) in Class : org.junit.experimental.max.MaxHistory | ||
---|---|---|
Feature | Number | Values |
Name | putTestFailureTimestamp | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 18 | - |
Halstead Vocabulary | 13 | - |
Halstead Effort | 162.82 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 1 | org.junit.runner.Description (1) |
External Methods Called | 2 | java.util.Map.put (1) org.junit.runner.Description.toString (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 2 | key (org.junit.runner.Description) end (long) |
Modifiers | 0 | - |
Halstead Difficulty | 2.44 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 66.61 | - |
Number of Operands | 11 | - |
Variable References | 3 | end (1) key (1) fFailureTimestamps (1) |
Number of Operators | 7 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : readHistory(File) in Class : org.junit.experimental.max.MaxHistory | ||
---|---|---|
Feature | Number | Values |
Name | readHistory | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 10 | - |
Halstead Length | 65 | - |
Halstead Vocabulary | 27 | - |
Halstead Effort | 3994.11 | - |
Halstead Bugs | 0.10 | - |
Classes Referenced | 6 | java.io.ObjectInputStream (2) org.junit.experimental.max.MaxHistory (3) java.io.FileInputStream (2) java.io.File (1) org.junit.experimental.max.CouldNotReadCoreException (2) java.lang.Exception (1) |
External Methods Called | 6 | java.io.ObjectInputStream.readObject (1) java.io.ObjectInputStream.close (1) java.io.FileInputStream.FileInputStream (1) java.io.FileInputStream.close (1) org.junit.experimental.max.CouldNotReadCoreException.CouldNotReadCoreException (1) java.io.ObjectInputStream.ObjectInputStream (1) |
Local Methods Called | 0 | |
Lines Of Code | 18 | - |
Number of Comments | 0 | - |
Arguments | 1 | storedResults (java.io.File) |
Modifiers | 2 | private static |
Halstead Difficulty | 12.92 | - |
Variable Declarations | 2 | file (java.io.FileInputStream) stream (java.io.ObjectInputStream) |
Exceptions Thrown | 1 | org.junit.experimental.max.CouldNotReadCoreException (1) |
Exceptions Referenced | 1 | java.lang.Exception (1) |
Number of casts | 1 | - |
Total Depth of Nesting | 6 | - |
Halstead Volume | 309.07 | - |
Number of Operands | 24 | - |
Variable References | 6 | storedResults (1) file (2) e (1) stream (2) |
Number of Operators | 41 | - |
Max. depth of nesting | 3 | - |
Number of Expressions | 9 | - |
Number of Loops | 0 | - |
Analysis of Method : save() in Class : org.junit.experimental.max.MaxHistory | ||
---|---|---|
Feature | Number | Values |
Name | save | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 4 | - |
Halstead Length | 29 | - |
Halstead Vocabulary | 18 | - |
Halstead Effort | 628.82 | - |
Halstead Bugs | 0.04 | - |
Classes Referenced | 3 | java.io.ObjectOutputStream (2) java.io.IOException (1) java.io.FileOutputStream (1) |
External Methods Called | 4 | java.io.ObjectOutputStream.close (1) java.io.FileOutputStream.FileOutputStream (1) java.io.ObjectOutputStream.ObjectOutputStream (1) java.io.ObjectOutputStream.writeObject (1) |
Local Methods Called | 0 | |
Lines Of Code | 6 | - |
Number of Comments | 0 | - |
Arguments | 0 | - |
Modifiers | 1 | private |
Halstead Difficulty | 5.20 | - |
Variable Declarations | 1 | stream (java.io.ObjectOutputStream) |
Exceptions Thrown | 1 | java.io.IOException (1) |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 120.93 | - |
Number of Operands | 13 | - |
Variable References | 3 | stream (2) fHistoryStore (1) |
Number of Operators | 16 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 5 | - |
Number of Loops | 0 | - |
Analysis of Method : testComparator() in Class : org.junit.experimental.max.MaxHistory | ||
---|---|---|
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 | org.junit.runner.Description (1) org.junit.experimental.max.TestComparator (1) java.util.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 |