![]() | Analysis of Class : junit.textui.ResultPrinter (Includes summary list of methods in class) | Home |
Dashboard for Class : junit.textui.ResultPrinter |
---|
![]() |
Cyclomatic Complexity |
Summary of ResultPrinter | ||
---|---|---|
Feature | Number | Values |
Name | ResultPrinter | - |
Number of Methods | 17 | - |
LCOM | 0.44 | - |
Average Cyclomatic Complexity | 1.29 | - |
Number of Statements | 59 | - |
Halstead Cumulative Bugs | 0.67 | - |
Halstead Effort | 14110.58 | - |
UnWeighted Class Size | 19 | - |
Instance Variables | 2 | fColumn (int) fWriter (java.io.PrintStream) |
Imported Packages | 9 | java.io.PrintStream java.text.NumberFormat java.util.Enumeration junit.framework.AssertionFailedError junit.framework.Test junit.framework.TestFailure junit.framework.TestListener junit.framework.TestResult junit.runner.BaseTestRunner |
Response For class | 17 | - |
CBO | 7 | - |
Maintainability Index | 180.16 | - |
Cumulative Number of Comment Lines | 22 | - |
Lines Of Code | 82 | - |
Fan In | 1 | - |
DIT | 1 | - |
Maintainability Index (NC) | 130.16 | - |
Specialization ratio | 0.00 | - |
Reuse Ratio | 0.00 | - |
COH | 0.09 | - |
Local Method Calls | 10 | printFooter (1) printErrors (1) printFailures (1) printDefectHeader (1) elapsedTimeAsString (1) printHeader (1) printDefectTrace (1) getWriter (19) printDefects (2) printDefect (1) |
LCOM2 | 58.00 | - |
Max Complexity | 4 | - |
Halstead Cumulative Volume | 2005.51 | - |
Hierarchy Method Calls | 0 | |
Number of Queries | 2 | - |
Fan Out | 6 | - |
SuperClass Name | java.lang.Object | - |
SIX | 0.00 | - |
External Method Calls | 0 | junit.framework.TestResult.failures (1) java.text.NumberFormat.getInstance (1) junit.runner.BaseTestRunner.getFilteredTrace (1) junit.framework.TestResult.errorCount (2) junit.framework.TestFailure.failedTest (1) junit.framework.TestResult.failureCount (2) void.println (1) java.util.Enumeration.hasMoreElements (1) fColumn().println (1) getInstance().format (1) result().println (1) junit.framework.TestResult.errors (1) type().println (1) void.print (2) println().println (5) junit.framework.TestResult.runCount (3) failedTest().print (1) java.util.Enumeration.nextElement (1) wasSuccessful().println (1) println().print (1) runCount().println (1) booBoo().print (1) junit.framework.TestFailure.trace (1) errorCount().println (1) junit.framework.TestResult.wasSuccessful (1) fWriter().print (1) count().println (1) |
Superclasses | 0 | - |
Total Complexity | 22 | - |
Subclasses | 0 | - |
Message Passing Coupling | 0 | - |
Number of Commands | 15 | - |
Interfaces | 1 | junit.framework.TestListener |
Cumulative Number of Comments | 10 | - |
Halstead Cumulative Length | 469 | - |
Modifiers | 0 | - |
Methods in Class : junit.textui.ResultPrinter | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | |
![]() | ResultPrinter | 1 | 0 | 2 | 10 | 9 | 99.06 | 0.01 | 1 | 0 | 0 | 3 | 0 | 1 | 1 | 3.12 | 0 | 0 | 0 | 0 | 0 | 31.70 | 5 | 2 | 5 | 0 | 1 | 0 |
![]() | addError | 1 | 3 | 2 | 16 | 14 | 152.29 | 0.02 | 2 | 1 | 1 | 3 | 1 | 2 | 1 | 2.50 | 0 | 0 | 0 | 0 | 0 | 60.92 | 9 | 0 | 7 | 0 | 2 | 0 |
![]() | addFailure | 1 | 3 | 2 | 16 | 14 | 152.29 | 0.02 | 2 | 1 | 1 | 3 | 1 | 2 | 1 | 2.50 | 0 | 0 | 0 | 0 | 0 | 60.92 | 9 | 0 | 7 | 0 | 2 | 0 |
![]() | elapsedTimeAsString | 1 | 4 | 2 | 21 | 16 | 326.67 | 0.03 | 2 | 2 | 0 | 3 | 1 | 1 | 1 | 3.89 | 0 | 0 | 0 | 1 | 0 | 84.00 | 10 | 1 | 11 | 0 | 4 | 0 |
![]() | endTest | 1 | 3 | 1 | 7 | 7 | 29.48 | 0.01 | 1 | 0 | 0 | 2 | 1 | 1 | 1 | 1.50 | 0 | 0 | 0 | 0 | 0 | 19.65 | 4 | 0 | 3 | 0 | 0 | 0 |
![]() | getWriter | 1 | 0 | 2 | 8 | 8 | 60.00 | 0.01 | 1 | 0 | 0 | 3 | 0 | 0 | 1 | 2.50 | 0 | 0 | 0 | 0 | 0 | 24.00 | 3 | 1 | 5 | 0 | 0 | 0 |
![]() | 1 | 2 | 5 | 25 | 14 | 266.51 | 0.03 | 1 | 0 | 4 | 6 | 1 | 2 | 1 | 2.80 | 0 | 0 | 0 | 0 | 0 | 95.18 | 14 | 4 | 11 | 0 | 4 | 0 | |
![]() | printDefect | 1 | 0 | 3 | 18 | 12 | 177.46 | 0.02 | 1 | 0 | 2 | 4 | 1 | 2 | 1 | 2.75 | 0 | 0 | 0 | 0 | 0 | 64.53 | 11 | 3 | 7 | 0 | 1 | 0 |
![]() | printDefectHeader | 1 | 2 | 2 | 23 | 16 | 331.20 | 0.03 | 1 | 2 | 1 | 3 | 2 | 2 | 1 | 3.60 | 0 | 0 | 0 | 0 | 0 | 92.00 | 12 | 2 | 11 | 0 | 5 | 0 |
![]() | printDefectTrace | 1 | 0 | 2 | 21 | 14 | 222.10 | 0.03 | 2 | 3 | 1 | 3 | 0 | 1 | 1 | 2.78 | 0 | 0 | 0 | 0 | 0 | 79.95 | 10 | 1 | 11 | 0 | 4 | 0 |
![]() | printDefects | 4 | 0 | 9 | 80 | 37 | 5256.81 | 0.14 | 3 | 4 | 2 | 10 | 0 | 3 | 1 | 12.61 | 1 | 0 | 0 | 0 | 1 | 416.76 | 37 | 10 | 43 | 1 | 17 | 1 |
![]() | printErrors | 1 | 0 | 2 | 19 | 13 | 219.71 | 0.02 | 1 | 2 | 1 | 3 | 0 | 1 | 1 | 3.12 | 0 | 0 | 0 | 0 | 0 | 70.31 | 10 | 2 | 9 | 0 | 2 | 0 |
![]() | printFailures | 1 | 0 | 2 | 19 | 13 | 219.71 | 0.02 | 1 | 2 | 1 | 3 | 0 | 1 | 1 | 3.12 | 0 | 0 | 0 | 0 | 0 | 70.31 | 10 | 2 | 9 | 0 | 2 | 0 |
![]() | printFooter | 2 | 0 | 9 | 102 | 33 | 5273.91 | 0.17 | 1 | 10 | 1 | 14 | 0 | 1 | 1 | 10.25 | 0 | 0 | 0 | 0 | 2 | 514.53 | 41 | 6 | 61 | 1 | 31 | 0 |
![]() | printHeader | 1 | 2 | 3 | 24 | 14 | 376.93 | 0.03 | 0 | 1 | 2 | 4 | 1 | 1 | 1 | 4.12 | 0 | 0 | 0 | 0 | 0 | 91.38 | 11 | 1 | 13 | 0 | 6 | 0 |
![]() | printWaitPrompt | 1 | 0 | 3 | 17 | 9 | 150.89 | 0.02 | 0 | 2 | 1 | 4 | 0 | 0 | 0 | 2.80 | 0 | 0 | 0 | 0 | 0 | 53.89 | 7 | 0 | 10 | 0 | 4 | 0 |
![]() | startTest | 2 | 3 | 5 | 31 | 20 | 712.53 | 0.04 | 1 | 2 | 1 | 7 | 1 | 1 | 1 | 5.32 | 0 | 0 | 0 | 0 | 1 | 133.98 | 13 | 2 | 18 | 1 | 7 | 0 |
Analysis of Method : ResultPrinter(PrintStream) in Class : junit.textui.ResultPrinter | ||
---|---|---|
Feature | Number | Values |
Name | ResultPrinter | - |
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.PrintStream (1) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 1 | writer (java.io.PrintStream) |
Modifiers | 1 | public |
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 | writer (1) fWriter (1) |
Number of Operators | 5 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : addError(Test, Throwable) in Class : junit.textui.ResultPrinter | ||
---|---|---|
Feature | Number | Values |
Name | addError | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 16 | - |
Halstead Vocabulary | 14 | - |
Halstead Effort | 152.29 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 2 | junit.framework.Test (1) java.lang.Throwable (1) |
External Methods Called | 1 | fWriter().print (1) |
Local Methods Called | 1 | getWriter (1) |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 2 | test (junit.framework.Test) t (java.lang.Throwable) |
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 | 60.92 | - |
Number of Operands | 9 | - |
Variable References | 0 | |
Number of Operators | 7 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : addFailure(Test, AssertionFailedError) in Class : junit.textui.ResultPrinter | ||
---|---|---|
Feature | Number | Values |
Name | addFailure | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 16 | - |
Halstead Vocabulary | 14 | - |
Halstead Effort | 152.29 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 2 | junit.framework.AssertionFailedError (1) junit.framework.Test (1) |
External Methods Called | 1 | void.print (1) |
Local Methods Called | 1 | getWriter (1) |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 2 | test (junit.framework.Test) t (junit.framework.AssertionFailedError) |
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 | 60.92 | - |
Number of Operands | 9 | - |
Variable References | 0 | |
Number of Operators | 7 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : elapsedTimeAsString(long) in Class : junit.textui.ResultPrinter | ||
---|---|---|
Feature | Number | Values |
Name | elapsedTimeAsString | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 2 | - |
Halstead Length | 21 | - |
Halstead Vocabulary | 16 | - |
Halstead Effort | 326.67 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 2 | java.lang.String (1) java.text.NumberFormat (1) |
External Methods Called | 2 | getInstance().format (1) java.text.NumberFormat.getInstance (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 1 | runTime (long) |
Modifiers | 1 | protected |
Halstead Difficulty | 3.89 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 1 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 84.00 | - |
Number of Operands | 10 | - |
Variable References | 1 | runTime (1) |
Number of Operators | 11 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 4 | - |
Number of Loops | 0 | - |
Analysis of Method : endTest(Test) in Class : junit.textui.ResultPrinter | ||
---|---|---|
Feature | Number | Values |
Name | endTest | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 1 | - |
Halstead Length | 7 | - |
Halstead Vocabulary | 7 | - |
Halstead Effort | 29.48 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | junit.framework.Test (1) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 2 | - |
Number of Comments | 1 | - |
Arguments | 1 | test (junit.framework.Test) |
Modifiers | 1 | public |
Halstead Difficulty | 1.50 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 19.65 | - |
Number of Operands | 4 | - |
Variable References | 0 | |
Number of Operators | 3 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 0 | - |
Number of Loops | 0 | - |
Analysis of Method : getWriter() in Class : junit.textui.ResultPrinter | ||
---|---|---|
Feature | Number | Values |
Name | getWriter | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 8 | - |
Halstead Vocabulary | 8 | - |
Halstead Effort | 60.00 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | java.io.PrintStream (1) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
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 | fWriter (1) |
Number of Operators | 5 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 0 | - |
Number of Loops | 0 | - |
Analysis of Method : print(TestResult, long) in Class : junit.textui.ResultPrinter | ||
---|---|---|
Feature | Number | Values |
Name | - | |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 2 | - |
Number of Statements | 5 | - |
Halstead Length | 25 | - |
Halstead Vocabulary | 14 | - |
Halstead Effort | 266.51 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 1 | junit.framework.TestResult (1) |
External Methods Called | 0 | |
Local Methods Called | 4 | printFailures (1) printFooter (1) printErrors (1) printHeader (1) |
Lines Of Code | 6 | - |
Number of Comments | 1 | - |
Arguments | 2 | result (junit.framework.TestResult) runTime (long) |
Modifiers | 1 | synchronized |
Halstead Difficulty | 2.80 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 95.18 | - |
Number of Operands | 14 | - |
Variable References | 4 | result (3) runTime (1) |
Number of Operators | 11 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 4 | - |
Number of Loops | 0 | - |
Analysis of Method : printDefect(TestFailure, int) in Class : junit.textui.ResultPrinter | ||
---|---|---|
Feature | Number | Values |
Name | printDefect | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 3 | - |
Halstead Length | 18 | - |
Halstead Vocabulary | 12 | - |
Halstead Effort | 177.46 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 1 | junit.framework.TestFailure (1) |
External Methods Called | 0 | |
Local Methods Called | 2 | printDefectHeader (1) printDefectTrace (1) |
Lines Of Code | 4 | - |
Number of Comments | 1 | - |
Arguments | 2 | booBoo (junit.framework.TestFailure) count (int) |
Modifiers | 1 | public |
Halstead Difficulty | 2.75 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 64.53 | - |
Number of Operands | 11 | - |
Variable References | 3 | count (1) booBoo (2) |
Number of Operators | 7 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : printDefectHeader(TestFailure, int) in Class : junit.textui.ResultPrinter | ||
---|---|---|
Feature | Number | Values |
Name | printDefectHeader | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 2 | - |
Number of Statements | 2 | - |
Halstead Length | 23 | - |
Halstead Vocabulary | 16 | - |
Halstead Effort | 331.20 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 1 | junit.framework.TestFailure (1) |
External Methods Called | 2 | junit.framework.TestFailure.failedTest (1) booBoo().print (1) |
Local Methods Called | 1 | getWriter (1) |
Lines Of Code | 3 | - |
Number of Comments | 2 | - |
Arguments | 2 | booBoo (junit.framework.TestFailure) count (int) |
Modifiers | 1 | protected |
Halstead Difficulty | 3.60 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 92.00 | - |
Number of Operands | 12 | - |
Variable References | 2 | booBoo (1) count (1) |
Number of Operators | 11 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 5 | - |
Number of Loops | 0 | - |
Analysis of Method : printDefectTrace(TestFailure) in Class : junit.textui.ResultPrinter | ||
---|---|---|
Feature | Number | Values |
Name | printDefectTrace | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 21 | - |
Halstead Vocabulary | 14 | - |
Halstead Effort | 222.10 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 2 | junit.framework.TestFailure (1) junit.runner.BaseTestRunner (1) |
External Methods Called | 3 | failedTest().print (1) junit.framework.TestFailure.trace (1) junit.runner.BaseTestRunner.getFilteredTrace (1) |
Local Methods Called | 1 | getWriter (1) |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 1 | booBoo (junit.framework.TestFailure) |
Modifiers | 1 | protected |
Halstead Difficulty | 2.78 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 79.95 | - |
Number of Operands | 10 | - |
Variable References | 1 | booBoo (1) |
Number of Operators | 11 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 4 | - |
Number of Loops | 0 | - |
Analysis of Method : printDefects(Enumeration, int, String) in Class : junit.textui.ResultPrinter | ||
---|---|---|
Feature | Number | Values |
Name | printDefects | - |
Cyclomatic Complexity | 4 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 9 | - |
Halstead Length | 80 | - |
Halstead Vocabulary | 37 | - |
Halstead Effort | 5256.81 | - |
Halstead Bugs | 0.14 | - |
Classes Referenced | 3 | java.util.Enumeration (1) java.lang.String (1) junit.framework.TestFailure (2) |
External Methods Called | 4 | type().println (1) count().println (1) java.util.Enumeration.hasMoreElements (1) java.util.Enumeration.nextElement (1) |
Local Methods Called | 2 | getWriter (2) printDefect (1) |
Lines Of Code | 10 | - |
Number of Comments | 0 | - |
Arguments | 3 | booBoos (java.util.Enumeration) count (int) type (java.lang.String) |
Modifiers | 1 | protected |
Halstead Difficulty | 12.61 | - |
Variable Declarations | 1 | i (int) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 1 | - |
Halstead Volume | 416.76 | - |
Number of Operands | 37 | - |
Variable References | 10 | booBoos (2) i (2) type (2) count (4) |
Number of Operators | 43 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 17 | - |
Number of Loops | 1 | - |
Analysis of Method : printErrors(TestResult) in Class : junit.textui.ResultPrinter | ||
---|---|---|
Feature | Number | Values |
Name | printErrors | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 19 | - |
Halstead Vocabulary | 13 | - |
Halstead Effort | 219.71 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 1 | junit.framework.TestResult (1) |
External Methods Called | 2 | junit.framework.TestResult.errors (1) junit.framework.TestResult.errorCount (1) |
Local Methods Called | 1 | printDefects (1) |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 1 | result (junit.framework.TestResult) |
Modifiers | 1 | protected |
Halstead Difficulty | 3.12 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 70.31 | - |
Number of Operands | 10 | - |
Variable References | 2 | result (2) |
Number of Operators | 9 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : printFailures(TestResult) in Class : junit.textui.ResultPrinter | ||
---|---|---|
Feature | Number | Values |
Name | printFailures | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 19 | - |
Halstead Vocabulary | 13 | - |
Halstead Effort | 219.71 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 1 | junit.framework.TestResult (1) |
External Methods Called | 2 | junit.framework.TestResult.failures (1) junit.framework.TestResult.failureCount (1) |
Local Methods Called | 1 | printDefects (1) |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 1 | result (junit.framework.TestResult) |
Modifiers | 1 | protected |
Halstead Difficulty | 3.12 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 70.31 | - |
Number of Operands | 10 | - |
Variable References | 2 | result (2) |
Number of Operators | 9 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : printFooter(TestResult) in Class : junit.textui.ResultPrinter | ||
---|---|---|
Feature | Number | Values |
Name | printFooter | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 9 | - |
Halstead Length | 102 | - |
Halstead Vocabulary | 33 | - |
Halstead Effort | 5273.91 | - |
Halstead Bugs | 0.17 | - |
Classes Referenced | 1 | junit.framework.TestResult (1) |
External Methods Called | 10 | errorCount().println (1) runCount().println (1) println().print (1) junit.framework.TestResult.failureCount (1) junit.framework.TestResult.runCount (3) junit.framework.TestResult.wasSuccessful (1) println().println (2) junit.framework.TestResult.errorCount (1) void.println (1) wasSuccessful().println (1) |
Local Methods Called | 1 | getWriter (7) |
Lines Of Code | 14 | - |
Number of Comments | 0 | - |
Arguments | 1 | result (junit.framework.TestResult) |
Modifiers | 1 | protected |
Halstead Difficulty | 10.25 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 2 | - |
Halstead Volume | 514.53 | - |
Number of Operands | 41 | - |
Variable References | 6 | result (6) |
Number of Operators | 61 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 31 | - |
Number of Loops | 0 | - |
Analysis of Method : printHeader(long) in Class : junit.textui.ResultPrinter | ||
---|---|---|
Feature | Number | Values |
Name | printHeader | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 2 | - |
Number of Statements | 3 | - |
Halstead Length | 24 | - |
Halstead Vocabulary | 14 | - |
Halstead Effort | 376.93 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 0 | |
External Methods Called | 1 | println().println (2) |
Local Methods Called | 2 | getWriter (2) elapsedTimeAsString (1) |
Lines Of Code | 4 | - |
Number of Comments | 1 | - |
Arguments | 1 | runTime (long) |
Modifiers | 1 | protected |
Halstead Difficulty | 4.12 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 91.38 | - |
Number of Operands | 11 | - |
Variable References | 1 | runTime (1) |
Number of Operators | 13 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 6 | - |
Number of Loops | 0 | - |
Analysis of Method : printWaitPrompt() in Class : junit.textui.ResultPrinter | ||
---|---|---|
Feature | Number | Values |
Name | printWaitPrompt | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 3 | - |
Halstead Length | 17 | - |
Halstead Vocabulary | 9 | - |
Halstead Effort | 150.89 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 0 | |
External Methods Called | 2 | result().println (1) println().println (1) |
Local Methods Called | 1 | getWriter (2) |
Lines Of Code | 4 | - |
Number of Comments | 0 | - |
Arguments | 0 | - |
Modifiers | 0 | - |
Halstead Difficulty | 2.80 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 53.89 | - |
Number of Operands | 7 | - |
Variable References | 0 | |
Number of Operators | 10 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 4 | - |
Number of Loops | 0 | - |
Analysis of Method : startTest(Test) in Class : junit.textui.ResultPrinter | ||
---|---|---|
Feature | Number | Values |
Name | startTest | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 5 | - |
Halstead Length | 31 | - |
Halstead Vocabulary | 20 | - |
Halstead Effort | 712.53 | - |
Halstead Bugs | 0.04 | - |
Classes Referenced | 1 | junit.framework.Test (1) |
External Methods Called | 2 | void.print (1) fColumn().println (1) |
Local Methods Called | 1 | getWriter (2) |
Lines Of Code | 7 | - |
Number of Comments | 1 | - |
Arguments | 1 | test (junit.framework.Test) |
Modifiers | 1 | public |
Halstead Difficulty | 5.32 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 1 | - |
Halstead Volume | 133.98 | - |
Number of Operands | 13 | - |
Variable References | 2 | fColumn (2) |
Number of Operators | 18 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 7 | - |
Number of Loops | 0 | - |
Top of this page | Data Generated by JHawk - The Java Metrics tool | Home |