Analysis of Class : org.junit.internal.matchers.IsCollectionContaining (Includes summary list of methods in class) Home

Dashboard for Class : org.junit.internal.matchers.IsCollectionContaining
Cyclomatic Complexity

Summary of IsCollectionContaining
FeatureNumberValues
NameIsCollectionContaining-
Number of Methods7-
LCOM0.67-
Average Cyclomatic Complexity1.57-
Number of Statements34-
Halstead Cumulative Bugs0.45-
Halstead Effort17723.60-
UnWeighted Class Size8-
Instance Variables1elementMatcher (org.hamcrest.Matcher)
Imported Packages7java.util.ArrayList
java.util.Collection
org.hamcrest.Description
org.hamcrest.Factory
org.hamcrest.Matcher
org.hamcrest.core.AllOf.allOf
org.hamcrest.core.IsEqual.equalTo
Response For class7-
CBO3-
Maintainability Index121.64-
Cumulative Number of Comment Lines1-
Lines Of Code46-
Fan In2-
DIT2-
Maintainability Index (NC)121.64-
Specialization ratio0.00-
Reuse Ratio0.67-
COH0.43-
Local Method Calls1hasItem (3)
LCOM210.00-
Max Complexity3-
Halstead Cumulative Volume1361.01-
Hierarchy Method Calls2equalTo (1)
allOf (2)
Number of Queries5-
Fan Out1-
SuperClass Nameorg.junit.internal.matchers.TypeSafeMatcher-
SIX0.00-
External Method Calls0java.util.ArrayList.ArrayList (2)
Collection>>.add (2)
org.junit.internal.matchers.IsCollectionContaining.IsCollectionContaining (1)
org.hamcrest.Matcher.matches (1)
Superclasses2org.hamcrest.BaseMatcher
org.junit.internal.matchers.TypeSafeMatcher
Total Complexity11-
Subclasses0 -
Message Passing Coupling0-
Number of Commands2-
Interfaces0 -
Cumulative Number of Comments1-
Halstead Cumulative Length301-
Modifiers0 -
Summary of methods in org.junit.internal.matchers.IsCollectionContaining
Methods in Class : org.junit.internal.matchers.IsCollectionContaining
NameCOMPNOCLNOSHLTHHVOCHEFFHBUGCREFXMETLMETNLOCNOCNOAMODHDIFVDECEXCTEXCRCASTTDNHVOLNANDVREFNOPRMDNNEXPLOOP
IsCollectionContaining1021715464.920.0230030137.000000066.427210010
describeTo1021713176.930.0210050112.810000062.91928020
hasItem1022616735.430.0330230137.0700000104.0011115020
hasItem10233191441.870.05510301310.2900000140.1812121010
hasItems20872316063.940.12622801317.0010001356.7028644151
hasItems20882317399.450.14722801318.2110001406.2430652151
matchesSafely30833231139.940.0521080127.6400002149.2814319211


