![]() | Analysis of Class : junit.framework.TestFailure (Includes summary list of methods in class) | Home |
Dashboard for Class : junit.framework.TestFailure |
---|
![]() |
Cyclomatic Complexity |
Summary of TestFailure | ||
---|---|---|
Feature | Number | Values |
Name | TestFailure | - |
Number of Methods | 7 | - |
LCOM | 0.08 | - |
Average Cyclomatic Complexity | 1.00 | - |
Number of Statements | 24 | - |
Halstead Cumulative Bugs | 0.18 | - |
Halstead Effort | 2642.69 | - |
UnWeighted Class Size | 9 | - |
Instance Variables | 2 | fThrownException (java.lang.Throwable) fFailedTest (junit.framework.Test) |
Imported Packages | 2 | java.io.PrintWriter java.io.StringWriter |
Response For class | 7 | - |
CBO | 4 | - |
Maintainability Index | 172.79 | - |
Cumulative Number of Comment Lines | 17 | - |
Lines Of Code | 33 | - |
Fan In | 2 | - |
DIT | 1 | - |
Maintainability Index (NC) | 132.91 | - |
Specialization ratio | 0.00 | - |
Reuse Ratio | 0.50 | - |
COH | 0.43 | - |
Local Method Calls | 1 | thrownException (3) |
LCOM2 | 7.00 | - |
Max Complexity | 1 | - |
Halstead Cumulative Volume | 533.29 | - |
Hierarchy Method Calls | 0 | |
Number of Queries | 6 | - |
Fan Out | 2 | - |
SuperClass Name | java.lang.Object | - |
SIX | 0.00 | - |
External Method Calls | 0 | java.io.StringWriter.StringWriter (1) java.lang.StringBuffer.append (1) java.io.PrintWriter.PrintWriter (1) java.lang.StringBuffer.toString (2) java.io.StringWriter.getBuffer (1) java.lang.StringBuffer.StringBuffer (1) java.lang.Throwable.getMessage (1) java.lang.String.getMessage (1) stringWriter().printStackTrace (1) |
Superclasses | 1 | java.lang.Object |
Total Complexity | 7 | - |
Subclasses | 0 | - |
Message Passing Coupling | 0 | - |
Number of Commands | 1 | - |
Interfaces | 0 | - |
Cumulative Number of Comments | 5 | - |
Halstead Cumulative Length | 139 | - |
Modifiers | 0 | - |
Methods in Class : junit.framework.TestFailure | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | |
![]() | TestFailure | 1 | 3 | 3 | 16 | 12 | 184.37 | 0.02 | 2 | 0 | 0 | 4 | 1 | 2 | 3 | 3.21 | 0 | 0 | 0 | 0 | 0 | 57.36 | 9 | 4 | 7 | 0 | 2 | 0 |
![]() | exceptionMessage | 1 | 0 | 2 | 12 | 10 | 119.59 | 0.01 | 1 | 1 | 1 | 3 | 0 | 0 | 1 | 3.00 | 0 | 0 | 0 | 0 | 0 | 39.86 | 4 | 0 | 8 | 0 | 2 | 0 |
![]() | failedTest | 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 |
![]() | isFailure | 1 | 0 | 2 | 11 | 10 | 109.62 | 0.01 | 1 | 0 | 1 | 3 | 0 | 0 | 1 | 3.00 | 0 | 0 | 0 | 0 | 0 | 36.54 | 4 | 0 | 7 | 0 | 2 | 0 |
![]() | thrownException | 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 |
![]() | toString | 1 | 3 | 4 | 33 | 20 | 998.37 | 0.05 | 2 | 4 | 0 | 5 | 1 | 0 | 2 | 7.00 | 1 | 0 | 0 | 0 | 0 | 142.62 | 14 | 4 | 19 | 0 | 7 | 0 |
![]() | trace | 1 | 0 | 6 | 41 | 20 | 1063.19 | 0.06 | 4 | 5 | 1 | 7 | 0 | 0 | 1 | 6.00 | 3 | 0 | 0 | 0 | 0 | 177.20 | 18 | 4 | 23 | 0 | 9 | 0 |
Analysis of Method : TestFailure(Test, Throwable) in Class : junit.framework.TestFailure | ||
---|---|---|
Feature | Number | Values |
Name | TestFailure | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 3 | - |
Halstead Length | 16 | - |
Halstead Vocabulary | 12 | - |
Halstead Effort | 184.37 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 2 | junit.framework.Test (1) java.lang.Throwable (1) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 4 | - |
Number of Comments | 1 | - |
Arguments | 2 | failedTest (junit.framework.Test) thrownException (java.lang.Throwable) |
Modifiers | 3 | protected protected 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 | fThrownException (1) fFailedTest (1) thrownException (1) failedTest (1) |
Number of Operators | 7 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : exceptionMessage() in Class : junit.framework.TestFailure | ||
---|---|---|
Feature | Number | Values |
Name | exceptionMessage | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 12 | - |
Halstead Vocabulary | 10 | - |
Halstead Effort | 119.59 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | java.lang.String (1) |
External Methods Called | 1 | java.lang.String.getMessage (1) |
Local Methods Called | 1 | thrownException (1) |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
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 | 39.86 | - |
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 : failedTest() in Class : junit.framework.TestFailure | ||
---|---|---|
Feature | Number | Values |
Name | failedTest | - |
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 | junit.framework.Test (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 | fFailedTest (1) |
Number of Operators | 5 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 0 | - |
Number of Loops | 0 | - |
Analysis of Method : isFailure() in Class : junit.framework.TestFailure | ||
---|---|---|
Feature | Number | Values |
Name | isFailure | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 11 | - |
Halstead Vocabulary | 10 | - |
Halstead Effort | 109.62 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | junit.framework.AssertionFailedError (1) |
External Methods Called | 0 | |
Local Methods Called | 1 | thrownException (1) |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
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 | 0 | |
Number of Operators | 7 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : thrownException() in Class : junit.framework.TestFailure | ||
---|---|---|
Feature | Number | Values |
Name | thrownException | - |
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 : toString() in Class : junit.framework.TestFailure | ||
---|---|---|
Feature | Number | Values |
Name | toString | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 4 | - |
Halstead Length | 33 | - |
Halstead Vocabulary | 20 | - |
Halstead Effort | 998.37 | - |
Halstead Bugs | 0.05 | - |
Classes Referenced | 2 | java.lang.String (1) java.lang.StringBuffer (2) |
External Methods Called | 4 | java.lang.Throwable.getMessage (1) java.lang.StringBuffer.append (1) java.lang.StringBuffer.toString (1) java.lang.StringBuffer.StringBuffer (1) |
Local Methods Called | 0 | |
Lines Of Code | 5 | - |
Number of Comments | 1 | - |
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 | 142.62 | - |
Number of Operands | 14 | - |
Variable References | 4 | buffer (2) fThrownException (1) fFailedTest (1) |
Number of Operators | 19 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 7 | - |
Number of Loops | 0 | - |
Analysis of Method : trace() in Class : junit.framework.TestFailure | ||
---|---|---|
Feature | Number | Values |
Name | trace | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
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 | java.io.StringWriter.getBuffer (1) stringWriter().printStackTrace (1) java.io.PrintWriter.PrintWriter (1) java.io.StringWriter.StringWriter (1) java.lang.StringBuffer.toString (1) |
Local Methods Called | 1 | thrownException (1) |
Lines Of Code | 7 | - |
Number of Comments | 0 | - |
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 | - |
Top of this page | Data Generated by JHawk - The Java Metrics tool | Home |