![]() | Analysis of Class : org.junit.internal.runners.MethodValidator (Includes summary list of methods in class) | Home |
Dashboard for Class : org.junit.internal.runners.MethodValidator |
---|
![]() |
Cyclomatic Complexity |
Summary of MethodValidator | ||
---|---|---|
Feature | Number | Values |
Name | MethodValidator | - |
Number of Methods | 7 | - |
LCOM | 0.17 | - |
Average Cyclomatic Complexity | 2.29 | - |
Number of Statements | 38 | - |
Halstead Cumulative Bugs | 0.60 | - |
Halstead Effort | 23824.30 | - |
UnWeighted Class Size | 9 | - |
Instance Variables | 2 | fErrors (java.util.List) fTestClass (TestClass) |
Imported Packages | 11 | java.lang.annotation.Annotation java.lang.reflect.Method java.lang.reflect.Modifier java.util.ArrayList java.util.List org.junit.After org.junit.AfterClass org.junit.Before org.junit.BeforeClass org.junit.Test org.junit.runners.BlockJUnit4ClassRunner |
Response For class | 8 | - |
CBO | 4 | - |
Maintainability Index | 116.92 | - |
Cumulative Number of Comment Lines | 5 | - |
Lines Of Code | 59 | - |
Fan In | 1 | - |
DIT | 1 | - |
Maintainability Index (NC) | 116.92 | - |
Specialization ratio | 0.00 | - |
Reuse Ratio | 0.00 | - |
COH | 0.64 | - |
Local Method Calls | 4 | validateStaticMethods (1) validateInstanceMethods (1) validateNoArgConstructor (1) validateTestMethods (5) |
LCOM2 | 0.00 | - |
Max Complexity | 7 | - |
Halstead Cumulative Volume | 1793.80 | - |
Hierarchy Method Calls | 0 | |
Number of Queries | 1 | - |
Fan Out | 3 | - |
SuperClass Name | java.lang.Object | - |
SIX | 0.00 | - |
External Method Calls | 1 | java.util.List.add (7) java.lang.reflect.Modifier.isPublic (2) List org.junit.internal.runners.TestClass.getAnnotatedMethods (2) java.util.List.isEmpty (1) getDeclaringClass().getModifiers (1) org.junit.internal.runners.InitializationError.InitializationError (1) java.util.ArrayList.ArrayList (1) java.lang.Exception.Exception (7) each.getName (4) each.getDeclaringClass (2) each.getParameterTypes (1) org.junit.internal.runners.TestClass.getConstructor (1) each.getReturnType (1) each.getModifiers (2) java.lang.reflect.Modifier.isStatic (1) getDeclaringClass().getName (1) |
Superclasses | 0 | - |
Total Complexity | 16 | - |
Subclasses | 0 | - |
Message Passing Coupling | 1 | - |
Number of Commands | 6 | - |
Interfaces | 0 | - |
Cumulative Number of Comments | 1 | - |
Halstead Cumulative Length | 358 | - |
Modifiers | 0 | - |
Methods in Class : org.junit.internal.runners.MethodValidator | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | |
![]() | MethodValidator | 1 | 0 | 2 | 10 | 9 | 99.06 | 0.01 | 1 | 0 | 0 | 3 | 0 | 1 | 4 | 3.12 | 0 | 0 | 0 | 0 | 0 | 31.70 | 5 | 2 | 5 | 0 | 1 | 0 |
![]() | assertValid | 2 | 0 | 2 | 20 | 15 | 546.96 | 0.03 | 1 | 2 | 0 | 4 | 0 | 0 | 1 | 7.00 | 0 | 1 | 0 | 0 | 0 | 78.14 | 7 | 2 | 13 | 0 | 3 | 0 |
![]() | validateInstanceMethods | 2 | 0 | 6 | 57 | 30 | 2237.54 | 0.09 | 6 | 4 | 1 | 8 | 0 | 0 | 1 | 8.00 | 1 | 0 | 0 | 0 | 0 | 279.69 | 24 | 3 | 33 | 0 | 6 | 0 |
![]() | validateMethodsForDefaultRunner | 1 | 0 | 5 | 20 | 14 | 266.51 | 0.03 | 2 | 0 | 3 | 6 | 0 | 0 | 1 | 3.50 | 0 | 0 | 0 | 0 | 0 | 76.15 | 7 | 1 | 13 | 0 | 3 | 0 |
![]() | validateNoArgConstructor | 2 | 0 | 4 | 27 | 17 | 539.55 | 0.04 | 1 | 3 | 0 | 7 | 0 | 0 | 1 | 4.89 | 0 | 0 | 1 | 0 | 2 | 110.36 | 11 | 3 | 16 | 1 | 3 | 0 |
![]() | validateStaticMethods | 1 | 0 | 3 | 19 | 12 | 272.46 | 0.02 | 2 | 0 | 1 | 4 | 0 | 0 | 1 | 4.00 | 0 | 0 | 0 | 0 | 0 | 68.11 | 8 | 0 | 11 | 0 | 0 | 0 |
![]() | validateTestMethods | 7 | 0 | 13 | 187 | 55 | 19588.08 | 0.36 | 9 | 12 | 0 | 23 | 0 | 2 | 1 | 18.12 | 2 | 0 | 0 | 0 | 2 | 1081.11 | 81 | 23 | 106 | 2 | 47 | 1 |
Analysis of Method : MethodValidator(TestClass) in Class : org.junit.internal.runners.MethodValidator | ||
---|---|---|
Feature | Number | Values |
Name | MethodValidator | - |
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 | org.junit.internal.runners.TestClass (1) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 1 | testClass (TestClass) |
Modifiers | 4 | private final private 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 | fTestClass (1) testClass (1) |
Number of Operators | 5 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : assertValid() in Class : org.junit.internal.runners.MethodValidator | ||
---|---|---|
Feature | Number | Values |
Name | assertValid | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 20 | - |
Halstead Vocabulary | 15 | - |
Halstead Effort | 546.96 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 1 | org.junit.internal.runners.InitializationError (2) |
External Methods Called | 2 | org.junit.internal.runners.InitializationError.InitializationError (1) java.util.List.isEmpty (1) |
Local Methods Called | 0 | |
Lines Of Code | 4 | - |
Number of Comments | 0 | - |
Arguments | 0 | - |
Modifiers | 1 | public |
Halstead Difficulty | 7.00 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 1 | org.junit.internal.runners.InitializationError (1) |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 78.14 | - |
Number of Operands | 7 | - |
Variable References | 2 | fErrors (2) |
Number of Operators | 13 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 3 | - |
Number of Loops | 0 | - |
Analysis of Method : validateInstanceMethods() in Class : org.junit.internal.runners.MethodValidator | ||
---|---|---|
Feature | Number | Values |
Name | validateInstanceMethods | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 6 | - |
Halstead Length | 57 | - |
Halstead Vocabulary | 30 | - |
Halstead Effort | 2237.54 | - |
Halstead Bugs | 0.09 | - |
Classes Referenced | 6 | java.util.List (1) After.class (1) Before.class (1) java.lang.Exception (1) java.lang.reflect.Method (2) Test.class (2) |
External Methods Called | 4 | org.junit.internal.runners.TestClass.getAnnotatedMethods (1) List java.lang.Exception.Exception (1) java.util.List.add (1) |
Local Methods Called | 1 | validateTestMethods (3) |
Lines Of Code | 8 | - |
Number of Comments | 0 | - |
Arguments | 0 | - |
Modifiers | 1 | public |
Halstead Difficulty | 8.00 | - |
Variable Declarations | 1 | methods (List<Method>) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 279.69 | - |
Number of Operands | 24 | - |
Variable References | 3 | fErrors (1) methods (1) fTestClass (1) |
Number of Operators | 33 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 6 | - |
Number of Loops | 0 | - |
Analysis of Method : validateMethodsForDefaultRunner() in Class : org.junit.internal.runners.MethodValidator | ||
---|---|---|
Feature | Number | Values |
Name | validateMethodsForDefaultRunner | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 5 | - |
Halstead Length | 20 | - |
Halstead Vocabulary | 14 | - |
Halstead Effort | 266.51 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 2 | java.util.List (1) java.lang.Throwable (1) |
External Methods Called | 0 | |
Local Methods Called | 3 | validateStaticMethods (1) validateInstanceMethods (1) validateNoArgConstructor (1) |
Lines Of Code | 6 | - |
Number of Comments | 0 | - |
Arguments | 0 | - |
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 | 76.15 | - |
Number of Operands | 7 | - |
Variable References | 1 | fErrors (1) |
Number of Operators | 13 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 3 | - |
Number of Loops | 0 | - |
Analysis of Method : validateNoArgConstructor() in Class : org.junit.internal.runners.MethodValidator | ||
---|---|---|
Feature | Number | Values |
Name | validateNoArgConstructor | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 4 | - |
Halstead Length | 27 | - |
Halstead Vocabulary | 17 | - |
Halstead Effort | 539.55 | - |
Halstead Bugs | 0.04 | - |
Classes Referenced | 1 | java.lang.Exception (2) |
External Methods Called | 3 | org.junit.internal.runners.TestClass.getConstructor (1) java.lang.Exception.Exception (1) java.util.List.add (1) |
Local Methods Called | 0 | |
Lines Of Code | 7 | - |
Number of Comments | 0 | - |
Arguments | 0 | - |
Modifiers | 1 | public |
Halstead Difficulty | 4.89 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 1 | java.lang.Exception (1) |
Number of casts | 0 | - |
Total Depth of Nesting | 2 | - |
Halstead Volume | 110.36 | - |
Number of Operands | 11 | - |
Variable References | 3 | fErrors (1) fTestClass (1) e (1) |
Number of Operators | 16 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 3 | - |
Number of Loops | 0 | - |
Analysis of Method : validateStaticMethods() in Class : org.junit.internal.runners.MethodValidator | ||
---|---|---|
Feature | Number | Values |
Name | validateStaticMethods | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 3 | - |
Halstead Length | 19 | - |
Halstead Vocabulary | 12 | - |
Halstead Effort | 272.46 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 2 | AfterClass.class (1) BeforeClass.class (1) |
External Methods Called | 0 | |
Local Methods Called | 1 | validateTestMethods (2) |
Lines Of Code | 4 | - |
Number of Comments | 0 | - |
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 | 68.11 | - |
Number of Operands | 8 | - |
Variable References | 0 | |
Number of Operators | 11 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 0 | - |
Number of Loops | 0 | - |
Analysis of Method : validateTestMethods(Class, boolean) in Class : org.junit.internal.runners.MethodValidator | ||
---|---|---|
Feature | Number | Values |
Name | validateTestMethods | - |
Cyclomatic Complexity | 7 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 13 | - |
Halstead Length | 187 | - |
Halstead Vocabulary | 55 | - |
Halstead Effort | 19588.08 | - |
Halstead Bugs | 0.36 | - |
Classes Referenced | 9 | java.lang.Exception (5) java.lang.annotation.Annotation (1) java.lang.String (1) java.lang.Class (1) java.lang.reflect.Method (3) java.lang.reflect.Modifier (3) java.lang.Void (1) java.util.List (1) ?extendsAnnotation (1) |
External Methods Called | 12 | java.lang.reflect.Modifier.isPublic (2) getDeclaringClass().getModifiers (1) each.getName (4) org.junit.internal.runners.TestClass.getAnnotatedMethods (1) each.getParameterTypes (1) java.util.List.add (5) each.getDeclaringClass (2) java.lang.Exception.Exception (5) each.getReturnType (1) java.lang.reflect.Modifier.isStatic (1) each.getModifiers (2) getDeclaringClass().getName (1) |
Local Methods Called | 0 | |
Lines Of Code | 23 | - |
Number of Comments | 0 | - |
Arguments | 2 | annotation (java.lang.Class) isStatic (boolean) |
Modifiers | 1 | private |
Halstead Difficulty | 18.12 | - |
Variable Declarations | 2 | methods (List<Method>) state (java.lang.String) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 2 | - |
Halstead Volume | 1081.11 | - |
Number of Operands | 81 | - |
Variable References | 23 | state (1) length (1) methods (1) fTestClass (1) annotation (1) fErrors (5) TYPE (1) each (10) isStatic (2) |
Number of Operators | 106 | - |
Max. depth of nesting | 2 | - |
Number of Expressions | 47 | - |
Number of Loops | 1 | - |
Top of this page | Data Generated by JHawk - The Java Metrics tool | Home |