![]() | 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 | ||
---|---|---|
Feature | Number | Values |
Name | IsCollectionContaining | - |
Number of Methods | 7 | - |
LCOM | 0.67 | - |
Average Cyclomatic Complexity | 1.57 | - |
Number of Statements | 34 | - |
Halstead Cumulative Bugs | 0.45 | - |
Halstead Effort | 17723.60 | - |
UnWeighted Class Size | 8 | - |
Instance Variables | 1 | elementMatcher (org.hamcrest.Matcher) |
Imported Packages | 7 | java.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 class | 7 | - |
CBO | 3 | - |
Maintainability Index | 121.64 | - |
Cumulative Number of Comment Lines | 1 | - |
Lines Of Code | 46 | - |
Fan In | 2 | - |
DIT | 2 | - |
Maintainability Index (NC) | 121.64 | - |
Specialization ratio | 0.00 | - |
Reuse Ratio | 0.67 | - |
COH | 0.43 | - |
Local Method Calls | 1 | hasItem (3) |
LCOM2 | 10.00 | - |
Max Complexity | 3 | - |
Halstead Cumulative Volume | 1361.01 | - |
Hierarchy Method Calls | 2 | equalTo (1) allOf (2) |
Number of Queries | 5 | - |
Fan Out | 1 | - |
SuperClass Name | org.junit.internal.matchers.TypeSafeMatcher | - |
SIX | 0.00 | - |
External Method Calls | 0 | java.util.ArrayList.ArrayList (2) Collection org.junit.internal.matchers.IsCollectionContaining.IsCollectionContaining (1) org.hamcrest.Matcher.matches (1) |
Superclasses | 2 | org.hamcrest.BaseMatcher org.junit.internal.matchers.TypeSafeMatcher |
Total Complexity | 11 | - |
Subclasses | 0 | - |
Message Passing Coupling | 0 | - |
Number of Commands | 2 | - |
Interfaces | 0 | - |
Cumulative Number of Comments | 1 | - |
Halstead Cumulative Length | 301 | - |
Modifiers | 0 | - |
Methods in Class : org.junit.internal.matchers.IsCollectionContaining | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | |
![]() | IsCollectionContaining | 1 | 0 | 2 | 17 | 15 | 464.92 | 0.02 | 3 | 0 | 0 | 3 | 0 | 1 | 3 | 7.00 | 0 | 0 | 0 | 0 | 0 | 66.42 | 7 | 2 | 10 | 0 | 1 | 0 |
![]() | describeTo | 1 | 0 | 2 | 17 | 13 | 176.93 | 0.02 | 1 | 0 | 0 | 5 | 0 | 1 | 1 | 2.81 | 0 | 0 | 0 | 0 | 0 | 62.91 | 9 | 2 | 8 | 0 | 2 | 0 |
![]() | hasItem | 1 | 0 | 2 | 26 | 16 | 735.43 | 0.03 | 3 | 0 | 2 | 3 | 0 | 1 | 3 | 7.07 | 0 | 0 | 0 | 0 | 0 | 104.00 | 11 | 1 | 15 | 0 | 2 | 0 |
![]() | hasItem | 1 | 0 | 2 | 33 | 19 | 1441.87 | 0.05 | 5 | 1 | 0 | 3 | 0 | 1 | 3 | 10.29 | 0 | 0 | 0 | 0 | 0 | 140.18 | 12 | 1 | 21 | 0 | 1 | 0 |
![]() | hasItems | 2 | 0 | 8 | 72 | 31 | 6063.94 | 0.12 | 6 | 2 | 2 | 8 | 0 | 1 | 3 | 17.00 | 1 | 0 | 0 | 0 | 1 | 356.70 | 28 | 6 | 44 | 1 | 5 | 1 |
![]() | hasItems | 2 | 0 | 8 | 82 | 31 | 7399.45 | 0.14 | 7 | 2 | 2 | 8 | 0 | 1 | 3 | 18.21 | 1 | 0 | 0 | 0 | 1 | 406.24 | 30 | 6 | 52 | 1 | 5 | 1 |
![]() | matchesSafely | 3 | 0 | 8 | 33 | 23 | 1139.94 | 0.05 | 2 | 1 | 0 | 8 | 0 | 1 | 2 | 7.64 | 0 | 0 | 0 | 0 | 2 | 149.28 | 14 | 3 | 19 | 2 | 1 | 1 |
Analysis of Method : IsCollectionContaining(Matcher) in Class : org.junit.internal.matchers.IsCollectionContaining | ||
---|---|---|
Feature | Number | Values |
Name | IsCollectionContaining | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 17 | - |
Halstead Vocabulary | 15 | - |
Halstead Effort | 464.92 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 3 | T (1) ?extendsT (1) org.hamcrest.Matcher (1) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 1 | elementMatcher (org.hamcrest.Matcher) |
Modifiers | 3 | private final public |
Halstead Difficulty | 7.00 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 66.42 | - |
Number of Operands | 7 | - |
Variable References | 2 | elementMatcher (2) |
Number of Operators | 10 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : describeTo(Description) in Class : org.junit.internal.matchers.IsCollectionContaining | ||
---|---|---|
Feature | Number | Values |
Name | describeTo | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 17 | - |
Halstead Vocabulary | 13 | - |
Halstead Effort | 176.93 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 1 | org.hamcrest.Description (1) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 5 | - |
Number of Comments | 0 | - |
Arguments | 1 | description (org.hamcrest.Description) |
Modifiers | 1 | public |
Halstead Difficulty | 2.81 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 62.91 | - |
Number of Operands | 9 | - |
Variable References | 2 | description (1) elementMatcher (1) |
Number of Operators | 8 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : hasItem(T) in Class : org.junit.internal.matchers.IsCollectionContaining | ||
---|---|---|
Feature | Number | Values |
Name | hasItem | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 26 | - |
Halstead Vocabulary | 16 | - |
Halstead Effort | 735.43 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 3 | Iterable (1) T (2) org.hamcrest.Matcher (1) |
External Methods Called | 0 | |
Local Methods Called | 2 | equalTo (1) hasItem (1) |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 1 | element (T) |
Modifiers | 3 | @Factory public static |
Halstead Difficulty | 7.07 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 104.00 | - |
Number of Operands | 11 | - |
Variable References | 1 | element (1) |
Number of Operators | 15 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : hasItem(Matcher) in Class : org.junit.internal.matchers.IsCollectionContaining | ||
---|---|---|
Feature | Number | Values |
Name | hasItem | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 33 | - |
Halstead Vocabulary | 19 | - |
Halstead Effort | 1441.87 | - |
Halstead Bugs | 0.05 | - |
Classes Referenced | 5 | org.junit.internal.matchers.IsCollectionContaining (1) Iterable (1) T (2) ?extendsT (1) org.hamcrest.Matcher (2) |
External Methods Called | 1 | org.junit.internal.matchers.IsCollectionContaining.IsCollectionContaining (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 1 | elementMatcher (org.hamcrest.Matcher) |
Modifiers | 3 | @Factory public static |
Halstead Difficulty | 10.29 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 140.18 | - |
Number of Operands | 12 | - |
Variable References | 1 | elementMatcher (1) |
Number of Operators | 21 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : hasItems(T...) in Class : org.junit.internal.matchers.IsCollectionContaining | ||
---|---|---|
Feature | Number | Values |
Name | hasItems | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 8 | - |
Halstead Length | 72 | - |
Halstead Vocabulary | 31 | - |
Halstead Effort | 6063.94 | - |
Halstead Bugs | 0.12 | - |
Classes Referenced | 6 | java.util.Collection (1) java.util.ArrayList (1) Iterable (2) T (7) org.hamcrest.Matcher (3) ?extendsIterable (2) |
External Methods Called | 2 | Collection java.util.ArrayList.ArrayList (1) |
Local Methods Called | 2 | hasItem (1) allOf (1) |
Lines Of Code | 8 | - |
Number of Comments | 0 | - |
Arguments | 1 | elements (T...) |
Modifiers | 3 | @Factory public static |
Halstead Difficulty | 17.00 | - |
Variable Declarations | 1 | all (Collection<Matcher<?extendsIterable<T>>>) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 1 | - |
Halstead Volume | 356.70 | - |
Number of Operands | 28 | - |
Variable References | 6 | element (1) all (2) length (1) elements (2) |
Number of Operators | 44 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 5 | - |
Number of Loops | 1 | - |
Analysis of Method : hasItems(Matcher...) in Class : org.junit.internal.matchers.IsCollectionContaining | ||
---|---|---|
Feature | Number | Values |
Name | hasItems | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 8 | - |
Halstead Length | 82 | - |
Halstead Vocabulary | 31 | - |
Halstead Effort | 7399.45 | - |
Halstead Bugs | 0.14 | - |
Classes Referenced | 7 | java.util.Collection (1) java.util.ArrayList (1) Iterable (2) T (7) ?extendsT (2) org.hamcrest.Matcher (5) ?extendsIterable (2) |
External Methods Called | 2 | java.util.ArrayList.ArrayList (1) Collection |
Local Methods Called | 2 | hasItem (1) allOf (1) |
Lines Of Code | 8 | - |
Number of Comments | 0 | - |
Arguments | 1 | elementMatchers (org.hamcrest.Matcher...) |
Modifiers | 3 | @Factory public static |
Halstead Difficulty | 18.21 | - |
Variable Declarations | 1 | all (Collection<Matcher<?extendsIterable<T>>>) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 1 | - |
Halstead Volume | 406.24 | - |
Number of Operands | 30 | - |
Variable References | 6 | all (2) length (1) elementMatchers (2) elementMatcher (1) |
Number of Operators | 52 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 5 | - |
Number of Loops | 1 | - |
Analysis of Method : matchesSafely(Iterable) in Class : org.junit.internal.matchers.IsCollectionContaining | ||
---|---|---|
Feature | Number | Values |
Name | matchesSafely | - |
Cyclomatic Complexity | 3 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 8 | - |
Halstead Length | 33 | - |
Halstead Vocabulary | 23 | - |
Halstead Effort | 1139.94 | - |
Halstead Bugs | 0.05 | - |
Classes Referenced | 2 | Iterable (1) T (3) |
External Methods Called | 1 | org.hamcrest.Matcher.matches (1) |
Local Methods Called | 0 | |
Lines Of Code | 8 | - |
Number of Comments | 0 | - |
Arguments | 1 | collection (Iterable) |
Modifiers | 2 | @Override public |
Halstead Difficulty | 7.64 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 2 | - |
Halstead Volume | 149.28 | - |
Number of Operands | 14 | - |
Variable References | 3 | item (1) elementMatcher (1) collection (1) |
Number of Operators | 19 | - |
Max. depth of nesting | 2 | - |
Number of Expressions | 1 | - |
Number of Loops | 1 | - |
Top of this page | Data Generated by JHawk - The Java Metrics tool | Home |