![]() | Analysis of Class : org.junit.ComparisonFailure$ComparisonCompactor (Includes summary list of methods in class) | Home |
Dashboard for Class : org.junit.ComparisonFailure$ComparisonCompactor |
---|
![]() |
Cyclomatic Complexity |
Summary of ComparisonFailure$ComparisonCompactor | ||
---|---|---|
Feature | Number | Values |
Name | ComparisonFailure$ComparisonCompactor | - |
Number of Methods | 8 | - |
LCOM | 0.32 | - |
Average Cyclomatic Complexity | 1.88 | - |
Number of Statements | 49 | - |
Halstead Cumulative Bugs | 0.58 | - |
Halstead Effort | 17598.66 | - |
UnWeighted Class Size | 16 | - |
Instance Variables | 8 | fActual (java.lang.String) fExpected (java.lang.String) DELTA_START (java.lang.String) fPrefix (int) fSuffix (int) DELTA_END (java.lang.String) ELLIPSIS (java.lang.String) fContextLength (int) |
Imported Packages | 0 | - |
Response For class | 8 | - |
CBO | 1 | - |
Maintainability Index | 165.51 | - |
Cumulative Number of Comment Lines | 10 | - |
Lines Of Code | 59 | - |
Fan In | 0 | - |
DIT | 1 | - |
Maintainability Index (NC) | 115.51 | - |
Specialization ratio | 0.00 | - |
Reuse Ratio | 0.00 | - |
COH | 0.41 | - |
Local Method Calls | 6 | computeCommonSuffix (1) findCommonPrefix (1) findCommonSuffix (1) areStringsEqual (1) computeCommonPrefix (1) compactString (2) |
LCOM2 | 0.00 | - |
Max Complexity | 3 | - |
Halstead Cumulative Volume | 1733.06 | - |
Hierarchy Method Calls | 0 | |
Number of Queries | 5 | - |
Fan Out | 1 | - |
SuperClass Name | java.lang.Object | - |
SIX | 0.00 | - |
External Method Calls | 0 | java.lang.String.length (11) java.lang.String.equals (1) java.lang.String.charAt (4) java.lang.Math.min (2) java.lang.Math.max (1) java.lang.String.substring (3) org.junit.Assert.format (2) |
Superclasses | 0 | - |
Total Complexity | 15 | - |
Subclasses | 0 | - |
Message Passing Coupling | 0 | - |
Number of Commands | 3 | - |
Interfaces | 0 | - |
Cumulative Number of Comments | 1 | - |
Halstead Cumulative Length | 385 | - |
Modifiers | 2 | private static |
Methods in Class : org.junit.ComparisonFailure$ComparisonCompactor | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | |
![]() | ComparisonCompactor | 1 | 6 | 4 | 22 | 14 | 302.47 | 0.03 | 1 | 0 | 0 | 5 | 1 | 3 | 15 | 3.61 | 0 | 0 | 0 | 0 | 0 | 83.76 | 13 | 6 | 9 | 0 | 3 | 0 |
![]() | areStringsEqual | 1 | 0 | 2 | 12 | 11 | 124.54 | 0.01 | 0 | 1 | 0 | 3 | 0 | 0 | 1 | 3.00 | 0 | 0 | 0 | 0 | 0 | 41.51 | 5 | 2 | 7 | 0 | 1 | 0 |
![]() | compact | 2 | 0 | 7 | 57 | 24 | 2706.77 | 0.09 | 2 | 1 | 4 | 9 | 0 | 1 | 1 | 10.36 | 2 | 0 | 0 | 0 | 0 | 261.34 | 29 | 10 | 28 | 0 | 13 | 0 |
![]() | compactString | 3 | 0 | 5 | 55 | 25 | 2608.85 | 0.09 | 1 | 2 | 2 | 8 | 0 | 1 | 1 | 10.21 | 1 | 0 | 0 | 0 | 0 | 255.41 | 26 | 13 | 29 | 0 | 15 | 0 |
![]() | computeCommonPrefix | 1 | 0 | 2 | 29 | 22 | 905.26 | 0.04 | 2 | 2 | 0 | 3 | 0 | 0 | 1 | 7.00 | 0 | 0 | 0 | 0 | 0 | 129.32 | 14 | 7 | 15 | 0 | 6 | 0 |
![]() | computeCommonSuffix | 1 | 0 | 3 | 63 | 26 | 3680.44 | 0.10 | 2 | 3 | 0 | 4 | 0 | 0 | 1 | 12.43 | 1 | 0 | 0 | 0 | 0 | 296.13 | 29 | 13 | 34 | 0 | 19 | 0 |
![]() | findCommonPrefix | 3 | 0 | 8 | 50 | 24 | 2407.11 | 0.08 | 1 | 3 | 0 | 8 | 0 | 0 | 1 | 10.50 | 1 | 0 | 0 | 0 | 1 | 229.25 | 21 | 10 | 29 | 1 | 10 | 1 |
![]() | findCommonSuffix | 3 | 0 | 9 | 65 | 26 | 4582.93 | 0.10 | 0 | 2 | 0 | 9 | 0 | 0 | 1 | 15.00 | 2 | 0 | 0 | 0 | 1 | 305.53 | 30 | 15 | 35 | 1 | 17 | 1 |
Analysis of Method : ComparisonCompactor(int, String, String) in Class : org.junit.ComparisonFailure$ComparisonCompactor | ||
---|---|---|
Feature | Number | Values |
Name | ComparisonCompactor | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 6 | - |
Number of Statements | 4 | - |
Halstead Length | 22 | - |
Halstead Vocabulary | 14 | - |
Halstead Effort | 302.47 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 1 | java.lang.String (2) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 5 | - |
Number of Comments | 1 | - |
Arguments | 3 | contextLength (int) expected (java.lang.String) actual (java.lang.String) |
Modifiers | 15 | private static final private static final private static final private private private private private public |
Halstead Difficulty | 3.61 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 83.76 | - |
Number of Operands | 13 | - |
Variable References | 6 | fActual (1) fExpected (1) expected (1) contextLength (1) actual (1) fContextLength (1) |
Number of Operators | 9 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 3 | - |
Number of Loops | 0 | - |
Analysis of Method : areStringsEqual() in Class : org.junit.ComparisonFailure$ComparisonCompactor | ||
---|---|---|
Feature | Number | Values |
Name | areStringsEqual | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 12 | - |
Halstead Vocabulary | 11 | - |
Halstead Effort | 124.54 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 0 | |
External Methods Called | 1 | java.lang.String.equals (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 0 | - |
Modifiers | 1 | private |
Halstead Difficulty | 3.00 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 41.51 | - |
Number of Operands | 5 | - |
Variable References | 2 | fActual (1) fExpected (1) |
Number of Operators | 7 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : compact(String) in Class : org.junit.ComparisonFailure$ComparisonCompactor | ||
---|---|---|
Feature | Number | Values |
Name | compact | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 7 | - |
Halstead Length | 57 | - |
Halstead Vocabulary | 24 | - |
Halstead Effort | 2706.77 | - |
Halstead Bugs | 0.09 | - |
Classes Referenced | 2 | java.lang.String (4) org.junit.Assert (2) |
External Methods Called | 1 | org.junit.Assert.format (2) |
Local Methods Called | 4 | findCommonPrefix (1) findCommonSuffix (1) areStringsEqual (1) compactString (2) |
Lines Of Code | 9 | - |
Number of Comments | 0 | - |
Arguments | 1 | message (java.lang.String) |
Modifiers | 1 | private |
Halstead Difficulty | 10.36 | - |
Variable Declarations | 2 | expected (java.lang.String) actual (java.lang.String) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 261.34 | - |
Number of Operands | 29 | - |
Variable References | 10 | fActual (3) fExpected (3) expected (1) message (2) actual (1) |
Number of Operators | 28 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 13 | - |
Number of Loops | 0 | - |
Analysis of Method : compactString(String) in Class : org.junit.ComparisonFailure$ComparisonCompactor | ||
---|---|---|
Feature | Number | Values |
Name | compactString | - |
Cyclomatic Complexity | 3 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 5 | - |
Halstead Length | 55 | - |
Halstead Vocabulary | 25 | - |
Halstead Effort | 2608.85 | - |
Halstead Bugs | 0.09 | - |
Classes Referenced | 1 | java.lang.String (3) |
External Methods Called | 2 | java.lang.String.length (1) java.lang.String.substring (1) |
Local Methods Called | 2 | computeCommonSuffix (1) computeCommonPrefix (1) |
Lines Of Code | 8 | - |
Number of Comments | 0 | - |
Arguments | 1 | source (java.lang.String) |
Modifiers | 1 | private |
Halstead Difficulty | 10.21 | - |
Variable Declarations | 1 | result (java.lang.String) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 255.41 | - |
Number of Operands | 26 | - |
Variable References | 13 | result (5) DELTA_START (1) source (2) fPrefix (2) DELTA_END (1) fSuffix (2) |
Number of Operators | 29 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 15 | - |
Number of Loops | 0 | - |
Analysis of Method : computeCommonPrefix() in Class : org.junit.ComparisonFailure$ComparisonCompactor | ||
---|---|---|
Feature | Number | Values |
Name | computeCommonPrefix | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 29 | - |
Halstead Vocabulary | 22 | - |
Halstead Effort | 905.26 | - |
Halstead Bugs | 0.04 | - |
Classes Referenced | 2 | java.lang.Math (1) java.lang.String (1) |
External Methods Called | 2 | java.lang.String.substring (1) java.lang.Math.max (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 0 | - |
Modifiers | 1 | private |
Halstead Difficulty | 7.00 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 129.32 | - |
Number of Operands | 14 | - |
Variable References | 7 | fExpected (1) fPrefix (3) ELLIPSIS (1) fContextLength (2) |
Number of Operators | 15 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 6 | - |
Number of Loops | 0 | - |
Analysis of Method : computeCommonSuffix() in Class : org.junit.ComparisonFailure$ComparisonCompactor | ||
---|---|---|
Feature | Number | Values |
Name | computeCommonSuffix | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 3 | - |
Halstead Length | 63 | - |
Halstead Vocabulary | 26 | - |
Halstead Effort | 3680.44 | - |
Halstead Bugs | 0.10 | - |
Classes Referenced | 2 | java.lang.Math (1) java.lang.String (1) |
External Methods Called | 3 | java.lang.String.substring (1) java.lang.String.length (5) java.lang.Math.min (1) |
Local Methods Called | 0 | |
Lines Of Code | 4 | - |
Number of Comments | 0 | - |
Arguments | 0 | - |
Modifiers | 1 | private |
Halstead Difficulty | 12.43 | - |
Variable Declarations | 1 | end (int) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 296.13 | - |
Number of Operands | 29 | - |
Variable References | 13 | end (1) fExpected (6) ELLIPSIS (1) fSuffix (3) fContextLength (2) |
Number of Operators | 34 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 19 | - |
Number of Loops | 0 | - |
Analysis of Method : findCommonPrefix() in Class : org.junit.ComparisonFailure$ComparisonCompactor | ||
---|---|---|
Feature | Number | Values |
Name | findCommonPrefix | - |
Cyclomatic Complexity | 3 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 8 | - |
Halstead Length | 50 | - |
Halstead Vocabulary | 24 | - |
Halstead Effort | 2407.11 | - |
Halstead Bugs | 0.08 | - |
Classes Referenced | 1 | java.lang.Math (1) |
External Methods Called | 3 | java.lang.String.charAt (2) java.lang.Math.min (1) java.lang.String.length (2) |
Local Methods Called | 0 | |
Lines Of Code | 8 | - |
Number of Comments | 0 | - |
Arguments | 0 | - |
Modifiers | 1 | private |
Halstead Difficulty | 10.50 | - |
Variable Declarations | 1 | end (int) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 1 | - |
Halstead Volume | 229.25 | - |
Number of Operands | 21 | - |
Variable References | 10 | fActual (2) end (1) fExpected (2) fPrefix (5) |
Number of Operators | 29 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 10 | - |
Number of Loops | 1 | - |
Analysis of Method : findCommonSuffix() in Class : org.junit.ComparisonFailure$ComparisonCompactor | ||
---|---|---|
Feature | Number | Values |
Name | findCommonSuffix | - |
Cyclomatic Complexity | 3 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 9 | - |
Halstead Length | 65 | - |
Halstead Vocabulary | 26 | - |
Halstead Effort | 4582.93 | - |
Halstead Bugs | 0.10 | - |
Classes Referenced | 0 | |
External Methods Called | 2 | java.lang.String.length (3) java.lang.String.charAt (2) |
Local Methods Called | 0 | |
Lines Of Code | 9 | - |
Number of Comments | 0 | - |
Arguments | 0 | - |
Modifiers | 1 | private |
Halstead Difficulty | 15.00 | - |
Variable Declarations | 2 | expectedSuffix (int) actualSuffix (int) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 1 | - |
Halstead Volume | 305.53 | - |
Number of Operands | 30 | - |
Variable References | 15 | fActual (2) fExpected (3) expectedSuffix (4) actualSuffix (3) fPrefix (2) fSuffix (1) |
Number of Operators | 35 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 17 | - |
Number of Loops | 1 | - |
Top of this page | Data Generated by JHawk - The Java Metrics tool | Home |