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

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

Summary of Theories$TheoryAnchor
FeatureNumberValues
NameTheories$TheoryAnchor-
Number of Methods10-
LCOM0.04-
Average Cyclomatic Complexity1.80-
Number of Statements34-
Halstead Cumulative Bugs0.69-
Halstead Effort20464.04-
UnWeighted Class Size13-
Instance Variables3successes (int)
fTestMethod (org.junit.runners.model.FrameworkMethod)
fInvalidParameters (java.util.List)
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 class11-
CBO8-
Maintainability Index126.99-
Cumulative Number of Comment Lines0-
Lines Of Code74-
Fan In0-
DIT1-
Maintainability Index (NC)126.99-
Specialization ratio0.00-
Reuse Ratio0.50-
COH0.30-
Local Method Calls3runWithAssignment (2)
runWithCompleteAssignment (1)
runWithIncompleteAssignment (1)
LCOM218.00-
Max Complexity3-
Halstead Cumulative Volume2068.64-
Hierarchy Method Calls1getTestClass (1)
Number of Queries2-
Fan Out8-
SuperClass Nameorg.junit.runners.model.Statement-
SIX0.09-
External Method Calls1org.junit.runners.model.FrameworkMethod.getName (1)
org.junit.runners.BlockJUnit4ClassRunner.BlockJUnit4ClassRunner (1)
org.junit.experimental.theories.internal.Assignments.isComplete (1)
Theory.nullsAccepted (1)
org.junit.experimental.theories.internal.Assignments.allUnassigned (1)
org.junit.runners.model.Statement.Statement (1)
java.util.ArrayList.ArrayList (1)
java.util.List.add (1)
org.junit.experimental.theories.internal.Assignments.assignNext (1)
getMethod().getAnnotation (1)
fTestMethod().evaluate (1)
org.junit.runners.model.FrameworkMethod.getMethod (2)
org.junit.experimental.theories.internal.ParameterizedAssertionError.ParameterizedAssertionError (1)
Superclasses1org.junit.runners.model.Statement
Total Complexity18-
Subclasses0 -
Message Passing Coupling1-
Number of Commands8-
Interfaces0 -
Cumulative Number of Comments2-
Halstead Cumulative Length422-
Modifiers1public
Summary of methods in org.junit.experimental.theories.Theories$TheoryAnchor
Methods in Class : org.junit.experimental.theories.Theories$TheoryAnchor
NameCOMPNOCLNOSHLTHHVOCHEFFHBUGCREFXMETLMETNLOCNOCNOAMODHDIFVDECEXCTEXCRCASTTDNHVOLNANDVREFNOPRMDNNEXPLOOP
TheoryAnchor10210999.060.0110030143.120000031.70525010
evaluate2033526822.580.0532280025.0001000164.5216319070
handleAssumptionViolation1021311131.170.0111030112.920000044.97726010
handleDataPointSuccess1028860.000.0100030012.500000024.00315010
methodCompletesWithParameters21255332774.420.094101413110.0000000277.4424031010
nullsOk2043320927.050.0523070016.5010000142.6213320050
reportParameterizedError20333221177.290.0532070218.0001000147.1616617030
runWithAssignment2042717682.860.0421280116.1901002110.3611316140
runWithCompleteAssignment3121545612699.520.307203711114.2005000894.3371183030
runWithIncompleteAssignment2062920626.680.0451180115.0003001125.3415314131


Analysis of Method : TheoryAnchor(FrameworkMethod) in Class : org.junit.experimental.theories.Theories$TheoryAnchor
FeatureNumberValues
NameTheoryAnchor-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length10-
Halstead Vocabulary9-
Halstead Effort99.06-
Halstead Bugs0.01-
Classes Referenced1org.junit.runners.model.FrameworkMethod (1)
External Methods Called0
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments1method (org.junit.runners.model.FrameworkMethod)
Modifiers4private
private
private
public
Halstead Difficulty3.12-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume31.70-
Number of Operands5-
Variable References2fTestMethod (1)
method (1)
Number of Operators5-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : evaluate() in Class : org.junit.experimental.theories.Theories$TheoryAnchor
FeatureNumberValues
Nameevaluate-
Cyclomatic Complexity2-
Number of Comment Lines0-
Number of Statements3-
Halstead Length35-
Halstead Vocabulary26-
Halstead Effort822.58-
Halstead Bugs0.05-
Classes Referenced3org.junit.experimental.theories.internal.Assignments (1)
java.lang.Throwable (1)
org.junit.Assert (1)
External Methods Called2org.junit.runners.model.FrameworkMethod.getMethod (1)
org.junit.experimental.theories.internal.Assignments.allUnassigned (1)
Local Methods Called2runWithAssignment (1)
getTestClass (1)
Lines Of Code8-
Number of Comments0-
Arguments0 -
Modifiers2@Override
public
Halstead Difficulty5.00-
Variable Declarations0
Exceptions Thrown1java.lang.Throwable (1)
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume164.52-
Number of Operands16-
Variable References3successes (1)
fTestMethod (1)
fInvalidParameters (1)
Number of Operators19-
Max. depth of nesting0-
Number of Expressions7-
Number of Loops0-

