![]() | Analysis of Class : org.junit.runner.notification.Failure (Includes summary list of methods in class) | Home |
Dashboard for Class : org.junit.runner.notification.Failure |
---|
![]() |
Cyclomatic Complexity |
Summary of Failure | ||
---|---|---|
Feature | Number | Values |
Name | Failure | - |
Number of Methods | 7 | - |
LCOM | 0.08 | - |
Average Cyclomatic Complexity | 1.00 | - |
Number of Statements | 24 | - |
Halstead Cumulative Bugs | 0.18 | - |
Halstead Effort | 2680.42 | - |
UnWeighted Class Size | 9 | - |
Instance Variables | 2 | fDescription (org.junit.runner.Description) fThrownException (java.lang.Throwable) |
Imported Packages | 3 | java.io.PrintWriter java.io.StringWriter org.junit.runner.Description |
Response For class | 7 | - |
CBO | 18 | - |
Maintainability Index | 133.10 | - |
Cumulative Number of Comment Lines | 29 | - |
Lines Of Code | 33 | - |
Fan In | 17 | - |
DIT | 1 | - |
Maintainability Index (NC) | 132.86 | - |
Specialization ratio | 0.00 | - |
Reuse Ratio | 0.00 | - |
COH | 0.43 | - |
Local Method Calls | 2 | getException (2) getTestHeader (1) |
LCOM2 | 8.00 | - |
Max Complexity | 1 | - |
Halstead Cumulative Volume | 526.54 | - |
Hierarchy Method Calls | 0 | |
Number of Queries | 6 | - |
Fan Out | 1 | - |
SuperClass Name | java.lang.Object | - |
SIX | 0.00 | - |
External Method Calls | 0 | java.lang.StringBuffer.StringBuffer (1) org.junit.runner.Description.getDisplayName (1) java.lang.StringBuffer.append (1) java.io.StringWriter.StringWriter (1) java.lang.StringBuffer.toString (2) java.io.PrintWriter.PrintWriter (1) java.io.StringWriter.getBuffer (1) java.lang.Throwable.getMessage (1) java.lang.String.getMessage (1) stringWriter().printStackTrace (1) |
Superclasses | 0 | - |
Total Complexity | 7 | - |
Subclasses | 0 | - |
Message Passing Coupling | 0 | - |
Number of Commands | 1 | - |
Interfaces | 0 | - |
Cumulative Number of Comments | 7 | - |
Halstead Cumulative Length | 138 | - |
Modifiers | 0 | - |
Methods in Class : org.junit.runner.notification.Failure | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | |
![]() | Failure | 1 | 5 | 3 | 16 | 12 | 184.37 | 0.02 | 2 | 0 | 0 | 4 | 1 | 2 | 5 | 3.21 | 0 | 0 | 0 | 0 | 0 | 57.36 | 9 | 4 | 7 | 0 | 2 | 0 |
![]() | getDescription | 1 | 3 | 2 | 8 | 8 | 60.00 | 0.01 | 1 | 0 | 0 | 3 | 1 | 0 | 1 | 2.50 | 0 | 0 | 0 | 0 | 0 | 24.00 | 3 | 1 | 5 | 0 | 0 | 0 |
![]() | getException | 1 | 3 | 2 | 8 | 8 | 60.00 | 0.01 | 1 | 0 | 0 | 3 | 1 | 0 | 1 | 2.50 | 0 | 0 | 0 | 0 | 0 | 24.00 | 3 | 1 | 5 | 0 | 0 | 0 |
![]() | getMessage | 1 | 4 | 2 | 12 | 9 | 152.16 | 0.01 | 1 | 1 | 1 | 3 | 1 | 0 | 1 | 4.00 | 0 | 0 | 0 | 0 | 0 | 38.04 | 4 | 0 | 8 | 0 | 2 | 0 |
![]() | getTestHeader | 1 | 3 | 2 | 11 | 10 | 109.62 | 0.01 | 1 | 1 | 0 | 3 | 1 | 0 | 1 | 3.00 | 0 | 0 | 0 | 0 | 0 | 36.54 | 4 | 1 | 7 | 0 | 1 | 0 |
![]() | getTrace | 1 | 4 | 6 | 41 | 20 | 1063.19 | 0.06 | 4 | 5 | 1 | 7 | 1 | 0 | 1 | 6.00 | 3 | 0 | 0 | 0 | 0 | 177.20 | 18 | 4 | 23 | 0 | 9 | 0 |
![]() | toString | 1 | 0 | 4 | 34 | 20 | 1028.62 | 0.05 | 2 | 4 | 1 | 5 | 0 | 0 | 2 | 7.00 | 1 | 0 | 0 | 0 | 0 | 146.95 | 14 | 3 | 20 | 0 | 8 | 0 |
Analysis of Method : Failure(Description, Throwable) in Class : org.junit.runner.notification.Failure | ||
---|---|---|
Feature | Number | Values |
Name | Failure | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 5 | - |
Number of Statements | 3 | - |
Halstead Length | 16 | - |
Halstead Vocabulary | 12 | - |
Halstead Effort | 184.37 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 2 | org.junit.runner.Description (1) java.lang.Throwable (1) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 4 | - |
Number of Comments | 1 | - |
Arguments | 2 | description (org.junit.runner.Description) thrownException (java.lang.Throwable) |
Modifiers | 5 | private final private final public |
Halstead Difficulty | 3.21 | - |
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 | 9 | - |
Variable References | 4 | fDescription (1) fThrownException (1) description (1) thrownException (1) |
Number of Operators | 7 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : getDescription() in Class : org.junit.runner.notification.Failure | ||
---|---|---|
Feature | Number | Values |
Name | getDescription | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 8 | - |
Halstead Vocabulary | 8 | - |
Halstead Effort | 60.00 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | org.junit.runner.Description (1) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 1 | public |
Halstead Difficulty | 2.50 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 24.00 | - |
Number of Operands | 3 | - |
Variable References | 1 | fDescription (1) |
Number of Operators | 5 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 0 | - |
Number of Loops | 0 | - |
Analysis of Method : getException() in Class : org.junit.runner.notification.Failure | ||
---|---|---|
Feature | Number | Values |
Name | getException | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 8 | - |
Halstead Vocabulary | 8 | - |
Halstead Effort | 60.00 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | java.lang.Throwable (1) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 1 | public |
Halstead Difficulty | 2.50 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 24.00 | - |
Number of Operands | 3 | - |
Variable References | 1 | fThrownException (1) |
Number of Operators | 5 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 0 | - |
Number of Loops | 0 | - |
Analysis of Method : getMessage() in Class : org.junit.runner.notification.Failure | ||
---|---|---|
Feature | Number | Values |
Name | getMessage | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 2 | - |
Halstead Length | 12 | - |
Halstead Vocabulary | 9 | - |
Halstead Effort | 152.16 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | java.lang.String (1) |
External Methods Called | 1 | java.lang.String.getMessage (1) |
Local Methods Called | 1 | getException (1) |
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 | 38.04 | - |
Number of Operands | 4 | - |
Variable References | 0 | |
Number of Operators | 8 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : getTestHeader() in Class : org.junit.runner.notification.Failure | ||
---|---|---|
Feature | Number | Values |
Name | getTestHeader | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 11 | - |
Halstead Vocabulary | 10 | - |
Halstead Effort | 109.62 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | java.lang.String (1) |
External Methods Called | 1 | org.junit.runner.Description.getDisplayName (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 | 36.54 | - |
Number of Operands | 4 | - |
Variable References | 1 | fDescription (1) |
Number of Operators | 7 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : getTrace() in Class : org.junit.runner.notification.Failure | ||
---|---|---|
Feature | Number | Values |
Name | getTrace | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 6 | - |
Halstead Length | 41 | - |
Halstead Vocabulary | 20 | - |
Halstead Effort | 1063.19 | - |
Halstead Bugs | 0.06 | - |
Classes Referenced | 4 | java.io.StringWriter (2) java.io.PrintWriter (2) java.lang.String (1) java.lang.StringBuffer (1) |
External Methods Called | 5 | stringWriter().printStackTrace (1) java.io.StringWriter.StringWriter (1) java.lang.StringBuffer.toString (1) java.io.StringWriter.getBuffer (1) java.io.PrintWriter.PrintWriter (1) |
Local Methods Called | 1 | getException (1) |
Lines Of Code | 7 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 1 | public |
Halstead Difficulty | 6.00 | - |
Variable Declarations | 3 | buffer (java.lang.StringBuffer) stringWriter (java.io.StringWriter) writer (java.io.PrintWriter) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 177.20 | - |
Number of Operands | 18 | - |
Variable References | 4 | buffer (1) stringWriter (2) writer (1) |
Number of Operators | 23 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 9 | - |
Number of Loops | 0 | - |
Analysis of Method : toString() in Class : org.junit.runner.notification.Failure | ||
---|---|---|
Feature | Number | Values |
Name | toString | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 4 | - |
Halstead Length | 34 | - |
Halstead Vocabulary | 20 | - |
Halstead Effort | 1028.62 | - |
Halstead Bugs | 0.05 | - |
Classes Referenced | 2 | java.lang.String (1) java.lang.StringBuffer (2) |
External Methods Called | 4 | java.lang.StringBuffer.toString (1) java.lang.Throwable.getMessage (1) java.lang.StringBuffer.StringBuffer (1) java.lang.StringBuffer.append (1) |
Local Methods Called | 1 | getTestHeader (1) |
Lines Of Code | 5 | - |
Number of Comments | 0 | - |
Arguments | 0 | - |
Modifiers | 2 | @Override public |
Halstead Difficulty | 7.00 | - |
Variable Declarations | 1 | buffer (java.lang.StringBuffer) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 146.95 | - |
Number of Operands | 14 | - |
Variable References | 3 | buffer (2) fThrownException (1) |
Number of Operators | 20 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 8 | - |
Number of Loops | 0 | - |
Top of this page | Data Generated by JHawk - The Java Metrics tool | Home |