Analysis of Method : IsCollectionContaining(Matcher) in Class : org.junit.internal.matchers.IsCollectionContaining
FeatureNumberValues
NameIsCollectionContaining-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length17-
Halstead Vocabulary15-
Halstead Effort464.92-
Halstead Bugs0.02-
Classes Referenced3T (1)
?extendsT (1)
org.hamcrest.Matcher (1)
External Methods Called0
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments1elementMatcher (org.hamcrest.Matcher)
Modifiers3private
final
public
Halstead Difficulty7.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume66.42-
Number of Operands7-
Variable References2elementMatcher (2)
Number of Operators10-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : describeTo(Description) in Class : org.junit.internal.matchers.IsCollectionContaining
FeatureNumberValues
NamedescribeTo-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length17-
Halstead Vocabulary13-
Halstead Effort176.93-
Halstead Bugs0.02-
Classes Referenced1org.hamcrest.Description (1)
External Methods Called0
Local Methods Called0
Lines Of Code5-
Number of Comments0-
Arguments1description (org.hamcrest.Description)
Modifiers1public
Halstead Difficulty2.81-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume62.91-
Number of Operands9-
Variable References2description (1)
elementMatcher (1)
Number of Operators8-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : hasItem(T) in Class : org.junit.internal.matchers.IsCollectionContaining
FeatureNumberValues
NamehasItem-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length26-
Halstead Vocabulary16-
Halstead Effort735.43-
Halstead Bugs0.03-
Classes Referenced3Iterable (1)
T (2)
org.hamcrest.Matcher (1)
External Methods Called0
Local Methods Called2equalTo (1)
hasItem (1)
Lines Of Code3-
Number of Comments0-
Arguments1element (T)
Modifiers3@Factory
public
static
Halstead Difficulty7.07-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume104.00-
Number of Operands11-
Variable References1element (1)
Number of Operators15-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : hasItem(Matcher) in Class : org.junit.internal.matchers.IsCollectionContaining
FeatureNumberValues
NamehasItem-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length33-
Halstead Vocabulary19-
Halstead Effort1441.87-
Halstead Bugs0.05-
Classes Referenced5org.junit.internal.matchers.IsCollectionContaining (1)
Iterable (1)
T (2)
?extendsT (1)
org.hamcrest.Matcher (2)
External Methods Called1org.junit.internal.matchers.IsCollectionContaining.IsCollectionContaining (1)
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments1elementMatcher (org.hamcrest.Matcher)
Modifiers3@Factory
public
static
Halstead Difficulty10.29-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume140.18-
Number of Operands12-
Variable References1elementMatcher (1)
Number of Operators21-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : hasItems(T...) in Class : org.junit.internal.matchers.IsCollectionContaining
FeatureNumberValues
NamehasItems-
Cyclomatic Complexity2-
Number of Comment Lines0-
Number of Statements8-
Halstead Length72-
Halstead Vocabulary31-
Halstead Effort6063.94-
Halstead Bugs0.12-
Classes Referenced6java.util.Collection (1)
java.util.ArrayList (1)
Iterable (2)
T (7)
org.hamcrest.Matcher (3)
?extendsIterable (2)
External Methods Called2Collection>>.add (1)
java.util.ArrayList.ArrayList (1)
Local Methods Called2hasItem (1)
allOf (1)
Lines Of Code8-
Number of Comments0-
Arguments1elements (T...)
Modifiers3@Factory
public
static
Halstead Difficulty17.00-
Variable Declarations1all (Collection<Matcher<?extendsIterable<T>>>)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting1-
Halstead Volume356.70-
Number of Operands28-
Variable References6element (1)
all (2)
length (1)
elements (2)
Number of Operators44-
Max. depth of nesting1-
Number of Expressions5-
Number of Loops1-

Top of this page

Analysis of Method : hasItems(Matcher...) in Class : org.junit.internal.matchers.IsCollectionContaining
FeatureNumberValues
NamehasItems-
Cyclomatic Complexity2-
Number of Comment Lines0-
Number of Statements8-
Halstead Length82-
Halstead Vocabulary31-
Halstead Effort7399.45-
Halstead Bugs0.14-
Classes Referenced7java.util.Collection (1)
java.util.ArrayList (1)
Iterable (2)
T (7)
?extendsT (2)
org.hamcrest.Matcher (5)
?extendsIterable (2)
External Methods Called2java.util.ArrayList.ArrayList (1)
Collection>>.add (1)
Local Methods Called2hasItem (1)
allOf (1)
Lines Of Code8-
Number of Comments0-
Arguments1elementMatchers (org.hamcrest.Matcher...)
Modifiers3@Factory
public
static
Halstead Difficulty18.21-
Variable Declarations1all (Collection<Matcher<?extendsIterable<T>>>)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting1-
Halstead Volume406.24-
Number of Operands30-
Variable References6all (2)
length (1)
elementMatchers (2)
elementMatcher (1)
Number of Operators52-
Max. depth of nesting1-
Number of Expressions5-
Number of Loops1-

Top of this page

Analysis of Method : matchesSafely(Iterable) in Class : org.junit.internal.matchers.IsCollectionContaining
FeatureNumberValues
NamematchesSafely-
Cyclomatic Complexity3-
Number of Comment Lines0-
Number of Statements8-
Halstead Length33-
Halstead Vocabulary23-
Halstead Effort1139.94-
Halstead Bugs0.05-
Classes Referenced2Iterable (1)
T (3)
External Methods Called1org.hamcrest.Matcher.matches (1)
Local Methods Called0
Lines Of Code8-
Number of Comments0-
Arguments1collection (Iterable)
Modifiers2@Override
public
Halstead Difficulty7.64-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting2-
Halstead Volume149.28-
Number of Operands14-
Variable References3item (1)
elementMatcher (1)
collection (1)
Number of Operators19-
Max. depth of nesting2-
Number of Expressions1-
Number of Loops1-

Top of this page

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