![]() | 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 | ||
---|---|---|
Feature | Number | Values |
Name | ErrorCollector | - |
Number of Methods | 4 | - |
LCOM | 0.67 | - |
Average Cyclomatic Complexity | 1.25 | - |
Number of Statements | 13 | - |
Halstead Cumulative Bugs | 0.16 | - |
Halstead Effort | 2887.41 | - |
UnWeighted Class Size | 5 | - |
Instance Variables | 1 | errors (java.util.List) |
Imported Packages | 6 | java.util.ArrayList java.util.List java.util.concurrent.Callable org.hamcrest.Matcher org.junit.Assert.assertThat org.junit.internal.runners.model.MultipleFailureException |
Response For class | 5 | - |
CBO | 2 | - |
Maintainability Index | 82.54 | - |
Cumulative Number of Comment Lines | 32 | - |
Lines Of Code | 20 | - |
Fan In | 0 | - |
DIT | 1 | - |
Maintainability Index (NC) | 130.64 | - |
Specialization ratio | 0.00 | - |
Reuse Ratio | 0.50 | - |
COH | 0.50 | - |
Local Method Calls | 2 | addError (1) checkSucceeds (1) |
LCOM2 | 4.00 | - |
Max Complexity | 2 | - |
Halstead Cumulative Volume | 481.54 | - |
Hierarchy Method Calls | 0 | |
Number of Queries | 1 | - |
Fan Out | 2 | - |
SuperClass Name | org.junit.rules.Verifier | - |
SIX | 0.17 | - |
External Method Calls | 1 | java.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) |
Superclasses | 1 | org.junit.rules.Verifier |
Total Complexity | 5 | - |
Subclasses | 0 | - |
Message Passing Coupling | 1 | - |
Number of Commands | 3 | - |
Interfaces | 0 | - |
Cumulative Number of Comments | 4 | - |
Halstead Cumulative Length | 117 | - |
Modifiers | 0 | - |
Methods in Class : org.junit.rules.ErrorCollector | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | |
![]() | addError | 1 | 3 | 2 | 13 | 11 | 131.17 | 0.01 | 1 | 1 | 0 | 3 | 1 | 1 | 1 | 2.92 | 0 | 0 | 0 | 0 | 0 | 44.97 | 7 | 2 | 6 | 0 | 1 | 0 |
![]() | checkSucceeds | 2 | 5 | 5 | 30 | 19 | 849.59 | 0.04 | 3 | 1 | 1 | 8 | 1 | 1 | 1 | 6.67 | 0 | 0 | 1 | 0 | 2 | 127.44 | 12 | 2 | 18 | 1 | 2 | 0 |
![]() | checkThat | 1 | 4 | 2 | 42 | 22 | 1404.72 | 0.06 | 3 | 1 | 1 | 8 | 1 | 2 | 1 | 7.50 | 0 | 0 | 0 | 0 | 0 | 187.30 | 18 | 0 | 24 | 0 | 2 | 0 |
![]() | verify | 1 | 0 | 2 | 15 | 14 | 199.89 | 0.02 | 2 | 1 | 0 | 3 | 0 | 0 | 3 | 3.50 | 0 | 1 | 0 | 0 | 0 | 57.11 | 7 | 1 | 8 | 0 | 1 | 0 |
Analysis of Method : addError(Throwable) in Class : org.junit.rules.ErrorCollector | ||
---|---|---|
Feature | Number | Values |
Name | addError | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 13 | - |
Halstead Vocabulary | 11 | - |
Halstead Effort | 131.17 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | java.lang.Throwable (1) |
External Methods Called | 1 | java.util.List.add (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 1 | error (java.lang.Throwable) |
Modifiers | 1 | public |
Halstead Difficulty | 2.92 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 44.97 | - |
Number of Operands | 7 | - |
Variable References | 2 | error (1) errors (1) |
Number of Operators | 6 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : checkSucceeds(Callable) in Class : org.junit.rules.ErrorCollector | ||
---|---|---|
Feature | Number | Values |
Name | checkSucceeds | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 5 | - |
Number of Statements | 5 | - |
Halstead Length | 30 | - |
Halstead Vocabulary | 19 | - |
Halstead Effort | 849.59 | - |
Halstead Bugs | 0.04 | - |
Classes Referenced | 3 | java.util.concurrent.Callable (1) java.lang.Object (3) java.lang.Throwable (1) |
External Methods Called | 1 | java.util.concurrent.Callable.call (1) |
Local Methods Called | 1 | addError (1) |
Lines Of Code | 8 | - |
Number of Comments | 1 | - |
Arguments | 1 | callable (java.util.concurrent.Callable) |
Modifiers | 1 | public |
Halstead Difficulty | 6.67 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 1 | java.lang.Throwable (1) |
Number of casts | 0 | - |
Total Depth of Nesting | 2 | - |
Halstead Volume | 127.44 | - |
Number of Operands | 12 | - |
Variable References | 2 | callable (1) e (1) |
Number of Operators | 18 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : checkThat(T, Matcher) in Class : org.junit.rules.ErrorCollector | ||
---|---|---|
Feature | Number | Values |
Name | checkThat | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 2 | - |
Halstead Length | 42 | - |
Halstead Vocabulary | 22 | - |
Halstead Effort | 1404.72 | - |
Halstead Bugs | 0.06 | - |
Classes Referenced | 3 | java.util.concurrent.Callable (1) T (3) org.hamcrest.Matcher (1) |
External Methods Called | 1 | java.util.concurrent.Callable.Callable (1) |
Local Methods Called | 1 | checkSucceeds (1) |
Lines Of Code | 8 | - |
Number of Comments | 1 | - |
Arguments | 2 | value (T) matcher (org.hamcrest.Matcher) |
Modifiers | 1 | public |
Halstead Difficulty | 7.50 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 187.30 | - |
Number of Operands | 18 | - |
Variable References | 0 | |
Number of Operators | 24 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : verify() in Class : org.junit.rules.ErrorCollector | ||
---|---|---|
Feature | Number | Values |
Name | verify | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 15 | - |
Halstead Vocabulary | 14 | - |
Halstead Effort | 199.89 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 2 | org.junit.internal.runners.model.MultipleFailureException (1) java.lang.Throwable (1) |
External Methods Called | 1 | org.junit.internal.runners.model.MultipleFailureException.assertEmpty (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 0 | - |
Modifiers | 3 | private @Override protected |
Halstead Difficulty | 3.50 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 1 | java.lang.Throwable (1) |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 57.11 | - |
Number of Operands | 7 | - |
Variable References | 1 | errors (1) |
Number of Operators | 8 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Top of this page | Data Generated by JHawk - The Java Metrics tool | Home |