![]() | Analysis of Class : junit.framework.JUnit4TestAdapterCache (Includes summary list of methods in class) | Home |
Dashboard for Class : junit.framework.JUnit4TestAdapterCache |
---|
![]() |
Cyclomatic Complexity |
Summary of JUnit4TestAdapterCache | ||
---|---|---|
Feature | Number | Values |
Name | JUnit4TestAdapterCache | - |
Number of Methods | 5 | - |
LCOM | 0.50 | - |
Average Cyclomatic Complexity | 2.20 | - |
Number of Statements | 30 | - |
Halstead Cumulative Bugs | 0.43 | - |
Halstead Effort | 12513.35 | - |
UnWeighted Class Size | 7 | - |
Instance Variables | 2 | fInstance (junit.framework.JUnit4TestAdapterCache) serialVersionUID (long) |
Imported Packages | 8 | java.util.ArrayList java.util.Arrays java.util.HashMap java.util.List org.junit.runner.Description org.junit.runner.notification.Failure org.junit.runner.notification.RunListener org.junit.runner.notification.RunNotifier |
Response For class | 6 | - |
CBO | 10 | - |
Maintainability Index | 115.03 | - |
Cumulative Number of Comment Lines | 0 | - |
Lines Of Code | 42 | - |
Fan In | 2 | - |
DIT | 1 | - |
Maintainability Index (NC) | 115.03 | - |
Specialization ratio | 0.00 | - |
Reuse Ratio | 0.50 | - |
COH | 0.10 | - |
Local Method Calls | 2 | createTest (2) asTest (3) |
LCOM2 | 8.00 | - |
Max Complexity | 3 | - |
Halstead Cumulative Volume | 1280.04 | - |
Hierarchy Method Calls | 3 | get (1) containsKey (1) put (1) |
Number of Queries | 5 | - |
Fan Out | 9 | - |
SuperClass Name | java.util.HashMap | - |
SIX | 0.00 | - |
External Method Calls | 1 | junit.framework.TestSuite.TestSuite (1) org.junit.runner.notification.RunNotifier.addListener (1) junit.framework.JUnit4TestAdapterCache.JUnit4TestAdapterCache (1) org.junit.runner.Description.isTest (2) List org.junit.runner.notification.RunNotifier.RunNotifier (1) junit.framework.TestSuite.addTest (1) java.util.Arrays.asList (1) org.junit.runner.Description.isSuite (1) org.junit.runner.notification.RunListener.RunListener (1) java.util.ArrayList.ArrayList (1) org.junit.runner.Description.getChildren (2) junit.framework.JUnit4TestCaseFacade.JUnit4TestCaseFacade (1) org.junit.runner.Description.getDisplayName (1) |
Superclasses | 1 | java.util.HashMap |
Total Complexity | 11 | - |
Subclasses | 0 | - |
Message Passing Coupling | 1 | - |
Number of Commands | 0 | - |
Interfaces | 0 | - |
Cumulative Number of Comments | 0 | - |
Halstead Cumulative Length | 273 | - |
Modifiers | 0 | - |
Methods in Class : junit.framework.JUnit4TestAdapterCache | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | |
![]() | asTest | 3 | 0 | 4 | 38 | 18 | 1267.66 | 0.05 | 2 | 1 | 4 | 9 | 0 | 1 | 1 | 8.00 | 0 | 0 | 0 | 0 | 1 | 158.46 | 16 | 6 | 22 | 1 | 6 | 0 |
![]() | asTestList | 3 | 0 | 9 | 61 | 28 | 3665.61 | 0.10 | 5 | 5 | 1 | 11 | 0 | 1 | 1 | 12.50 | 1 | 0 | 0 | 0 | 2 | 293.25 | 25 | 6 | 36 | 2 | 8 | 1 |
![]() | createTest | 3 | 0 | 8 | 51 | 24 | 2176.45 | 0.08 | 4 | 6 | 1 | 10 | 0 | 1 | 0 | 9.31 | 1 | 0 | 0 | 0 | 1 | 233.83 | 22 | 7 | 29 | 1 | 8 | 1 |
![]() | getDefault | 1 | 0 | 2 | 9 | 9 | 85.59 | 0.01 | 1 | 0 | 0 | 3 | 0 | 0 | 8 | 3.00 | 0 | 0 | 0 | 0 | 0 | 28.53 | 3 | 1 | 6 | 0 | 0 | 0 |
![]() | getNotifier | 1 | 0 | 4 | 94 | 36 | 4918.05 | 0.16 | 4 | 3 | 0 | 21 | 0 | 2 | 1 | 10.12 | 1 | 0 | 0 | 0 | 0 | 485.97 | 46 | 2 | 48 | 0 | 4 | 0 |
Analysis of Method : asTest(Description) in Class : junit.framework.JUnit4TestAdapterCache | ||
---|---|---|
Feature | Number | Values |
Name | asTest | - |
Cyclomatic Complexity | 3 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 4 | - |
Halstead Length | 38 | - |
Halstead Vocabulary | 18 | - |
Halstead Effort | 1267.66 | - |
Halstead Bugs | 0.05 | - |
Classes Referenced | 2 | org.junit.runner.Description (1) junit.framework.Test (1) |
External Methods Called | 1 | org.junit.runner.Description.isSuite (1) |
Local Methods Called | 4 | createTest (2) get (1) containsKey (1) put (1) |
Lines Of Code | 9 | - |
Number of Comments | 0 | - |
Arguments | 1 | description (org.junit.runner.Description) |
Modifiers | 1 | public |
Halstead Difficulty | 8.00 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 1 | - |
Halstead Volume | 158.46 | - |
Number of Operands | 16 | - |
Variable References | 6 | description (6) |
Number of Operators | 22 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 6 | - |
Number of Loops | 0 | - |
Analysis of Method : asTestList(Description) in Class : junit.framework.JUnit4TestAdapterCache | ||
---|---|---|
Feature | Number | Values |
Name | asTestList | - |
Cyclomatic Complexity | 3 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 9 | - |
Halstead Length | 61 | - |
Halstead Vocabulary | 28 | - |
Halstead Effort | 3665.61 | - |
Halstead Bugs | 0.10 | - |
Classes Referenced | 5 | java.util.List (2) org.junit.runner.Description (2) java.util.ArrayList (1) java.util.Arrays (1) junit.framework.Test (3) |
External Methods Called | 5 | org.junit.runner.Description.isTest (1) java.util.Arrays.asList (1) List java.util.ArrayList.ArrayList (1) org.junit.runner.Description.getChildren (1) |
Local Methods Called | 1 | asTest (2) |
Lines Of Code | 11 | - |
Number of Comments | 0 | - |
Arguments | 1 | description (org.junit.runner.Description) |
Modifiers | 1 | public |
Halstead Difficulty | 12.50 | - |
Variable Declarations | 1 | returnThis (List<Test>) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 2 | - |
Halstead Volume | 293.25 | - |
Number of Operands | 25 | - |
Variable References | 6 | description (3) child (1) returnThis (2) |
Number of Operators | 36 | - |
Max. depth of nesting | 2 | - |
Number of Expressions | 8 | - |
Number of Loops | 1 | - |
Analysis of Method : createTest(Description) in Class : junit.framework.JUnit4TestAdapterCache | ||
---|---|---|
Feature | Number | Values |
Name | createTest | - |
Cyclomatic Complexity | 3 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 8 | - |
Halstead Length | 51 | - |
Halstead Vocabulary | 24 | - |
Halstead Effort | 2176.45 | - |
Halstead Bugs | 0.08 | - |
Classes Referenced | 4 | org.junit.runner.Description (2) junit.framework.TestSuite (2) junit.framework.JUnit4TestCaseFacade (1) junit.framework.Test (1) |
External Methods Called | 6 | org.junit.runner.Description.isTest (1) org.junit.runner.Description.getChildren (1) junit.framework.TestSuite.TestSuite (1) junit.framework.JUnit4TestCaseFacade.JUnit4TestCaseFacade (1) org.junit.runner.Description.getDisplayName (1) junit.framework.TestSuite.addTest (1) |
Local Methods Called | 1 | asTest (1) |
Lines Of Code | 10 | - |
Number of Comments | 0 | - |
Arguments | 1 | description (org.junit.runner.Description) |
Modifiers | 0 | - |
Halstead Difficulty | 9.31 | - |
Variable Declarations | 1 | suite (TestSuite) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 1 | - |
Halstead Volume | 233.83 | - |
Number of Operands | 22 | - |
Variable References | 7 | suite (2) description (4) child (1) |
Number of Operators | 29 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 8 | - |
Number of Loops | 1 | - |
Analysis of Method : getDefault() in Class : junit.framework.JUnit4TestAdapterCache | ||
---|---|---|
Feature | Number | Values |
Name | getDefault | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 9 | - |
Halstead Vocabulary | 9 | - |
Halstead Effort | 85.59 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | junit.framework.JUnit4TestAdapterCache (1) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 0 | - |
Modifiers | 8 | private static final private static final public static |
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 | fInstance (1) |
Number of Operators | 6 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 0 | - |
Number of Loops | 0 | - |
Analysis of Method : getNotifier(TestResult, JUnit4TestAdapter) in Class : junit.framework.JUnit4TestAdapterCache | ||
---|---|---|
Feature | Number | Values |
Name | getNotifier | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 4 | - |
Halstead Length | 94 | - |
Halstead Vocabulary | 36 | - |
Halstead Effort | 4918.05 | - |
Halstead Bugs | 0.16 | - |
Classes Referenced | 4 | org.junit.runner.notification.RunNotifier (3) org.junit.runner.notification.RunListener (1) junit.framework.TestResult (1) junit.framework.JUnit4TestAdapter (1) |
External Methods Called | 3 | org.junit.runner.notification.RunNotifier.RunNotifier (1) org.junit.runner.notification.RunNotifier.addListener (1) org.junit.runner.notification.RunListener.RunListener (1) |
Local Methods Called | 0 | |
Lines Of Code | 21 | - |
Number of Comments | 0 | - |
Arguments | 2 | result (TestResult) adapter (junit.framework.JUnit4TestAdapter) |
Modifiers | 1 | public |
Halstead Difficulty | 10.12 | - |
Variable Declarations | 1 | notifier (org.junit.runner.notification.RunNotifier) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 485.97 | - |
Number of Operands | 46 | - |
Variable References | 2 | notifier (2) |
Number of Operators | 48 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 4 | - |
Number of Loops | 0 | - |
Top of this page | Data Generated by JHawk - The Java Metrics tool | Home |