Analysis of Class : org.junit.experimental.theories.Theories (Includes summary list of methods in class) Home

Dashboard for Class : org.junit.experimental.theories.Theories
Cyclomatic Complexity

Summary of Theories
FeatureNumberValues
NameTheories-
Number of Methods7-
LCOM0.00-
Average Cyclomatic Complexity1.57-
Number of Statements28-
Halstead Cumulative Bugs0.36-
Halstead Effort9778.37-
UnWeighted Class Size7-
Instance Variables0 -
Imported Packages14java.lang.reflect.Field
java.lang.reflect.InvocationTargetException
java.lang.reflect.Modifier
java.util.ArrayList
java.util.List
org.junit.Assert
org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueException
org.junit.experimental.theories.internal.Assignments
org.junit.experimental.theories.internal.ParameterizedAssertionError
org.junit.internal.AssumptionViolatedException
org.junit.runners.BlockJUnit4ClassRunner
org.junit.runners.model.FrameworkMethod
org.junit.runners.model.InitializationError
org.junit.runners.model.Statement
Response For class7-
CBO8-
Maintainability Index123.67-
Cumulative Number of Comment Lines2-
Lines Of Code70-
Fan In0-
DIT3-
Maintainability Index (NC)123.67-
Specialization ratio0.00-
Reuse Ratio0.75-
COH0.00-
Local Method Calls2computeTestMethods (1)
validateDataPointFields (1)
LCOM27.00-
Max Complexity3-
Halstead Cumulative Volume1073.90-
Hierarchy Method Calls4validateOnlyOneConstructor (1)
getTestClass (2)
super.collectInitializationErrors (1)
super.computeTestMethods (1)
Number of Queries2-
Fan Out8-
SuperClass Nameorg.junit.runners.BlockJUnit4ClassRunner-
SIX0.05-
External Method Calls0org.junit.experimental.theories.TheoryAnchor.TheoryAnchor (1)
each.getAnnotation (2)
List.addAll (1)
java.lang.reflect.Modifier.isStatic (1)
errors().getJavaClass (1)
getJavaClass().getDeclaredFields (1)
List.getAnnotatedMethods (1)
each.validatePublicVoid (1)
each.validatePublicVoidNoArg (1)
each.getName (1)
each.getModifiers (1)
java.util.List.add (1)
List.removeAll (1)
java.lang.Error.Error (1)
Superclasses3org.junit.runner.Runner
org.junit.runners.BlockJUnit4ClassRunner
org.junit.runners.ParentRunner
Total Complexity11-
Subclasses0 -
Message Passing Coupling0-
Number of Commands5-
Interfaces0 -
Cumulative Number of Comments0-
Halstead Cumulative Length235-
Modifiers0 -
Summary of methods in org.junit.experimental.theories.Theories
Methods in Class : org.junit.experimental.theories.Theories
NameCOMPNOCLNOSHLTHHVOCHEFFHBUGCREFXMETLMETNLOCNOCNOAMODHDIFVDECEXCTEXCRCASTTDNHVOLNANDVREFNOPRMDNNEXPLOOP
Theories1021513266.430.0220030114.800000055.51619010
collectInitializationErrors1032216484.000.0320240125.500000088.0011211020
computeTestMethods10651232326.240.08332700210.0820000230.7022529070
methodBlock1021614284.280.0231030124.670000060.92719010
validateConstructor1021614243.670.0220130124.000000060.92818010
validateDataPointFields30666404023.380.12681601111.4510000351.25285380151
validateTestMethods30645292142.370.0743170129.8000000218.6121524051


Analysis of Method : Theories(Class) in Class : org.junit.experimental.theories.Theories
FeatureNumberValues
NameTheories-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length15-
Halstead Vocabulary13-
Halstead Effort266.43-
Halstead Bugs0.02-
Classes Referenced2java.lang.Class (1)
? (1)
External Methods Called0
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments1klass (java.lang.Class)
Modifiers1public
Halstead Difficulty4.80-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume55.51-
Number of Operands6-
Variable References1klass (1)
Number of Operators9-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : collectInitializationErrors(List) in Class : org.junit.experimental.theories.Theories
FeatureNumberValues
NamecollectInitializationErrors-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements3-
Halstead Length22-
Halstead Vocabulary16-
Halstead Effort484.00-
Halstead Bugs0.03-
Classes Referenced2java.util.List (1)
java.lang.Throwable (2)
External Methods Called0
Local Methods Called2super.collectInitializationErrors (1)
validateDataPointFields (1)
Lines Of Code4-
Number of Comments0-
Arguments1errors (java.util.List)
Modifiers2@Override
protected
Halstead Difficulty5.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume88.00-
Number of Operands11-
Variable References2errors (2)
Number of Operators11-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : computeTestMethods() in Class : org.junit.experimental.theories.Theories
FeatureNumberValues
NamecomputeTestMethods-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements6-
Halstead Length51-
Halstead Vocabulary23-
Halstead Effort2326.24-
Halstead Bugs0.08-
Classes Referenced3java.util.List (3)
org.junit.runners.model.FrameworkMethod (5)
Theory.class (1)
External Methods Called3List.addAll (1)
List.getAnnotatedMethods (1)
List.removeAll (1)
Local Methods Called2getTestClass (1)
super.computeTestMethods (1)
Lines Of Code7-
Number of Comments0-
Arguments0 -
Modifiers2@Override
protected
Halstead Difficulty10.08-
Variable Declarations2theoryMethods (List<FrameworkMethod>)
testMethods (List<FrameworkMethod>)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume230.70-
Number of Operands22-
Variable References5theoryMethods (2)
testMethods (3)
Number of Operators29-
Max. depth of nesting0-
Number of Expressions7-
Number of Loops0-