Top of this page

Analysis of Method : handleAssumptionViolation(AssumptionViolatedException) in Class : org.junit.experimental.theories.Theories$TheoryAnchor
FeatureNumberValues
NamehandleAssumptionViolation-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length13-
Halstead Vocabulary11-
Halstead Effort131.17-
Halstead Bugs0.01-
Classes Referenced1org.junit.internal.AssumptionViolatedException (1)
External Methods Called1java.util.List.add (1)
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments1e (org.junit.internal.AssumptionViolatedException)
Modifiers1protected
Halstead Difficulty2.92-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume44.97-
Number of Operands7-
Variable References2fInvalidParameters (1)
e (1)
Number of Operators6-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : handleDataPointSuccess() in Class : org.junit.experimental.theories.Theories$TheoryAnchor
FeatureNumberValues
NamehandleDataPointSuccess-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length8-
Halstead Vocabulary8-
Halstead Effort60.00-
Halstead Bugs0.01-
Classes Referenced0
External Methods Called0
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments0 -
Modifiers1protected
Halstead Difficulty2.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume24.00-
Number of Operands3-
Variable References1successes (1)
Number of Operators5-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : methodCompletesWithParameters(FrameworkMethod, Assignments, Object) in Class : org.junit.experimental.theories.Theories$TheoryAnchor
FeatureNumberValues
NamemethodCompletesWithParameters-
Cyclomatic Complexity2-
Number of Comment Lines1-
Number of Statements2-
Halstead Length55-
Halstead Vocabulary33-
Halstead Effort2774.42-
Halstead Bugs0.09-
Classes Referenced4org.junit.experimental.theories.internal.Assignments (1)
org.junit.runners.model.Statement (2)
org.junit.runners.model.FrameworkMethod (1)
java.lang.Object (1)
External Methods Called1org.junit.runners.model.Statement.Statement (1)
Local Methods Called0
Lines Of Code14-
Number of Comments1-
Arguments3method (org.junit.runners.model.FrameworkMethod)
complete (org.junit.experimental.theories.internal.Assignments)
freshInstance (java.lang.Object)
Modifiers1private
Halstead Difficulty10.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume277.44-
Number of Operands24-
Variable References0
Number of Operators31-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : nullsOk() in Class : org.junit.experimental.theories.Theories$TheoryAnchor
FeatureNumberValues
NamenullsOk-
Cyclomatic Complexity2-
Number of Comment Lines0-
Number of Statements4-
Halstead Length33-
Halstead Vocabulary20-
Halstead Effort927.05-
Halstead Bugs0.05-
Classes Referenced2Theory (1)
Theory.class (1)
External Methods Called3Theory.nullsAccepted (1)
org.junit.runners.model.FrameworkMethod.getMethod (1)
getMethod().getAnnotation (1)
Local Methods Called0
Lines Of Code7-
Number of Comments0-
Arguments0 -
Modifiers1private
Halstead Difficulty6.50-
Variable Declarations1annotation (Theory)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume142.62-
Number of Operands13-
Variable References3annotation (2)
fTestMethod (1)
Number of Operators20-
Max. depth of nesting0-
Number of Expressions5-
Number of Loops0-

Top of this page

Analysis of Method : reportParameterizedError(Throwable, Object...) in Class : org.junit.experimental.theories.Theories$TheoryAnchor
FeatureNumberValues
NamereportParameterizedError-
Cyclomatic Complexity2-
Number of Comment Lines0-
Number of Statements3-
Halstead Length33-
Halstead Vocabulary22-
Halstead Effort1177.29-
Halstead Bugs0.05-
Classes Referenced3org.junit.experimental.theories.internal.ParameterizedAssertionError (1)
java.lang.Throwable (2)
java.lang.Object (1)
External Methods Called2org.junit.runners.model.FrameworkMethod.getName (1)
org.junit.experimental.theories.internal.ParameterizedAssertionError.ParameterizedAssertionError (1)
Local Methods Called0
Lines Of Code7-
Number of Comments0-
Arguments2e (java.lang.Throwable)
params (java.lang.Object...)
Modifiers1protected
Halstead Difficulty8.00-
Variable Declarations0
Exceptions Thrown1java.lang.Throwable (1)
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume147.16-
Number of Operands16-
Variable References6fTestMethod (1)
length (1)
e (2)
params (2)
Number of Operators17-
Max. depth of nesting0-
Number of Expressions3-
Number of Loops0-

