![]() | Analysis of Class : org.junit.internal.TextListener (Includes summary list of methods in class) | Home |
Dashboard for Class : org.junit.internal.TextListener |
---|
![]() |
Cyclomatic Complexity |
Summary of TextListener | ||
---|---|---|
Feature | Number | Values |
Name | TextListener | - |
Number of Methods | 12 | - |
LCOM | 0.64 | - |
Average Cyclomatic Complexity | 1.33 | - |
Number of Statements | 45 | - |
Halstead Cumulative Bugs | 0.54 | - |
Halstead Effort | 13360.95 | - |
UnWeighted Class Size | 13 | - |
Instance Variables | 1 | fWriter (java.io.PrintStream) |
Imported Packages | 7 | java.io.PrintStream java.text.NumberFormat java.util.List 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 | 129.14 | - |
Cumulative Number of Comment Lines | 7 | - |
Lines Of Code | 65 | - |
Fan In | 2 | - |
DIT | 1 | - |
Maintainability Index (NC) | 129.14 | - |
Specialization ratio | 0.00 | - |
Reuse Ratio | 0.50 | - |
COH | 0.42 | - |
Local Method Calls | 6 | printFailure (1) getWriter (13) printFailures (1) printHeader (1) printFooter (1) elapsedTimeAsString (1) |
LCOM2 | 22.00 | - |
Max Complexity | 4 | - |
Halstead Cumulative Volume | 1617.90 | - |
Hierarchy Method Calls | 1 | this (1) |
Number of Queries | 2 | - |
Fan Out | 5 | - |
SuperClass Name | org.junit.runner.notification.RunListener | - |
SIX | 0.00 | - |
External Method Calls | 0 | java.io.PrintStream.append (3) org.junit.runner.Result.getRunTime (1) org.junit.runner.notification.Failure.getTestHeader (1) println().println (3) println().print (1) getTestHeader().print (1) getFailureCount().println (1) wasSuccessful().println (1) java.text.NumberFormat.getInstance (1) getInstance().format (1) org.junit.runner.Result.wasSuccessful (1) fWriter().println (1) org.junit.runner.notification.Failure.getTrace (1) getRunCount().println (1) List org.junit.runner.Result.getFailures (1) org.junit.internal.JUnitSystem.out (1) org.junit.runner.Result.getRunCount (3) i().println (1) org.junit.runner.Result.getFailureCount (1) size().println (2) print().println (1) |
Superclasses | 1 | org.junit.runner.notification.RunListener |
Total Complexity | 16 | - |
Subclasses | 0 | - |
Message Passing Coupling | 0 | - |
Number of Commands | 10 | - |
Interfaces | 0 | - |
Cumulative Number of Comments | 2 | - |
Halstead Cumulative Length | 366 | - |
Modifiers | 0 | - |
Methods in Class : org.junit.internal.TextListener | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | |
![]() | TextListener | 1 | 0 | 2 | 12 | 11 | 149.45 | 0.01 | 1 | 0 | 0 | 3 | 0 | 1 | 1 | 3.60 | 0 | 0 | 0 | 0 | 0 | 41.51 | 6 | 2 | 6 | 0 | 1 | 0 |
![]() | TextListener | 1 | 0 | 2 | 13 | 10 | 129.56 | 0.01 | 1 | 1 | 1 | 3 | 0 | 1 | 3 | 3.00 | 0 | 0 | 0 | 0 | 0 | 43.19 | 6 | 1 | 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 |
![]() | getWriter | 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 |
![]() | printFailure | 1 | 0 | 3 | 33 | 18 | 550.43 | 0.05 | 2 | 4 | 1 | 4 | 0 | 2 | 1 | 4.00 | 0 | 0 | 0 | 0 | 0 | 137.61 | 16 | 3 | 17 | 0 | 8 | 0 |
![]() | printFailures | 4 | 0 | 10 | 84 | 38 | 5931.11 | 0.15 | 3 | 3 | 2 | 12 | 0 | 1 | 1 | 13.45 | 2 | 0 | 0 | 0 | 0 | 440.83 | 37 | 8 | 47 | 0 | 19 | 1 |
![]() | printFooter | 2 | 0 | 9 | 95 | 31 | 4918.28 | 0.16 | 1 | 9 | 1 | 12 | 0 | 1 | 1 | 10.45 | 0 | 0 | 0 | 0 | 2 | 470.65 | 38 | 5 | 57 | 1 | 28 | 0 |
![]() | printHeader | 1 | 0 | 3 | 24 | 14 | 376.93 | 0.03 | 0 | 2 | 2 | 4 | 0 | 1 | 1 | 4.12 | 0 | 0 | 0 | 0 | 0 | 91.38 | 11 | 1 | 13 | 0 | 6 | 0 |
![]() | testFailure | 1 | 0 | 2 | 15 | 14 | 171.33 | 0.02 | 1 | 1 | 0 | 3 | 0 | 1 | 2 | 3.00 | 0 | 0 | 0 | 0 | 0 | 57.11 | 8 | 1 | 7 | 0 | 1 | 0 |
![]() | testIgnored | 1 | 0 | 2 | 15 | 14 | 171.33 | 0.02 | 1 | 1 | 0 | 3 | 0 | 1 | 2 | 3.00 | 0 | 0 | 0 | 0 | 0 | 57.11 | 8 | 1 | 7 | 0 | 1 | 0 |
![]() | testRunFinished | 1 | 0 | 4 | 24 | 15 | 375.06 | 0.03 | 1 | 1 | 3 | 5 | 0 | 1 | 2 | 4.00 | 0 | 0 | 0 | 0 | 0 | 93.77 | 12 | 3 | 12 | 0 | 4 | 0 |
![]() | testStarted | 1 | 0 | 2 | 15 | 14 | 171.33 | 0.02 | 1 | 1 | 0 | 3 | 0 | 1 | 2 | 3.00 | 0 | 0 | 0 | 0 | 0 | 57.11 | 8 | 1 | 7 | 0 | 1 | 0 |
Analysis of Method : TextListener(PrintStream) in Class : org.junit.internal.TextListener | ||
---|---|---|
Feature | Number | Values |
Name | TextListener | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 12 | - |
Halstead Vocabulary | 11 | - |
Halstead Effort | 149.45 | - |
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.60 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 41.51 | - |
Number of Operands | 6 | - |
Variable References | 2 | writer (1) fWriter (1) |
Number of Operators | 6 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : TextListener(JUnitSystem) in Class : org.junit.internal.TextListener | ||
---|---|---|
Feature | Number | Values |
Name | TextListener | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 13 | - |
Halstead Vocabulary | 10 | - |
Halstead Effort | 129.56 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | org.junit.internal.JUnitSystem (1) |
External Methods Called | 1 | org.junit.internal.JUnitSystem.out (1) |
Local Methods Called | 1 | this (1) |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 1 | system (org.junit.internal.JUnitSystem) |
Modifiers | 3 | private final 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 | 43.19 | - |
Number of Operands | 6 | - |
Variable References | 1 | system (1) |
Number of Operators | 7 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : elapsedTimeAsString(long) in Class : org.junit.internal.TextListener | ||
---|---|---|
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 | java.text.NumberFormat.getInstance (1) getInstance().format (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 : getWriter() in Class : org.junit.internal.TextListener | ||
---|---|---|
Feature | Number | Values |
Name | getWriter | - |
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.io.PrintStream (1) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 1 | private |
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 : printFailure(Failure, String) in Class : org.junit.internal.TextListener | ||
---|---|---|
Feature | Number | Values |
Name | printFailure | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 3 | - |
Halstead Length | 33 | - |
Halstead Vocabulary | 18 | - |
Halstead Effort | 550.43 | - |
Halstead Bugs | 0.05 | - |
Classes Referenced | 2 | java.lang.String (1) org.junit.runner.notification.Failure (1) |
External Methods Called | 4 | org.junit.runner.notification.Failure.getTestHeader (1) org.junit.runner.notification.Failure.getTrace (1) getTestHeader().print (1) i().println (1) |
Local Methods Called | 1 | getWriter (2) |
Lines Of Code | 4 | - |
Number of Comments | 0 | - |
Arguments | 2 | each (org.junit.runner.notification.Failure) prefix (java.lang.String) |
Modifiers | 1 | protected |
Halstead Difficulty | 4.00 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 137.61 | - |
Number of Operands | 16 | - |
Variable References | 3 | each (2) prefix (1) |
Number of Operators | 17 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 8 | - |
Number of Loops | 0 | - |
Analysis of Method : printFailures(Result) in Class : org.junit.internal.TextListener | ||
---|---|---|
Feature | Number | Values |
Name | printFailures | - |
Cyclomatic Complexity | 4 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 10 | - |
Halstead Length | 84 | - |
Halstead Vocabulary | 38 | - |
Halstead Effort | 5931.11 | - |
Halstead Bugs | 0.15 | - |
Classes Referenced | 3 | java.util.List (1) org.junit.runner.notification.Failure (3) org.junit.runner.Result (1) |
External Methods Called | 3 | size().println (2) List org.junit.runner.Result.getFailures (1) |
Local Methods Called | 2 | printFailure (1) getWriter (2) |
Lines Of Code | 12 | - |
Number of Comments | 0 | - |
Arguments | 1 | result (org.junit.runner.Result) |
Modifiers | 1 | protected |
Halstead Difficulty | 13.45 | - |
Variable Declarations | 2 | i (int) failures (List<Failure>) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 440.83 | - |
Number of Operands | 37 | - |
Variable References | 8 | result (1) i (1) failures (5) each (1) |
Number of Operators | 47 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 19 | - |
Number of Loops | 1 | - |
Analysis of Method : printFooter(Result) in Class : org.junit.internal.TextListener | ||
---|---|---|
Feature | Number | Values |
Name | printFooter | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 9 | - |
Halstead Length | 95 | - |
Halstead Vocabulary | 31 | - |
Halstead Effort | 4918.28 | - |
Halstead Bugs | 0.16 | - |
Classes Referenced | 1 | org.junit.runner.Result (1) |
External Methods Called | 9 | org.junit.runner.Result.getFailureCount (1) org.junit.runner.Result.getRunCount (3) wasSuccessful().println (1) getFailureCount().println (1) println().print (1) org.junit.runner.Result.wasSuccessful (1) print().println (1) println().println (2) getRunCount().println (1) |
Local Methods Called | 1 | getWriter (7) |
Lines Of Code | 12 | - |
Number of Comments | 0 | - |
Arguments | 1 | result (org.junit.runner.Result) |
Modifiers | 1 | protected |
Halstead Difficulty | 10.45 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 2 | - |
Halstead Volume | 470.65 | - |
Number of Operands | 38 | - |
Variable References | 5 | result (5) |
Number of Operators | 57 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 28 | - |
Number of Loops | 0 | - |
Analysis of Method : printHeader(long) in Class : org.junit.internal.TextListener | ||
---|---|---|
Feature | Number | Values |
Name | printHeader | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 3 | - |
Halstead Length | 24 | - |
Halstead Vocabulary | 14 | - |
Halstead Effort | 376.93 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 0 | |
External Methods Called | 2 | println().println (1) fWriter().println (1) |
Local Methods Called | 2 | getWriter (2) elapsedTimeAsString (1) |
Lines Of Code | 4 | - |
Number of Comments | 0 | - |
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 : testFailure(Failure) in Class : org.junit.internal.TextListener | ||
---|---|---|
Feature | Number | Values |
Name | testFailure | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 15 | - |
Halstead Vocabulary | 14 | - |
Halstead Effort | 171.33 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 1 | org.junit.runner.notification.Failure (1) |
External Methods Called | 1 | java.io.PrintStream.append (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 1 | failure (org.junit.runner.notification.Failure) |
Modifiers | 2 | @Override 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 | 57.11 | - |
Number of Operands | 8 | - |
Variable References | 1 | fWriter (1) |
Number of Operators | 7 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : testIgnored(Description) in Class : org.junit.internal.TextListener | ||
---|---|---|
Feature | Number | Values |
Name | testIgnored | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 15 | - |
Halstead Vocabulary | 14 | - |
Halstead Effort | 171.33 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 1 | org.junit.runner.Description (1) |
External Methods Called | 1 | java.io.PrintStream.append (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 1 | description (org.junit.runner.Description) |
Modifiers | 2 | @Override 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 | 57.11 | - |
Number of Operands | 8 | - |
Variable References | 1 | fWriter (1) |
Number of Operators | 7 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : testRunFinished(Result) in Class : org.junit.internal.TextListener | ||
---|---|---|
Feature | Number | Values |
Name | testRunFinished | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 4 | - |
Halstead Length | 24 | - |
Halstead Vocabulary | 15 | - |
Halstead Effort | 375.06 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 1 | org.junit.runner.Result (1) |
External Methods Called | 1 | org.junit.runner.Result.getRunTime (1) |
Local Methods Called | 3 | printFailures (1) printFooter (1) printHeader (1) |
Lines Of Code | 5 | - |
Number of Comments | 0 | - |
Arguments | 1 | result (org.junit.runner.Result) |
Modifiers | 2 | @Override 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 | 93.77 | - |
Number of Operands | 12 | - |
Variable References | 3 | result (3) |
Number of Operators | 12 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 4 | - |
Number of Loops | 0 | - |
Analysis of Method : testStarted(Description) in Class : org.junit.internal.TextListener | ||
---|---|---|
Feature | Number | Values |
Name | testStarted | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 15 | - |
Halstead Vocabulary | 14 | - |
Halstead Effort | 171.33 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 1 | org.junit.runner.Description (1) |
External Methods Called | 1 | java.io.PrintStream.append (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 1 | description (org.junit.runner.Description) |
Modifiers | 2 | @Override 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 | 57.11 | - |
Number of Operands | 8 | - |
Variable References | 1 | fWriter (1) |
Number of Operators | 7 | - |
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 |