Top of this page

Analysis of Method : methodBlock(FrameworkMethod) in Class : org.junit.experimental.theories.Theories
FeatureNumberValues
NamemethodBlock-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length16-
Halstead Vocabulary14-
Halstead Effort284.28-
Halstead Bugs0.02-
Classes Referenced3org.junit.runners.model.Statement (1)
org.junit.runners.model.FrameworkMethod (1)
org.junit.experimental.theories.TheoryAnchor (1)
External Methods Called1org.junit.experimental.theories.TheoryAnchor.TheoryAnchor (1)
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments1method (org.junit.runners.model.FrameworkMethod)
Modifiers2@Override
public
Halstead Difficulty4.67-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume60.92-
Number of Operands7-
Variable References1method (1)
Number of Operators9-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : validateConstructor(List) in Class : org.junit.experimental.theories.Theories
FeatureNumberValues
NamevalidateConstructor-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length16-
Halstead Vocabulary14-
Halstead Effort243.67-
Halstead Bugs0.02-
Classes Referenced2java.util.List (1)
java.lang.Throwable (2)
External Methods Called0
Local Methods Called1validateOnlyOneConstructor (1)
Lines Of Code3-
Number of Comments0-
Arguments1errors (java.util.List)
Modifiers2@Override
protected
Halstead Difficulty4.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume60.92-
Number of Operands8-
Variable References1errors (1)
Number of Operators8-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : validateDataPointFields(List) in Class : org.junit.experimental.theories.Theories
FeatureNumberValues
NamevalidateDataPointFields-
Cyclomatic Complexity3-
Number of Comment Lines0-
Number of Statements6-
Halstead Length66-
Halstead Vocabulary40-
Halstead Effort4023.38-
Halstead Bugs0.12-
Classes Referenced6java.util.List (1)
DataPoint.class (1)
java.lang.reflect.Modifier (1)
java.lang.Throwable (2)
java.lang.reflect.Field (2)
java.lang.Error (1)
External Methods Called8getJavaClass().getDeclaredFields (1)
java.util.List.add (1)
errors().getJavaClass (1)
each.getAnnotation (1)
java.lang.Error.Error (1)
each.getModifiers (1)
java.lang.reflect.Modifier.isStatic (1)
each.getName (1)
Local Methods Called1getTestClass (1)
Lines Of Code6-
Number of Comments0-
Arguments1errors (java.util.List)
Modifiers1private
Halstead Difficulty11.45-
Variable Declarations1fields (java.lang.reflect.Field[])
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume351.25-
Number of Operands28-
Variable References5fields (1)
each (3)
errors (1)
Number of Operators38-
Max. depth of nesting0-
Number of Expressions15-
Number of Loops1-

Top of this page

Analysis of Method : validateTestMethods(List) in Class : org.junit.experimental.theories.Theories
FeatureNumberValues
NamevalidateTestMethods-
Cyclomatic Complexity3-
Number of Comment Lines0-
Number of Statements6-
Halstead Length45-
Halstead Vocabulary29-
Halstead Effort2142.37-
Halstead Bugs0.07-
Classes Referenced4java.util.List (1)
java.lang.Throwable (2)
org.junit.runners.model.FrameworkMethod (1)
Theory.class (1)
External Methods Called3each.getAnnotation (1)
each.validatePublicVoidNoArg (1)
each.validatePublicVoid (1)
Local Methods Called1computeTestMethods (1)
Lines Of Code7-
Number of Comments0-
Arguments1errors (java.util.List)
Modifiers2@Override
protected
Halstead Difficulty9.80-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume218.61-
Number of Operands21-
Variable References5each (3)
errors (2)
Number of Operators24-
Max. depth of nesting0-
Number of Expressions5-
Number of Loops1-

Top of this page

Top of this page Data Generated by JHawk - The Java Metrics tool Home