![]() | Analysis of Class : junit.framework.TestSuite (Includes summary list of methods in class) | Home |
Dashboard for Class : junit.framework.TestSuite |
---|
![]() |
Cyclomatic Complexity |
Summary of TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | TestSuite | - |
Number of Methods | 24 | - |
LCOM | 0.30 | - |
Average Cyclomatic Complexity | 1.83 | - |
Number of Statements | 106 | - |
Halstead Cumulative Bugs | 1.37 | - |
Halstead Effort | 56644.42 | - |
UnWeighted Class Size | 26 | - |
Instance Variables | 2 | fName (java.lang.String) fTests (java.util.Vector) |
Imported Packages | 10 | java.io.PrintWriter java.io.StringWriter java.lang.reflect.Constructor java.lang.reflect.InvocationTargetException java.lang.reflect.Method java.lang.reflect.Modifier java.util.ArrayList java.util.Enumeration java.util.List java.util.Vector |
Response For class | 25 | - |
CBO | 9 | - |
Maintainability Index | 122.08 | - |
Cumulative Number of Comment Lines | 102 | - |
Lines Of Code | 147 | - |
Fan In | 6 | - |
DIT | 1 | - |
Maintainability Index (NC) | 121.84 | - |
Specialization ratio | 1.00 | - |
Reuse Ratio | 0.00 | - |
COH | 0.21 | - |
Local Method Calls | 11 | isPublicTestMethod (1) getName (2) runTest (1) getTestConstructor (2) createTest (1) isTestMethod (2) exceptionToString (3) setName (3) addTest (7) warning (8) addTestMethod (1) |
LCOM2 | 126.00 | - |
Max Complexity | 7 | - |
Halstead Cumulative Volume | 4115.95 | - |
Hierarchy Method Calls | 2 | this (2) super.toString (1) |
Number of Queries | 12 | - |
Fan Out | 3 | - |
SuperClass Name | java.lang.Object | - |
SIX | 0.00 | - |
External Method Calls | 1 | test().setName (1) junit.framework.TestCase.TestCase (1) junit.framework.TestResult.shouldStop (1) getReturnType().equals (1) Class>.getDeclaredMethods (1) java.io.PrintWriter.PrintWriter (1) Constructor.newInstance (2) java.lang.Class.getCanonicalName (1) java.lang.reflect.Method.getName (3) java.lang.reflect.Method.getReturnType (1) junit.framework.TestSuite.TestSuite (2) junit.framework.Test.run (1) java.util.List.add (1) java.util.Vector.get (1) java.lang.reflect.Modifier.isPublic (2) Class>.getSuperclass (1) java.lang.Class.getName (5) java.lang.reflect.Method.getModifiers (1) java.util.ArrayList.ArrayList (1) java.lang.Class.getModifiers (1) java.util.Vector.elements (1) java.util.Vector.add (1) java.io.StringWriter.StringWriter (1) java.lang.String.startsWith (1) java.util.Vector.Vector (1) java.util.Vector.size (2) each.countTestCases (1) java.lang.Throwable.printStackTrace (1) each.asSubclass (1) java.lang.Class.Class (1) java.io.StringWriter.toString (1) java.util.List.contains (1) Constructor.getParameterTypes (1) java.lang.reflect.Method.getParameterTypes (1) e.getTargetException (1) java.lang.Class.getConstructor (2) java.lang.Object.Object (2) |
Superclasses | 0 | - |
Total Complexity | 44 | - |
Subclasses | 1 | junit.extensions.ActiveTestSuite |
Message Passing Coupling | 1 | - |
Number of Commands | 12 | - |
Interfaces | 1 | junit.framework.Test |
Cumulative Number of Comments | 24 | - |
Halstead Cumulative Length | 858 | - |
Modifiers | 0 | - |
Methods in Class : junit.framework.TestSuite | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | |
![]() | TestSuite | 1 | 3 | 1 | 4 | 4 | 12.00 | 0.00 | 0 | 0 | 0 | 2 | 2 | 0 | 3 | 1.50 | 0 | 0 | 0 | 0 | 0 | 8.00 | 1 | 0 | 3 | 0 | 0 | 0 |
![]() | TestSuite | 6 | 6 | 18 | 144 | 56 | 16611.15 | 0.28 | 11 | 7 | 4 | 22 | 2 | 1 | 1 | 19.86 | 2 | 0 | 1 | 0 | 4 | 836.26 | 57 | 16 | 87 | 1 | 29 | 2 |
![]() | TestSuite | 1 | 4 | 3 | 22 | 17 | 505.82 | 0.03 | 4 | 0 | 2 | 4 | 1 | 2 | 1 | 5.62 | 0 | 0 | 0 | 0 | 0 | 89.92 | 10 | 2 | 12 | 0 | 2 | 0 |
![]() | TestSuite | 1 | 4 | 3 | 22 | 17 | 505.82 | 0.03 | 4 | 0 | 2 | 4 | 1 | 2 | 1 | 5.62 | 0 | 0 | 0 | 0 | 0 | 89.92 | 10 | 2 | 12 | 0 | 2 | 0 |
![]() | TestSuite | 2 | 4 | 5 | 32 | 20 | 1412.65 | 0.05 | 4 | 2 | 1 | 4 | 1 | 1 | 1 | 10.21 | 0 | 0 | 0 | 0 | 0 | 138.30 | 11 | 2 | 21 | 0 | 3 | 1 |
![]() | TestSuite | 1 | 3 | 2 | 10 | 8 | 75.00 | 0.01 | 1 | 0 | 1 | 3 | 1 | 1 | 1 | 2.50 | 0 | 0 | 0 | 0 | 0 | 30.00 | 5 | 1 | 5 | 0 | 1 | 0 |
![]() | addTest | 1 | 3 | 2 | 13 | 11 | 131.17 | 0.01 | 1 | 1 | 0 | 3 | 1 | 1 | 1 | 2.92 | 0 | 0 | 0 | 0 | 0 | 44.97 | 7 | 2 | 6 | 0 | 1 | 0 |
![]() | addTestMethod | 4 | 0 | 8 | 83 | 37 | 4869.03 | 0.14 | 6 | 4 | 5 | 12 | 0 | 3 | 1 | 11.26 | 1 | 0 | 0 | 0 | 1 | 432.38 | 37 | 11 | 46 | 1 | 16 | 0 |
![]() | addTestSuite | 1 | 3 | 2 | 19 | 16 | 390.86 | 0.03 | 4 | 1 | 1 | 3 | 1 | 1 | 1 | 5.14 | 0 | 0 | 0 | 0 | 0 | 76.00 | 8 | 1 | 11 | 0 | 2 | 0 |
![]() | countTestCases | 2 | 3 | 7 | 26 | 17 | 910.92 | 0.04 | 1 | 1 | 0 | 6 | 1 | 0 | 1 | 8.57 | 1 | 0 | 0 | 0 | 0 | 106.27 | 12 | 4 | 14 | 0 | 3 | 1 |
![]() | createTest | 7 | 4 | 15 | 174 | 54 | 22940.03 | 0.33 | 11 | 6 | 3 | 25 | 1 | 2 | 2 | 22.91 | 2 | 0 | 4 | 2 | 8 | 1001.35 | 72 | 20 | 102 | 2 | 40 | 0 |
![]() | exceptionToString | 1 | 3 | 5 | 35 | 19 | 1070.48 | 0.05 | 4 | 4 | 0 | 6 | 1 | 1 | 2 | 7.20 | 2 | 0 | 0 | 0 | 0 | 148.68 | 16 | 4 | 19 | 0 | 6 | 0 |
![]() | getName | 1 | 5 | 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 |
![]() | getTestConstructor | 2 | 5 | 4 | 46 | 27 | 2974.66 | 0.07 | 6 | 2 | 0 | 7 | 2 | 1 | 2 | 13.60 | 0 | 1 | 1 | 0 | 2 | 218.72 | 16 | 2 | 30 | 1 | 3 | 0 |
![]() | isPublicTestMethod | 1 | 0 | 2 | 21 | 15 | 358.95 | 0.03 | 2 | 2 | 1 | 3 | 0 | 1 | 1 | 4.38 | 0 | 0 | 0 | 0 | 0 | 82.04 | 10 | 2 | 11 | 0 | 4 | 0 |
![]() | isTestMethod | 1 | 0 | 2 | 37 | 22 | 801.42 | 0.05 | 2 | 5 | 0 | 6 | 0 | 1 | 1 | 4.86 | 0 | 0 | 0 | 0 | 0 | 165.00 | 17 | 5 | 20 | 0 | 9 | 0 |
![]() | run | 3 | 3 | 7 | 27 | 18 | 675.53 | 0.04 | 2 | 1 | 1 | 7 | 1 | 1 | 1 | 6.00 | 0 | 0 | 0 | 0 | 1 | 112.59 | 12 | 4 | 15 | 1 | 1 | 1 |
![]() | runTest | 1 | 0 | 2 | 15 | 12 | 172.85 | 0.02 | 2 | 1 | 0 | 3 | 0 | 2 | 1 | 3.21 | 0 | 0 | 0 | 0 | 0 | 53.77 | 9 | 2 | 6 | 0 | 1 | 0 |
![]() | setName | 1 | 4 | 2 | 11 | 10 | 109.62 | 0.01 | 1 | 0 | 0 | 3 | 1 | 1 | 1 | 3.00 | 0 | 0 | 0 | 0 | 0 | 36.54 | 6 | 2 | 5 | 0 | 1 | 0 |
![]() | testAt | 1 | 3 | 2 | 14 | 12 | 175.66 | 0.02 | 1 | 1 | 0 | 3 | 1 | 1 | 1 | 3.50 | 0 | 0 | 0 | 0 | 0 | 50.19 | 7 | 2 | 7 | 0 | 1 | 0 |
![]() | testCount | 1 | 3 | 2 | 11 | 10 | 109.62 | 0.01 | 0 | 1 | 0 | 3 | 1 | 0 | 1 | 3.00 | 0 | 0 | 0 | 0 | 0 | 36.54 | 4 | 1 | 7 | 0 | 1 | 0 |
![]() | tests | 1 | 3 | 2 | 14 | 13 | 207.22 | 0.02 | 2 | 1 | 0 | 3 | 1 | 0 | 1 | 4.00 | 0 | 0 | 0 | 0 | 0 | 51.81 | 5 | 1 | 9 | 0 | 1 | 0 |
![]() | toString | 2 | 2 | 3 | 23 | 15 | 539.15 | 0.03 | 1 | 0 | 2 | 5 | 1 | 0 | 2 | 6.00 | 0 | 0 | 0 | 0 | 0 | 89.86 | 8 | 0 | 15 | 0 | 4 | 0 |
![]() | warning | 1 | 3 | 2 | 27 | 20 | 641.81 | 0.04 | 3 | 1 | 0 | 8 | 1 | 1 | 2 | 5.50 | 0 | 0 | 0 | 0 | 0 | 116.69 | 11 | 0 | 16 | 0 | 1 | 0 |
Analysis of Method : TestSuite() in Class : junit.framework.TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | TestSuite | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 1 | - |
Halstead Length | 4 | - |
Halstead Vocabulary | 4 | - |
Halstead Effort | 12.00 | - |
Halstead Bugs | 0.00 | - |
Classes Referenced | 0 | |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 2 | - |
Number of Comments | 2 | - |
Arguments | 0 | - |
Modifiers | 3 | private private 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 | 8.00 | - |
Number of Operands | 1 | - |
Variable References | 0 | |
Number of Operators | 3 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 0 | - |
Number of Loops | 0 | - |
Analysis of Method : TestSuite(Class) in Class : junit.framework.TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | TestSuite | - |
Cyclomatic Complexity | 6 | - |
Number of Comment Lines | 6 | - |
Number of Statements | 18 | - |
Halstead Length | 144 | - |
Halstead Vocabulary | 56 | - |
Halstead Effort | 16611.15 | - |
Halstead Bugs | 0.28 | - |
Classes Referenced | 11 | junit.framework.TestCase (1) java.lang.String (2) java.lang.Class (2) java.lang.NoSuchMethodException (1) Test.class (1) java.lang.reflect.Method (1) java.lang.reflect.Modifier (1) java.util.List (1) ? (1) ?extendsTestCase (1) java.util.ArrayList (1) |
External Methods Called | 7 | java.lang.Class.getName (4) Class>.getSuperclass (1) java.lang.Class.getModifiers (1) java.util.ArrayList.ArrayList (1) java.util.Vector.size (1) java.lang.reflect.Modifier.isPublic (1) Class>.getDeclaredMethods (1) |
Local Methods Called | 4 | addTest (3) getTestConstructor (1) warning (3) addTestMethod (1) |
Lines Of Code | 22 | - |
Number of Comments | 2 | - |
Arguments | 1 | theClass (java.lang.Class) |
Modifiers | 1 | public |
Halstead Difficulty | 19.86 | - |
Variable Declarations | 2 | superClass (Class<?>) names (List<String>) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 1 | java.lang.NoSuchMethodException (1) |
Number of casts | 0 | - |
Total Depth of Nesting | 4 | - |
Halstead Volume | 836.26 | - |
Number of Operands | 57 | - |
Variable References | 16 | superClass (4) each (1) fName (1) names (1) fTests (1) theClass (8) |
Number of Operators | 87 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 29 | - |
Number of Loops | 2 | - |
Analysis of Method : TestSuite(Class, String) in Class : junit.framework.TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | TestSuite | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 3 | - |
Halstead Length | 22 | - |
Halstead Vocabulary | 17 | - |
Halstead Effort | 505.82 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 4 | java.lang.String (1) ?extendsTestCase (1) java.lang.Class (1) junit.framework.TestCase (1) |
External Methods Called | 0 | |
Local Methods Called | 2 | this (1) setName (1) |
Lines Of Code | 4 | - |
Number of Comments | 1 | - |
Arguments | 2 | classes (java.lang.Class) name (java.lang.String) |
Modifiers | 1 | public |
Halstead Difficulty | 5.62 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 89.92 | - |
Number of Operands | 10 | - |
Variable References | 2 | name (1) classes (1) |
Number of Operators | 12 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : TestSuite(Class, String) in Class : junit.framework.TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | TestSuite | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 3 | - |
Halstead Length | 22 | - |
Halstead Vocabulary | 17 | - |
Halstead Effort | 505.82 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 4 | java.lang.String (1) ?extendsTestCase (1) java.lang.Class (1) junit.framework.TestCase (1) |
External Methods Called | 0 | |
Local Methods Called | 2 | this (1) setName (1) |
Lines Of Code | 4 | - |
Number of Comments | 1 | - |
Arguments | 2 | classes (java.lang.Class) name (java.lang.String) |
Modifiers | 1 | public |
Halstead Difficulty | 5.62 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 89.92 | - |
Number of Operands | 10 | - |
Variable References | 2 | name (1) classes (1) |
Number of Operators | 12 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : TestSuite(Class...) in Class : junit.framework.TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | TestSuite | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 5 | - |
Halstead Length | 32 | - |
Halstead Vocabulary | 20 | - |
Halstead Effort | 1412.65 | - |
Halstead Bugs | 0.05 | - |
Classes Referenced | 4 | TestCase.class (1) junit.framework.TestSuite (1) java.lang.Class (2) ? (2) |
External Methods Called | 2 | junit.framework.TestSuite.TestSuite (1) each.asSubclass (1) |
Local Methods Called | 1 | addTest (1) |
Lines Of Code | 4 | - |
Number of Comments | 1 | - |
Arguments | 1 | classes (java.lang.Class...) |
Modifiers | 1 | public |
Halstead Difficulty | 10.21 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 138.30 | - |
Number of Operands | 11 | - |
Variable References | 2 | classes (1) each (1) |
Number of Operators | 21 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 3 | - |
Number of Loops | 1 | - |
Analysis of Method : TestSuite(String) in Class : junit.framework.TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | TestSuite | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 10 | - |
Halstead Vocabulary | 8 | - |
Halstead Effort | 75.00 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | java.lang.String (1) |
External Methods Called | 0 | |
Local Methods Called | 1 | setName (1) |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 1 | name (java.lang.String) |
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 | 30.00 | - |
Number of Operands | 5 | - |
Variable References | 1 | name (1) |
Number of Operators | 5 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : addTest(Test) in Class : junit.framework.TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | addTest | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 13 | - |
Halstead Vocabulary | 11 | - |
Halstead Effort | 131.17 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | junit.framework.Test (1) |
External Methods Called | 1 | java.util.Vector.add (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 1 | test (junit.framework.Test) |
Modifiers | 1 | public |
Halstead Difficulty | 2.92 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 44.97 | - |
Number of Operands | 7 | - |
Variable References | 2 | test (1) fTests (1) |
Number of Operators | 6 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : addTestMethod(Method, List, Class) in Class : junit.framework.TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | addTestMethod | - |
Cyclomatic Complexity | 4 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 8 | - |
Halstead Length | 83 | - |
Halstead Vocabulary | 37 | - |
Halstead Effort | 4869.03 | - |
Halstead Bugs | 0.14 | - |
Classes Referenced | 6 | java.util.List (1) java.lang.String (3) ?extendsTestCase (1) java.lang.Class (1) junit.framework.TestCase (1) java.lang.reflect.Method (1) |
External Methods Called | 4 | java.lang.Class.getCanonicalName (1) java.util.List.contains (1) java.lang.reflect.Method.getName (2) java.util.List.add (1) |
Local Methods Called | 5 | createTest (1) addTest (2) warning (1) isTestMethod (1) isPublicTestMethod (1) |
Lines Of Code | 12 | - |
Number of Comments | 0 | - |
Arguments | 3 | m (java.lang.reflect.Method) names (java.util.List) theClass (java.lang.Class) |
Modifiers | 1 | private |
Halstead Difficulty | 11.26 | - |
Variable Declarations | 1 | name (java.lang.String) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 1 | - |
Halstead Volume | 432.38 | - |
Number of Operands | 37 | - |
Variable References | 11 | m (4) name (3) names (2) theClass (2) |
Number of Operators | 46 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 16 | - |
Number of Loops | 0 | - |
Analysis of Method : addTestSuite(Class) in Class : junit.framework.TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | addTestSuite | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 19 | - |
Halstead Vocabulary | 16 | - |
Halstead Effort | 390.86 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 4 | junit.framework.TestSuite (1) ?extendsTestCase (1) java.lang.Class (1) junit.framework.TestCase (1) |
External Methods Called | 1 | junit.framework.TestSuite.TestSuite (1) |
Local Methods Called | 1 | addTest (1) |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 1 | testClass (java.lang.Class) |
Modifiers | 1 | public |
Halstead Difficulty | 5.14 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 76.00 | - |
Number of Operands | 8 | - |
Variable References | 1 | testClass (1) |
Number of Operators | 11 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : countTestCases() in Class : junit.framework.TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | countTestCases | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 7 | - |
Halstead Length | 26 | - |
Halstead Vocabulary | 17 | - |
Halstead Effort | 910.92 | - |
Halstead Bugs | 0.04 | - |
Classes Referenced | 1 | junit.framework.Test (1) |
External Methods Called | 1 | each.countTestCases (1) |
Local Methods Called | 0 | |
Lines Of Code | 6 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 1 | public |
Halstead Difficulty | 8.57 | - |
Variable Declarations | 1 | count (int) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 106.27 | - |
Number of Operands | 12 | - |
Variable References | 4 | count (2) each (1) fTests (1) |
Number of Operators | 14 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 3 | - |
Number of Loops | 1 | - |
Analysis of Method : createTest(Class, String) in Class : junit.framework.TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | createTest | - |
Cyclomatic Complexity | 7 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 15 | - |
Halstead Length | 174 | - |
Halstead Vocabulary | 54 | - |
Halstead Effort | 22940.03 | - |
Halstead Bugs | 0.33 | - |
Classes Referenced | 11 | java.lang.reflect.Constructor (1) junit.framework.TestCase (5) junit.framework.Test (3) java.lang.String (1) java.lang.Class (1) java.lang.NoSuchMethodException (1) java.lang.reflect.InvocationTargetException (1) java.lang.InstantiationException (1) java.lang.IllegalAccessException (1) java.lang.Object (3) ?extendsTestCase (2) |
External Methods Called | 6 | java.lang.Class.getName (1) Constructor.newInstance (2) Constructor.getParameterTypes (1) java.lang.Object.Object (2) e.getTargetException (1) test().setName (1) |
Local Methods Called | 3 | exceptionToString (3) getTestConstructor (1) warning (4) |
Lines Of Code | 25 | - |
Number of Comments | 1 | - |
Arguments | 2 | theClass (java.lang.Class) name (java.lang.String) |
Modifiers | 2 | static public |
Halstead Difficulty | 22.91 | - |
Variable Declarations | 2 | constructor (Constructor<?extendsTestCase>) test (java.lang.Object) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 4 | java.lang.InstantiationException (1) java.lang.NoSuchMethodException (1) java.lang.reflect.InvocationTargetException (1) java.lang.IllegalAccessException (1) |
Number of casts | 2 | - |
Total Depth of Nesting | 8 | - |
Halstead Volume | 1001.35 | - |
Number of Operands | 72 | - |
Variable References | 20 | name (5) constructor (4) length (1) e (3) test (5) theClass (2) |
Number of Operators | 102 | - |
Max. depth of nesting | 2 | - |
Number of Expressions | 40 | - |
Number of Loops | 0 | - |
Analysis of Method : exceptionToString(Throwable) in Class : junit.framework.TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | exceptionToString | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 5 | - |
Halstead Length | 35 | - |
Halstead Vocabulary | 19 | - |
Halstead Effort | 1070.48 | - |
Halstead Bugs | 0.05 | - |
Classes Referenced | 4 | java.io.StringWriter (2) java.io.PrintWriter (2) java.lang.String (1) java.lang.Throwable (1) |
External Methods Called | 4 | java.lang.Throwable.printStackTrace (1) java.io.PrintWriter.PrintWriter (1) java.io.StringWriter.StringWriter (1) java.io.StringWriter.toString (1) |
Local Methods Called | 0 | |
Lines Of Code | 6 | - |
Number of Comments | 1 | - |
Arguments | 1 | t (java.lang.Throwable) |
Modifiers | 2 | private static |
Halstead Difficulty | 7.20 | - |
Variable Declarations | 2 | 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 | 148.68 | - |
Number of Operands | 16 | - |
Variable References | 4 | t (1) stringWriter (2) writer (1) |
Number of Operators | 19 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 6 | - |
Number of Loops | 0 | - |
Analysis of Method : getName() in Class : junit.framework.TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | getName | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 5 | - |
Number of Statements | 2 | - |
Halstead Length | 8 | - |
Halstead Vocabulary | 8 | - |
Halstead Effort | 60.00 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | java.lang.String (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 | fName (1) |
Number of Operators | 5 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 0 | - |
Number of Loops | 0 | - |
Analysis of Method : getTestConstructor(Class) in Class : junit.framework.TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | getTestConstructor | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 5 | - |
Number of Statements | 4 | - |
Halstead Length | 46 | - |
Halstead Vocabulary | 27 | - |
Halstead Effort | 2974.66 | - |
Halstead Bugs | 0.07 | - |
Classes Referenced | 6 | java.lang.NoSuchMethodException (2) ?extendsTestCase (2) String.class (1) java.lang.Class (2) junit.framework.TestCase (1) java.lang.reflect.Constructor (1) |
External Methods Called | 2 | java.lang.Class.Class (1) java.lang.Class.getConstructor (2) |
Local Methods Called | 0 | |
Lines Of Code | 7 | - |
Number of Comments | 2 | - |
Arguments | 1 | theClass (java.lang.Class) |
Modifiers | 2 | public static |
Halstead Difficulty | 13.60 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 1 | java.lang.NoSuchMethodException (1) |
Exceptions Referenced | 1 | java.lang.NoSuchMethodException (1) |
Number of casts | 0 | - |
Total Depth of Nesting | 2 | - |
Halstead Volume | 218.72 | - |
Number of Operands | 16 | - |
Variable References | 2 | theClass (2) |
Number of Operators | 30 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 3 | - |
Number of Loops | 0 | - |
Analysis of Method : isPublicTestMethod(Method) in Class : junit.framework.TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | isPublicTestMethod | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 21 | - |
Halstead Vocabulary | 15 | - |
Halstead Effort | 358.95 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 2 | java.lang.reflect.Modifier (1) java.lang.reflect.Method (1) |
External Methods Called | 2 | java.lang.reflect.Modifier.isPublic (1) java.lang.reflect.Method.getModifiers (1) |
Local Methods Called | 1 | isTestMethod (1) |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 1 | m (java.lang.reflect.Method) |
Modifiers | 1 | private |
Halstead Difficulty | 4.38 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 82.04 | - |
Number of Operands | 10 | - |
Variable References | 2 | m (2) |
Number of Operators | 11 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 4 | - |
Number of Loops | 0 | - |
Analysis of Method : isTestMethod(Method) in Class : junit.framework.TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | isTestMethod | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 37 | - |
Halstead Vocabulary | 22 | - |
Halstead Effort | 801.42 | - |
Halstead Bugs | 0.05 | - |
Classes Referenced | 2 | java.lang.Void (1) java.lang.reflect.Method (1) |
External Methods Called | 5 | java.lang.reflect.Method.getName (1) java.lang.String.startsWith (1) getReturnType().equals (1) java.lang.reflect.Method.getParameterTypes (1) java.lang.reflect.Method.getReturnType (1) |
Local Methods Called | 0 | |
Lines Of Code | 6 | - |
Number of Comments | 0 | - |
Arguments | 1 | m (java.lang.reflect.Method) |
Modifiers | 1 | private |
Halstead Difficulty | 4.86 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 165.00 | - |
Number of Operands | 17 | - |
Variable References | 5 | m (3) length (1) TYPE (1) |
Number of Operators | 20 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 9 | - |
Number of Loops | 0 | - |
Analysis of Method : run(TestResult) in Class : junit.framework.TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | run | - |
Cyclomatic Complexity | 3 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 7 | - |
Halstead Length | 27 | - |
Halstead Vocabulary | 18 | - |
Halstead Effort | 675.53 | - |
Halstead Bugs | 0.04 | - |
Classes Referenced | 2 | junit.framework.Test (1) junit.framework.TestResult (1) |
External Methods Called | 1 | junit.framework.TestResult.shouldStop (1) |
Local Methods Called | 1 | runTest (1) |
Lines Of Code | 7 | - |
Number of Comments | 1 | - |
Arguments | 1 | result (junit.framework.TestResult) |
Modifiers | 1 | public |
Halstead Difficulty | 6.00 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 1 | - |
Halstead Volume | 112.59 | - |
Number of Operands | 12 | - |
Variable References | 4 | result (2) each (1) fTests (1) |
Number of Operators | 15 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 1 | - |
Number of Loops | 1 | - |
Analysis of Method : runTest(Test, TestResult) in Class : junit.framework.TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | runTest | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 15 | - |
Halstead Vocabulary | 12 | - |
Halstead Effort | 172.85 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 2 | junit.framework.Test (1) junit.framework.TestResult (1) |
External Methods Called | 1 | junit.framework.Test.run (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 2 | test (junit.framework.Test) result (junit.framework.TestResult) |
Modifiers | 1 | 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 | 53.77 | - |
Number of Operands | 9 | - |
Variable References | 2 | result (1) test (1) |
Number of Operators | 6 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : setName(String) in Class : junit.framework.TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | setName | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 2 | - |
Halstead Length | 11 | - |
Halstead Vocabulary | 10 | - |
Halstead Effort | 109.62 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | java.lang.String (1) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 1 | name (java.lang.String) |
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 | 6 | - |
Variable References | 2 | name (1) fName (1) |
Number of Operators | 5 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : testAt(int) in Class : junit.framework.TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | testAt | - |
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.Test (1) |
External Methods Called | 1 | java.util.Vector.get (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 1 | index (int) |
Modifiers | 1 | public |
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 | index (1) fTests (1) |
Number of Operators | 7 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : testCount() in Class : junit.framework.TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | testCount | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 11 | - |
Halstead Vocabulary | 10 | - |
Halstead Effort | 109.62 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 0 | |
External Methods Called | 1 | java.util.Vector.size (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
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 | 1 | fTests (1) |
Number of Operators | 7 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : tests() in Class : junit.framework.TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | tests | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 14 | - |
Halstead Vocabulary | 13 | - |
Halstead Effort | 207.22 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 2 | java.util.Enumeration (1) junit.framework.Test (1) |
External Methods Called | 1 | java.util.Vector.elements (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 1 | 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 | 51.81 | - |
Number of Operands | 5 | - |
Variable References | 1 | fTests (1) |
Number of Operators | 9 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : toString() in Class : junit.framework.TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | toString | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 2 | - |
Number of Statements | 3 | - |
Halstead Length | 23 | - |
Halstead Vocabulary | 15 | - |
Halstead Effort | 539.15 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 1 | java.lang.String (1) |
External Methods Called | 0 | |
Local Methods Called | 2 | super.toString (1) getName (2) |
Lines Of Code | 5 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 2 | @Override public |
Halstead Difficulty | 6.00 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 89.86 | - |
Number of Operands | 8 | - |
Variable References | 0 | |
Number of Operators | 15 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 4 | - |
Number of Loops | 0 | - |
Analysis of Method : warning(String) in Class : junit.framework.TestSuite | ||
---|---|---|
Feature | Number | Values |
Name | warning | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 27 | - |
Halstead Vocabulary | 20 | - |
Halstead Effort | 641.81 | - |
Halstead Bugs | 0.04 | - |
Classes Referenced | 3 | java.lang.String (1) junit.framework.Test (1) junit.framework.TestCase (1) |
External Methods Called | 1 | junit.framework.TestCase.TestCase (1) |
Local Methods Called | 0 | |
Lines Of Code | 8 | - |
Number of Comments | 1 | - |
Arguments | 1 | message (java.lang.String) |
Modifiers | 2 | public static |
Halstead Difficulty | 5.50 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 116.69 | - |
Number of Operands | 11 | - |
Variable References | 0 | |
Number of Operators | 16 | - |
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 |