Top of this page

Analysis of Method : runWithAssignment(Assignments) in Class : org.junit.experimental.theories.Theories$TheoryAnchor
FeatureNumberValues
NamerunWithAssignment-
Cyclomatic Complexity2-
Number of Comment Lines0-
Number of Statements4-
Halstead Length27-
Halstead Vocabulary17-
Halstead Effort682.86-
Halstead Bugs0.04-
Classes Referenced2org.junit.experimental.theories.internal.Assignments (1)
java.lang.Throwable (1)
External Methods Called1org.junit.experimental.theories.internal.Assignments.isComplete (1)
Local Methods Called2runWithCompleteAssignment (1)
runWithIncompleteAssignment (1)
Lines Of Code8-
Number of Comments0-
Arguments1parameterAssignment (org.junit.experimental.theories.internal.Assignments)
Modifiers1protected
Halstead Difficulty6.19-
Variable Declarations0
Exceptions Thrown1java.lang.Throwable (1)
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting2-
Halstead Volume110.36-
Number of Operands11-
Variable References3parameterAssignment (3)
Number of Operators16-
Max. depth of nesting1-
Number of Expressions4-
Number of Loops0-

Top of this page

Analysis of Method : runWithCompleteAssignment(Assignments) in Class : org.junit.experimental.theories.Theories$TheoryAnchor
FeatureNumberValues
NamerunWithCompleteAssignment-
Cyclomatic Complexity3-
Number of Comment Lines1-
Number of Statements2-
Halstead Length154-
Halstead Vocabulary56-
Halstead Effort12699.52-
Halstead Bugs0.30-
Classes Referenced7org.junit.experimental.theories.internal.Assignments (1)
java.lang.InstantiationException (1)
java.lang.NoSuchMethodException (1)
org.junit.runners.BlockJUnit4ClassRunner (1)
java.lang.reflect.InvocationTargetException (1)
java.lang.IllegalAccessException (1)
java.lang.Throwable (1)
External Methods Called2fTestMethod().evaluate (1)
org.junit.runners.BlockJUnit4ClassRunner.BlockJUnit4ClassRunner (1)
Local Methods Called0
Lines Of Code37-
Number of Comments1-
Arguments1complete (org.junit.experimental.theories.internal.Assignments)
Modifiers1protected
Halstead Difficulty14.20-
Variable Declarations0
Exceptions Thrown5java.lang.InstantiationException (1)
java.lang.NoSuchMethodException (1)
java.lang.reflect.InvocationTargetException (1)
java.lang.IllegalAccessException (1)
java.lang.Throwable (1)
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume894.33-
Number of Operands71-
Variable References1fTestMethod (1)
Number of Operators83-
Max. depth of nesting0-
Number of Expressions3-
Number of Loops0-

Top of this page

Analysis of Method : runWithIncompleteAssignment(Assignments) in Class : org.junit.experimental.theories.Theories$TheoryAnchor
FeatureNumberValues
NamerunWithIncompleteAssignment-
Cyclomatic Complexity2-
Number of Comment Lines0-
Number of Statements6-
Halstead Length29-
Halstead Vocabulary20-
Halstead Effort626.68-
Halstead Bugs0.04-
Classes Referenced5org.junit.experimental.theories.internal.Assignments (1)
java.lang.InstantiationException (1)
org.junit.experimental.theories.PotentialAssignment (1)
java.lang.IllegalAccessException (1)
java.lang.Throwable (1)
External Methods Called1org.junit.experimental.theories.internal.Assignments.assignNext (1)
Local Methods Called1runWithAssignment (1)
Lines Of Code8-
Number of Comments0-
Arguments1incomplete (org.junit.experimental.theories.internal.Assignments)
Modifiers1protected
Halstead Difficulty5.00-
Variable Declarations0
Exceptions Thrown3java.lang.InstantiationException (1)
java.lang.IllegalAccessException (1)
java.lang.Throwable (1)
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting1-
Halstead Volume125.34-
Number of Operands15-
Variable References3incomplete (2)
source (1)
Number of Operators14-
Max. depth of nesting1-
Number of Expressions3-
Number of Loops1-

Top of this page

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