![]() | Analysis of Class : junit.framework.TestResult (Includes summary list of methods in class) | Home |
Dashboard for Class : junit.framework.TestResult |
---|
![]() |
Cyclomatic Complexity |
Summary of TestResult | ||
---|---|---|
Feature | Number | Values |
Name | TestResult | - |
Number of Methods | 18 | - |
LCOM | 0.00 | - |
Average Cyclomatic Complexity | 1.39 | - |
Number of Statements | 72 | - |
Halstead Cumulative Bugs | 0.60 | - |
Halstead Effort | 10804.29 | - |
UnWeighted Class Size | 23 | - |
Instance Variables | 5 | fErrors (java.util.List) fRunTests (int) fListeners (java.util.List) fFailures (java.util.List) fStop (boolean) |
Imported Packages | 4 | java.util.ArrayList java.util.Collections java.util.Enumeration java.util.List |
Response For class | 18 | - |
CBO | 17 | - |
Maintainability Index | 147.20 | - |
Cumulative Number of Comment Lines | 62 | - |
Lines Of Code | 90 | - |
Fan In | 13 | - |
DIT | 1 | - |
Maintainability Index (NC) | 126.59 | - |
Specialization ratio | 0.00 | - |
Reuse Ratio | 0.50 | - |
COH | 0.20 | - |
Local Method Calls | 8 | addError (1) endTest (1) cloneListeners (4) addFailure (1) startTest (1) runProtected (1) failureCount (1) errorCount (1) |
LCOM2 | 146.00 | - |
Max Complexity | 4 | - |
Halstead Cumulative Volume | 1796.70 | - |
Hierarchy Method Calls | 0 | |
Number of Queries | 8 | - |
Fan Out | 6 | - |
SuperClass Name | java.lang.Object | - |
SIX | 0.00 | - |
External Method Calls | 0 | java.util.List.remove (1) java.util.Collections.enumeration (2) junit.framework.Protectable.protect (1) each.endTest (1) junit.framework.Protectable.Protectable (1) each.addFailure (1) java.util.List.add (3) each.addError (1) List junit.framework.Test.countTestCases (1) junit.framework.TestFailure.TestFailure (2) each.startTest (1) java.util.List.size (2) java.util.ArrayList.ArrayList (4) |
Superclasses | 1 | java.lang.Object |
Total Complexity | 25 | - |
Subclasses | 0 | - |
Message Passing Coupling | 0 | - |
Number of Commands | 10 | - |
Interfaces | 0 | - |
Cumulative Number of Comments | 19 | - |
Halstead Cumulative Length | 438 | - |
Modifiers | 0 | - |
Methods in Class : junit.framework.TestResult | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | |
![]() | TestResult | 1 | 0 | 6 | 39 | 19 | 843.41 | 0.06 | 1 | 1 | 0 | 7 | 0 | 0 | 6 | 5.09 | 0 | 0 | 0 | 0 | 0 | 165.67 | 14 | 5 | 25 | 0 | 8 | 0 |
![]() | addError | 2 | 4 | 6 | 34 | 21 | 1008.04 | 0.05 | 4 | 3 | 1 | 5 | 1 | 2 | 2 | 6.75 | 0 | 0 | 0 | 0 | 0 | 149.34 | 18 | 6 | 16 | 0 | 4 | 1 |
![]() | addFailure | 2 | 4 | 6 | 34 | 21 | 1008.04 | 0.05 | 4 | 3 | 1 | 5 | 1 | 2 | 2 | 6.75 | 0 | 0 | 0 | 0 | 0 | 149.34 | 18 | 6 | 16 | 0 | 4 | 1 |
![]() | addListener | 1 | 3 | 2 | 14 | 12 | 175.66 | 0.02 | 1 | 1 | 0 | 3 | 1 | 1 | 2 | 3.50 | 0 | 0 | 0 | 0 | 0 | 50.19 | 7 | 2 | 7 | 0 | 1 | 0 |
![]() | cloneListeners | 1 | 3 | 4 | 31 | 18 | 1218.81 | 0.04 | 3 | 2 | 0 | 5 | 1 | 0 | 2 | 9.43 | 1 | 0 | 0 | 0 | 0 | 129.27 | 12 | 3 | 19 | 0 | 3 | 0 |
![]() | endTest | 2 | 3 | 5 | 20 | 14 | 380.74 | 0.03 | 2 | 1 | 1 | 4 | 1 | 1 | 1 | 5.00 | 0 | 0 | 0 | 0 | 0 | 76.15 | 10 | 2 | 10 | 0 | 2 | 1 |
![]() | errorCount | 1 | 3 | 2 | 12 | 11 | 145.30 | 0.01 | 0 | 1 | 0 | 3 | 1 | 0 | 2 | 3.50 | 0 | 0 | 0 | 0 | 0 | 41.51 | 4 | 1 | 8 | 0 | 1 | 0 |
![]() | errors | 1 | 3 | 2 | 16 | 15 | 281.30 | 0.02 | 3 | 1 | 0 | 3 | 1 | 0 | 2 | 4.50 | 0 | 0 | 0 | 0 | 0 | 62.51 | 6 | 1 | 10 | 0 | 1 | 0 |
![]() | failureCount | 1 | 3 | 2 | 12 | 11 | 145.30 | 0.01 | 0 | 1 | 0 | 3 | 1 | 0 | 2 | 3.50 | 0 | 0 | 0 | 0 | 0 | 41.51 | 4 | 1 | 8 | 0 | 1 | 0 |
![]() | failures | 1 | 3 | 2 | 16 | 15 | 281.30 | 0.02 | 3 | 1 | 0 | 3 | 1 | 0 | 2 | 4.50 | 0 | 0 | 0 | 0 | 0 | 62.51 | 6 | 1 | 10 | 0 | 1 | 0 |
![]() | removeListener | 1 | 3 | 2 | 14 | 12 | 175.66 | 0.02 | 1 | 1 | 0 | 3 | 1 | 1 | 2 | 3.50 | 0 | 0 | 0 | 0 | 0 | 50.19 | 7 | 2 | 7 | 0 | 1 | 0 |
![]() | run | 1 | 3 | 5 | 41 | 22 | 1447.46 | 0.06 | 2 | 1 | 3 | 10 | 1 | 1 | 1 | 7.92 | 1 | 0 | 0 | 0 | 0 | 182.84 | 19 | 4 | 22 | 0 | 4 | 0 |
![]() | runCount | 1 | 3 | 2 | 9 | 9 | 85.59 | 0.01 | 0 | 0 | 0 | 3 | 1 | 0 | 2 | 3.00 | 0 | 0 | 0 | 0 | 0 | 28.53 | 3 | 1 | 6 | 0 | 0 | 0 |
![]() | runProtected | 4 | 3 | 6 | 45 | 22 | 1458.75 | 0.07 | 5 | 1 | 2 | 14 | 2 | 2 | 1 | 7.27 | 0 | 0 | 3 | 0 | 4 | 200.67 | 21 | 6 | 24 | 1 | 1 | 0 |
![]() | shouldStop | 1 | 3 | 2 | 9 | 9 | 85.59 | 0.01 | 0 | 0 | 0 | 3 | 1 | 0 | 2 | 3.00 | 0 | 0 | 0 | 0 | 0 | 28.53 | 3 | 1 | 6 | 0 | 0 | 0 |
![]() | startTest | 2 | 3 | 8 | 37 | 23 | 1304.11 | 0.06 | 2 | 2 | 1 | 8 | 1 | 1 | 1 | 7.79 | 1 | 0 | 0 | 0 | 1 | 167.37 | 17 | 5 | 20 | 1 | 5 | 1 |
![]() | stop | 1 | 3 | 2 | 10 | 10 | 99.66 | 0.01 | 0 | 0 | 0 | 3 | 1 | 0 | 2 | 3.00 | 0 | 0 | 0 | 0 | 0 | 33.22 | 4 | 1 | 6 | 0 | 1 | 0 |
![]() | wasSuccessful | 1 | 3 | 2 | 17 | 13 | 301.96 | 0.02 | 0 | 0 | 2 | 3 | 1 | 0 | 2 | 4.80 | 0 | 0 | 0 | 0 | 0 | 62.91 | 6 | 0 | 11 | 0 | 5 | 0 |
Analysis of Method : TestResult() in Class : junit.framework.TestResult | ||
---|---|---|
Feature | Number | Values |
Name | TestResult | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 6 | - |
Halstead Length | 39 | - |
Halstead Vocabulary | 19 | - |
Halstead Effort | 843.41 | - |
Halstead Bugs | 0.06 | - |
Classes Referenced | 1 | java.util.ArrayList (3) |
External Methods Called | 1 | java.util.ArrayList.ArrayList (3) |
Local Methods Called | 0 | |
Lines Of Code | 7 | - |
Number of Comments | 0 | - |
Arguments | 0 | - |
Modifiers | 6 | protected protected protected protected private public |
Halstead Difficulty | 5.09 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 165.67 | - |
Number of Operands | 14 | - |
Variable References | 5 | fErrors (1) fRunTests (1) fListeners (1) fFailures (1) fStop (1) |
Number of Operators | 25 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 8 | - |
Number of Loops | 0 | - |
Analysis of Method : addError(Test, Throwable) in Class : junit.framework.TestResult | ||
---|---|---|
Feature | Number | Values |
Name | addError | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 6 | - |
Halstead Length | 34 | - |
Halstead Vocabulary | 21 | - |
Halstead Effort | 1008.04 | - |
Halstead Bugs | 0.05 | - |
Classes Referenced | 4 | junit.framework.Test (1) java.lang.Throwable (1) junit.framework.TestListener (1) junit.framework.TestFailure (1) |
External Methods Called | 3 | junit.framework.TestFailure.TestFailure (1) java.util.List.add (1) each.addError (1) |
Local Methods Called | 1 | cloneListeners (1) |
Lines Of Code | 5 | - |
Number of Comments | 1 | - |
Arguments | 2 | test (junit.framework.Test) t (java.lang.Throwable) |
Modifiers | 2 | public synchronized |
Halstead Difficulty | 6.75 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 149.34 | - |
Number of Operands | 18 | - |
Variable References | 6 | fErrors (1) t (2) each (1) test (2) |
Number of Operators | 16 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 4 | - |
Number of Loops | 1 | - |
Analysis of Method : addFailure(Test, AssertionFailedError) in Class : junit.framework.TestResult | ||
---|---|---|
Feature | Number | Values |
Name | addFailure | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 6 | - |
Halstead Length | 34 | - |
Halstead Vocabulary | 21 | - |
Halstead Effort | 1008.04 | - |
Halstead Bugs | 0.05 | - |
Classes Referenced | 4 | junit.framework.AssertionFailedError (1) junit.framework.Test (1) junit.framework.TestListener (1) junit.framework.TestFailure (1) |
External Methods Called | 3 | java.util.List.add (1) junit.framework.TestFailure.TestFailure (1) each.addFailure (1) |
Local Methods Called | 1 | cloneListeners (1) |
Lines Of Code | 5 | - |
Number of Comments | 1 | - |
Arguments | 2 | test (junit.framework.Test) t (junit.framework.AssertionFailedError) |
Modifiers | 2 | public synchronized |
Halstead Difficulty | 6.75 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 149.34 | - |
Number of Operands | 18 | - |
Variable References | 6 | fFailures (1) t (2) each (1) test (2) |
Number of Operators | 16 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 4 | - |
Number of Loops | 1 | - |
Analysis of Method : addListener(TestListener) in Class : junit.framework.TestResult | ||
---|---|---|
Feature | Number | Values |
Name | addListener | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 14 | - |
Halstead Vocabulary | 12 | - |
Halstead Effort | 175.66 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 1 | junit.framework.TestListener (1) |
External Methods Called | 1 | java.util.List.add (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 1 | listener (junit.framework.TestListener) |
Modifiers | 2 | public synchronized |
Halstead Difficulty | 3.50 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 50.19 | - |
Number of Operands | 7 | - |
Variable References | 2 | fListeners (1) listener (1) |
Number of Operators | 7 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : cloneListeners() in Class : junit.framework.TestResult | ||
---|---|---|
Feature | Number | Values |
Name | cloneListeners | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 4 | - |
Halstead Length | 31 | - |
Halstead Vocabulary | 18 | - |
Halstead Effort | 1218.81 | - |
Halstead Bugs | 0.04 | - |
Classes Referenced | 3 | java.util.List (2) java.util.ArrayList (1) junit.framework.TestListener (3) |
External Methods Called | 2 | java.util.ArrayList.ArrayList (1) List |
Local Methods Called | 0 | |
Lines Of Code | 5 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 2 | private synchronized |
Halstead Difficulty | 9.43 | - |
Variable Declarations | 1 | result (List<TestListener>) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 129.27 | - |
Number of Operands | 12 | - |
Variable References | 3 | result (2) fListeners (1) |
Number of Operators | 19 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 3 | - |
Number of Loops | 0 | - |
Analysis of Method : endTest(Test) in Class : junit.framework.TestResult | ||
---|---|---|
Feature | Number | Values |
Name | endTest | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 5 | - |
Halstead Length | 20 | - |
Halstead Vocabulary | 14 | - |
Halstead Effort | 380.74 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 2 | junit.framework.Test (1) junit.framework.TestListener (1) |
External Methods Called | 1 | each.endTest (1) |
Local Methods Called | 1 | cloneListeners (1) |
Lines Of Code | 4 | - |
Number of Comments | 1 | - |
Arguments | 1 | test (junit.framework.Test) |
Modifiers | 1 | public |
Halstead Difficulty | 5.00 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 76.15 | - |
Number of Operands | 10 | - |
Variable References | 2 | each (1) test (1) |
Number of Operators | 10 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 1 | - |
Analysis of Method : errorCount() in Class : junit.framework.TestResult | ||
---|---|---|
Feature | Number | Values |
Name | errorCount | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 12 | - |
Halstead Vocabulary | 11 | - |
Halstead Effort | 145.30 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 0 | |
External Methods Called | 1 | java.util.List.size (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 2 | public synchronized |
Halstead Difficulty | 3.50 | - |
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 | 4 | - |
Variable References | 1 | fErrors (1) |
Number of Operators | 8 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : errors() in Class : junit.framework.TestResult | ||
---|---|---|
Feature | Number | Values |
Name | errors | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 16 | - |
Halstead Vocabulary | 15 | - |
Halstead Effort | 281.30 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 3 | java.util.Enumeration (1) java.util.Collections (1) junit.framework.TestFailure (1) |
External Methods Called | 1 | java.util.Collections.enumeration (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 2 | public synchronized |
Halstead Difficulty | 4.50 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 62.51 | - |
Number of Operands | 6 | - |
Variable References | 1 | fErrors (1) |
Number of Operators | 10 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : failureCount() in Class : junit.framework.TestResult | ||
---|---|---|
Feature | Number | Values |
Name | failureCount | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 12 | - |
Halstead Vocabulary | 11 | - |
Halstead Effort | 145.30 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 0 | |
External Methods Called | 1 | java.util.List.size (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 2 | public synchronized |
Halstead Difficulty | 3.50 | - |
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 | 4 | - |
Variable References | 1 | fFailures (1) |
Number of Operators | 8 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : failures() in Class : junit.framework.TestResult | ||
---|---|---|
Feature | Number | Values |
Name | failures | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 16 | - |
Halstead Vocabulary | 15 | - |
Halstead Effort | 281.30 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 3 | java.util.Enumeration (1) java.util.Collections (1) junit.framework.TestFailure (1) |
External Methods Called | 1 | java.util.Collections.enumeration (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 2 | public synchronized |
Halstead Difficulty | 4.50 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 62.51 | - |
Number of Operands | 6 | - |
Variable References | 1 | fFailures (1) |
Number of Operators | 10 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : removeListener(TestListener) in Class : junit.framework.TestResult | ||
---|---|---|
Feature | Number | Values |
Name | removeListener | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 14 | - |
Halstead Vocabulary | 12 | - |
Halstead Effort | 175.66 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 1 | junit.framework.TestListener (1) |
External Methods Called | 1 | java.util.List.remove (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 1 | listener (junit.framework.TestListener) |
Modifiers | 2 | public synchronized |
Halstead Difficulty | 3.50 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 50.19 | - |
Number of Operands | 7 | - |
Variable References | 2 | fListeners (1) listener (1) |
Number of Operators | 7 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : run(TestCase) in Class : junit.framework.TestResult | ||
---|---|---|
Feature | Number | Values |
Name | run | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 5 | - |
Halstead Length | 41 | - |
Halstead Vocabulary | 22 | - |
Halstead Effort | 1447.46 | - |
Halstead Bugs | 0.06 | - |
Classes Referenced | 2 | junit.framework.TestCase (1) junit.framework.Protectable (2) |
External Methods Called | 1 | junit.framework.Protectable.Protectable (1) |
Local Methods Called | 3 | endTest (1) runProtected (1) startTest (1) |
Lines Of Code | 10 | - |
Number of Comments | 1 | - |
Arguments | 1 | test (junit.framework.TestCase) |
Modifiers | 1 | protected |
Halstead Difficulty | 7.92 | - |
Variable Declarations | 1 | p (junit.framework.Protectable) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 182.84 | - |
Number of Operands | 19 | - |
Variable References | 4 | p (1) test (3) |
Number of Operators | 22 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 4 | - |
Number of Loops | 0 | - |
Analysis of Method : runCount() in Class : junit.framework.TestResult | ||
---|---|---|
Feature | Number | Values |
Name | runCount | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 9 | - |
Halstead Vocabulary | 9 | - |
Halstead Effort | 85.59 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 0 | |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 2 | public synchronized |
Halstead Difficulty | 3.00 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 28.53 | - |
Number of Operands | 3 | - |
Variable References | 1 | fRunTests (1) |
Number of Operators | 6 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 0 | - |
Number of Loops | 0 | - |
Analysis of Method : runProtected(Test, Protectable) in Class : junit.framework.TestResult | ||
---|---|---|
Feature | Number | Values |
Name | runProtected | - |
Cyclomatic Complexity | 4 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 6 | - |
Halstead Length | 45 | - |
Halstead Vocabulary | 22 | - |
Halstead Effort | 1458.75 | - |
Halstead Bugs | 0.07 | - |
Classes Referenced | 5 | junit.framework.AssertionFailedError (1) ThreadDeath (1) junit.framework.Test (1) java.lang.Throwable (1) junit.framework.Protectable (1) |
External Methods Called | 1 | junit.framework.Protectable.protect (1) |
Local Methods Called | 2 | addError (1) addFailure (1) |
Lines Of Code | 14 | - |
Number of Comments | 2 | - |
Arguments | 2 | test (junit.framework.Test) p (junit.framework.Protectable) |
Modifiers | 1 | public |
Halstead Difficulty | 7.27 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 3 | junit.framework.AssertionFailedError (1) ThreadDeath (1) java.lang.Throwable (1) |
Number of casts | 0 | - |
Total Depth of Nesting | 4 | - |
Halstead Volume | 200.67 | - |
Number of Operands | 21 | - |
Variable References | 6 | e (3) p (1) test (2) |
Number of Operators | 24 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : shouldStop() in Class : junit.framework.TestResult | ||
---|---|---|
Feature | Number | Values |
Name | shouldStop | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 9 | - |
Halstead Vocabulary | 9 | - |
Halstead Effort | 85.59 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 0 | |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 2 | public synchronized |
Halstead Difficulty | 3.00 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 28.53 | - |
Number of Operands | 3 | - |
Variable References | 1 | fStop (1) |
Number of Operators | 6 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 0 | - |
Number of Loops | 0 | - |
Analysis of Method : startTest(Test) in Class : junit.framework.TestResult | ||
---|---|---|
Feature | Number | Values |
Name | startTest | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 8 | - |
Halstead Length | 37 | - |
Halstead Vocabulary | 23 | - |
Halstead Effort | 1304.11 | - |
Halstead Bugs | 0.06 | - |
Classes Referenced | 2 | junit.framework.Test (1) junit.framework.TestListener (1) |
External Methods Called | 2 | each.startTest (1) junit.framework.Test.countTestCases (1) |
Local Methods Called | 1 | cloneListeners (1) |
Lines Of Code | 8 | - |
Number of Comments | 1 | - |
Arguments | 1 | test (junit.framework.Test) |
Modifiers | 1 | public |
Halstead Difficulty | 7.79 | - |
Variable Declarations | 1 | count (int) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 1 | - |
Halstead Volume | 167.37 | - |
Number of Operands | 17 | - |
Variable References | 5 | fRunTests (1) count (1) each (1) test (2) |
Number of Operators | 20 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 5 | - |
Number of Loops | 1 | - |
Analysis of Method : stop() in Class : junit.framework.TestResult | ||
---|---|---|
Feature | Number | Values |
Name | stop | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 10 | - |
Halstead Vocabulary | 10 | - |
Halstead Effort | 99.66 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 0 | |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 2 | public synchronized |
Halstead Difficulty | 3.00 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 33.22 | - |
Number of Operands | 4 | - |
Variable References | 1 | fStop (1) |
Number of Operators | 6 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : wasSuccessful() in Class : junit.framework.TestResult | ||
---|---|---|
Feature | Number | Values |
Name | wasSuccessful | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 17 | - |
Halstead Vocabulary | 13 | - |
Halstead Effort | 301.96 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 0 | |
External Methods Called | 0 | |
Local Methods Called | 2 | errorCount (1) failureCount (1) |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 2 | public synchronized |
Halstead Difficulty | 4.80 | - |
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 | 6 | - |
Variable References | 0 | |
Number of Operators | 11 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 5 | - |
Number of Loops | 0 | - |
Top of this page | Data Generated by JHawk - The Java Metrics tool | Home |