Analysis of Class : org.junit.rules.ErrorCollector (Includes summary list of methods in class) Home

Dashboard for Class : org.junit.rules.ErrorCollector
Cyclomatic Complexity

Summary of ErrorCollector
FeatureNumberValues
NameErrorCollector-
Number of Methods4-
LCOM0.67-
Average Cyclomatic Complexity1.25-
Number of Statements13-
Halstead Cumulative Bugs0.16-
Halstead Effort2887.41-
UnWeighted Class Size5-
Instance Variables1errors (java.util.List)
Imported Packages6java.util.ArrayList
java.util.List
java.util.concurrent.Callable
org.hamcrest.Matcher
org.junit.Assert.assertThat
org.junit.internal.runners.model.MultipleFailureException
Response For class5-
CBO2-
Maintainability Index82.54-
Cumulative Number of Comment Lines32-
Lines Of Code20-
Fan In0-
DIT1-
Maintainability Index (NC)130.64-
Specialization ratio0.00-
Reuse Ratio0.50-
COH0.50-
Local Method Calls2addError (1)
checkSucceeds (1)
LCOM24.00-
Max Complexity2-
Halstead Cumulative Volume481.54-
Hierarchy Method Calls0
Number of Queries1-
Fan Out2-
SuperClass Nameorg.junit.rules.Verifier-
SIX0.17-
External Method Calls1java.util.List.add (1)
java.util.concurrent.Callable.call (1)
org.junit.internal.runners.model.MultipleFailureException.assertEmpty (1)
java.util.concurrent.Callable.Callable (1)
java.util.ArrayList.ArrayList (1)
Superclasses1org.junit.rules.Verifier
Total Complexity5-
Subclasses0 -
Message Passing Coupling1-
Number of Commands3-
Interfaces0 -
Cumulative Number of Comments4-
Halstead Cumulative Length117-
Modifiers0 -
Summary of methods in org.junit.rules.ErrorCollector
Methods in Class : org.junit.rules.ErrorCollector
NameCOMPNOCLNOSHLTHHVOCHEFFHBUGCREFXMETLMETNLOCNOCNOAMODHDIFVDECEXCTEXCRCASTTDNHVOLNANDVREFNOPRMDNNEXPLOOP
addError1321311131.170.0111031112.920000044.97726010
checkSucceeds2553019849.590.0431181116.6700102127.4412218120
checkThat14242221404.720.0631181217.5000000187.3018024020
verify1021514199.890.0221030033.500100057.11718010


Analysis of Method : addError(Throwable) in Class : org.junit.rules.ErrorCollector
FeatureNumberValues
NameaddError-
Cyclomatic Complexity1-
Number of Comment Lines3-
Number of Statements2-
Halstead Length13-
Halstead Vocabulary11-
Halstead Effort131.17-
Halstead Bugs0.01-
Classes Referenced1java.lang.Throwable (1)
External Methods Called1java.util.List.add (1)
Local Methods Called0
Lines Of Code3-
Number of Comments1-
Arguments1error (java.lang.Throwable)
Modifiers1public
Halstead Difficulty2.92-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume44.97-
Number of Operands7-
Variable References2error (1)
errors (1)
Number of Operators6-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : checkSucceeds(Callable) in Class : org.junit.rules.ErrorCollector
FeatureNumberValues
NamecheckSucceeds-
Cyclomatic Complexity2-
Number of Comment Lines5-
Number of Statements5-
Halstead Length30-
Halstead Vocabulary19-
Halstead Effort849.59-
Halstead Bugs0.04-
Classes Referenced3java.util.concurrent.Callable (1)
java.lang.Object (3)
java.lang.Throwable (1)
External Methods Called1java.util.concurrent.Callable.call (1)
Local Methods Called1addError (1)
Lines Of Code8-
Number of Comments1-
Arguments1callable (java.util.concurrent.Callable)
Modifiers1public
Halstead Difficulty6.67-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced1java.lang.Throwable (1)
Number of casts0-
Total Depth of Nesting2-
Halstead Volume127.44-
Number of Operands12-
Variable References2callable (1)
e (1)
Number of Operators18-
Max. depth of nesting1-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : checkThat(T, Matcher) in Class : org.junit.rules.ErrorCollector
FeatureNumberValues
NamecheckThat-
Cyclomatic Complexity1-
Number of Comment Lines4-
Number of Statements2-
Halstead Length42-
Halstead Vocabulary22-
Halstead Effort1404.72-
Halstead Bugs0.06-
Classes Referenced3java.util.concurrent.Callable (1)
T (3)
org.hamcrest.Matcher (1)
External Methods Called1java.util.concurrent.Callable.Callable (1)
Local Methods Called1checkSucceeds (1)
Lines Of Code8-
Number of Comments1-
Arguments2value (T)
matcher (org.hamcrest.Matcher)
Modifiers1public
Halstead Difficulty7.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume187.30-
Number of Operands18-
Variable References0
Number of Operators24-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : verify() in Class : org.junit.rules.ErrorCollector
FeatureNumberValues
Nameverify-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length15-
Halstead Vocabulary14-
Halstead Effort199.89-
Halstead Bugs0.02-
Classes Referenced2org.junit.internal.runners.model.MultipleFailureException (1)
java.lang.Throwable (1)
External Methods Called1org.junit.internal.runners.model.MultipleFailureException.assertEmpty (1)
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments0 -
Modifiers3private
@Override
protected
Halstead Difficulty3.50-
Variable Declarations0
Exceptions Thrown1java.lang.Throwable (1)
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume57.11-
Number of Operands7-
Variable References1errors (1)
Number of Operators8-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

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