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

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

Summary of StringContains
FeatureNumberValues
NameStringContains-
Number of Methods4-
LCOM0.00-
Average Cyclomatic Complexity1.00-
Number of Statements9-
Halstead Cumulative Bugs0.07-
Halstead Effort1013.32-
UnWeighted Class Size4-
Instance Variables0 -
Imported Packages2org.hamcrest.Factory
org.hamcrest.Matcher
Response For class4-
CBO3-
Maintainability Index140.84-
Cumulative Number of Comment Lines3-
Lines Of Code17-
Fan In2-
DIT3-
Maintainability Index (NC)140.84-
Specialization ratio0.00-
Reuse Ratio0.75-
COH0.00-
Local Method Calls0
LCOM26.00-
Max Complexity1-
Halstead Cumulative Volume219.22-
Hierarchy Method Calls0
Number of Queries3-
Fan Out1-
SuperClass Nameorg.junit.internal.matchers.SubstringMatcher-
SIX0.20-
External Method Calls0org.junit.internal.matchers.StringContains.StringContains (1)
java.lang.String.indexOf (1)
Superclasses3org.hamcrest.BaseMatcher
org.junit.internal.matchers.SubstringMatcher
org.junit.internal.matchers.TypeSafeMatcher
Total Complexity4-
Subclasses0 -
Message Passing Coupling0-
Number of Commands1-
Interfaces0 -
Cumulative Number of Comments1-
Halstead Cumulative Length61-
Modifiers0 -
Summary of methods in org.junit.internal.matchers.StringContains
Methods in Class : org.junit.internal.matchers.StringContains
NameCOMPNOCLNOSHLTHHVOCHEFFHBUGCREFXMETLMETNLOCNOCNOAMODHDIFVDECEXCTEXCRCASTTDNHVOLNANDVREFNOPRMDNNEXPLOOP
StringContains10210875.000.0110030112.500000030.00515010
containsString1021916506.670.0331030136.670000076.008111010
evalSubstringOf1021816324.000.0211030124.500000072.00929020
relationship102101099.660.0110030023.000000033.22406000


Analysis of Method : StringContains(String) in Class : org.junit.internal.matchers.StringContains
FeatureNumberValues
NameStringContains-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length10-
Halstead Vocabulary8-
Halstead Effort75.00-
Halstead Bugs0.01-
Classes Referenced1java.lang.String (1)
External Methods Called0
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments1substring (java.lang.String)
Modifiers1public
Halstead Difficulty2.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume30.00-
Number of Operands5-
Variable References1substring (1)
Number of Operators5-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : containsString(String) in Class : org.junit.internal.matchers.StringContains
FeatureNumberValues
NamecontainsString-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length19-
Halstead Vocabulary16-
Halstead Effort506.67-
Halstead Bugs0.03-
Classes Referenced3java.lang.String (2)
org.hamcrest.Matcher (1)
org.junit.internal.matchers.StringContains (1)
External Methods Called1org.junit.internal.matchers.StringContains.StringContains (1)
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments1substring (java.lang.String)
Modifiers3@Factory
public
static
Halstead Difficulty6.67-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume76.00-
Number of Operands8-
Variable References1substring (1)
Number of Operators11-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : evalSubstringOf(String) in Class : org.junit.internal.matchers.StringContains
FeatureNumberValues
NameevalSubstringOf-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length18-
Halstead Vocabulary16-
Halstead Effort324.00-
Halstead Bugs0.02-
Classes Referenced1java.lang.String (1)
External Methods Called1java.lang.String.indexOf (1)
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments1s (java.lang.String)
Modifiers2@Override
protected
Halstead Difficulty4.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume72.00-
Number of Operands9-
Variable References2substring (1)
s (1)
Number of Operators9-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : relationship() in Class : org.junit.internal.matchers.StringContains
FeatureNumberValues
Namerelationship-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length10-
Halstead Vocabulary10-
Halstead Effort99.66-
Halstead Bugs0.01-
Classes Referenced1java.lang.String (1)
External Methods Called0
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments0 -
Modifiers2@Override
protected
Halstead Difficulty3.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume33.22-
Number of Operands4-
Variable References0
Number of Operators6-
Max. depth of nesting0-
Number of Expressions0-
Number of Loops0-

Top of this page

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