![]() | Analysis of Class : org.junit.internal.runners.MethodRoadie (Includes summary list of methods in class) | Home |
Dashboard for Class : org.junit.internal.runners.MethodRoadie |
---|
![]() |
Cyclomatic Complexity |
Summary of MethodRoadie | ||
---|---|---|
Feature | Number | Values |
Name | MethodRoadie | - |
Number of Methods | 9 | - |
LCOM | 0.19 | - |
Average Cyclomatic Complexity | 3.22 | - |
Number of Statements | 64 | - |
Halstead Cumulative Bugs | 0.90 | - |
Halstead Effort | 29116.35 | - |
UnWeighted Class Size | 13 | - |
Instance Variables | 4 | fDescription (org.junit.runner.Description) fNotifier (org.junit.runner.notification.RunNotifier) fTest (java.lang.Object) fTestMethod (TestMethod) |
Imported Packages | 14 | java.lang.reflect.InvocationTargetException java.lang.reflect.Method java.util.List java.util.concurrent.Callable java.util.concurrent.ExecutorService java.util.concurrent.Executors java.util.concurrent.Future java.util.concurrent.TimeUnit java.util.concurrent.TimeoutException org.junit.internal.AssumptionViolatedException org.junit.runner.Description org.junit.runner.notification.Failure org.junit.runner.notification.RunNotifier org.junit.runners.BlockJUnit4ClassRunner |
Response For class | 9 | - |
CBO | 8 | - |
Maintainability Index | 111.57 | - |
Cumulative Number of Comment Lines | 5 | - |
Lines Of Code | 99 | - |
Fan In | 1 | - |
DIT | 1 | - |
Maintainability Index (NC) | 111.57 | - |
Specialization ratio | 0.00 | - |
Reuse Ratio | 0.00 | - |
COH | 0.42 | - |
Local Method Calls | 6 | runBefores (1) runTest (1) addFailure (7) runWithTimeout (1) runAfters (1) runBeforesThenTestThenAfters (2) |
LCOM2 | 3.00 | - |
Max Complexity | 7 | - |
Halstead Cumulative Volume | 2694.39 | - |
Hierarchy Method Calls | 0 | |
Number of Queries | 0 | - |
Fan Out | 7 | - |
SuperClass Name | java.lang.Object | - |
SIX | 0.00 | - |
External Method Calls | 0 | org.junit.internal.runners.TestMethod.isIgnored (1) java.lang.AssertionError.AssertionError (1) org.junit.internal.runners.FailedBefore.FailedBefore (2) org.junit.internal.runners.TestMethod.getExpectedException (2) getClass().getName (1) org.junit.internal.runners.TestMethod.getAfters (1) java.lang.Throwable.getClass (1) org.junit.internal.runners.TestMethod.isUnexpected (1) getExpectedException().getName (2) org.junit.internal.runners.Runnable.run (1) org.junit.internal.runners.TestMethod.getTimeout (1) org.junit.internal.runners.Runnable.Runnable (2) org.junit.runner.notification.Failure.Failure (1) before.invoke (1) org.junit.runner.notification.RunNotifier.fireTestFinished (1) org.junit.runner.notification.RunNotifier.fireTestFailure (1) org.junit.internal.runners.TestMethod.expectsException (2) org.junit.internal.runners.TestMethod.getBefores (1) java.lang.Exception.Exception (1) after.invoke (1) org.junit.internal.runners.TestMethod.invoke (1) org.junit.runner.notification.RunNotifier.fireTestIgnored (1) org.junit.runner.notification.RunNotifier.fireTestStarted (1) java.lang.RuntimeException.RuntimeException (1) e.getTargetException (3) |
Superclasses | 0 | - |
Total Complexity | 29 | - |
Subclasses | 0 | - |
Message Passing Coupling | 0 | - |
Number of Commands | 9 | - |
Interfaces | 0 | - |
Cumulative Number of Comments | 3 | - |
Halstead Cumulative Length | 541 | - |
Modifiers | 0 | - |
Methods in Class : org.junit.internal.runners.MethodRoadie | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | |
![]() | MethodRoadie | 1 | 0 | 5 | 28 | 18 | 381.71 | 0.04 | 4 | 0 | 0 | 6 | 0 | 4 | 8 | 3.27 | 0 | 0 | 0 | 0 | 0 | 116.76 | 17 | 8 | 11 | 0 | 4 | 0 |
![]() | addFailure | 1 | 0 | 2 | 17 | 14 | 218.45 | 0.02 | 2 | 2 | 0 | 3 | 0 | 1 | 1 | 3.38 | 0 | 0 | 0 | 0 | 0 | 64.73 | 9 | 3 | 8 | 0 | 2 | 0 |
![]() | run | 3 | 0 | 10 | 57 | 27 | 2385.05 | 0.09 | 0 | 5 | 2 | 16 | 0 | 0 | 1 | 8.80 | 1 | 0 | 0 | 0 | 3 | 271.03 | 22 | 10 | 35 | 1 | 9 | 0 |
![]() | runAfters | 4 | 0 | 9 | 51 | 27 | 2133.99 | 0.08 | 4 | 3 | 1 | 11 | 1 | 0 | 1 | 8.80 | 1 | 0 | 2 | 0 | 3 | 242.50 | 22 | 6 | 29 | 1 | 6 | 1 |
![]() | runBefores | 5 | 0 | 12 | 69 | 32 | 3957.35 | 0.12 | 6 | 4 | 1 | 16 | 0 | 0 | 1 | 11.47 | 1 | 1 | 3 | 0 | 5 | 345.00 | 26 | 6 | 43 | 2 | 7 | 1 |
![]() | runBeforesThenTestThenAfters | 3 | 0 | 6 | 38 | 22 | 988.51 | 0.06 | 4 | 2 | 2 | 11 | 0 | 1 | 1 | 5.83 | 0 | 0 | 2 | 0 | 4 | 169.46 | 14 | 1 | 24 | 1 | 4 | 0 |
![]() | runTest | 1 | 0 | 2 | 20 | 11 | 201.80 | 0.02 | 1 | 1 | 1 | 7 | 0 | 0 | 1 | 2.92 | 0 | 0 | 0 | 0 | 0 | 69.19 | 7 | 0 | 13 | 0 | 2 | 0 |
![]() | runTestMethod | 7 | 0 | 11 | 117 | 40 | 8779.58 | 0.21 | 6 | 10 | 1 | 20 | 0 | 0 | 1 | 14.10 | 2 | 0 | 2 | 0 | 4 | 622.67 | 47 | 15 | 70 | 2 | 26 | 0 |
![]() | runWithTimeout | 4 | 0 | 2 | 130 | 53 | 10021.47 | 0.25 | 1 | 1 | 1 | 26 | 1 | 1 | 1 | 13.46 | 0 | 0 | 0 | 0 | 0 | 744.63 | 57 | 0 | 73 | 0 | 2 | 0 |
Analysis of Method : MethodRoadie(Object, TestMethod, RunNotifier, Description) in Class : org.junit.internal.runners.MethodRoadie | ||
---|---|---|
Feature | Number | Values |
Name | MethodRoadie | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 5 | - |
Halstead Length | 28 | - |
Halstead Vocabulary | 18 | - |
Halstead Effort | 381.71 | - |
Halstead Bugs | 0.04 | - |
Classes Referenced | 4 | org.junit.runner.Description (1) org.junit.runner.notification.RunNotifier (1) org.junit.internal.runners.TestMethod (1) java.lang.Object (1) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 6 | - |
Number of Comments | 0 | - |
Arguments | 4 | test (java.lang.Object) method (TestMethod) notifier (org.junit.runner.notification.RunNotifier) description (org.junit.runner.Description) |
Modifiers | 8 | private final private final private final private public |
Halstead Difficulty | 3.27 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 116.76 | - |
Number of Operands | 17 | - |
Variable References | 8 | fDescription (1) fNotifier (1) fTest (1) fTestMethod (1) description (1) notifier (1) method (1) test (1) |
Number of Operators | 11 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 4 | - |
Number of Loops | 0 | - |
Analysis of Method : addFailure(Throwable) in Class : org.junit.internal.runners.MethodRoadie | ||
---|---|---|
Feature | Number | Values |
Name | addFailure | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 17 | - |
Halstead Vocabulary | 14 | - |
Halstead Effort | 218.45 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 2 | java.lang.Throwable (1) org.junit.runner.notification.Failure (1) |
External Methods Called | 2 | org.junit.runner.notification.RunNotifier.fireTestFailure (1) org.junit.runner.notification.Failure.Failure (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 1 | e (java.lang.Throwable) |
Modifiers | 1 | protected |
Halstead Difficulty | 3.38 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 64.73 | - |
Number of Operands | 9 | - |
Variable References | 3 | fDescription (1) fNotifier (1) e (1) |
Number of Operators | 8 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : run() in Class : org.junit.internal.runners.MethodRoadie | ||
---|---|---|
Feature | Number | Values |
Name | run | - |
Cyclomatic Complexity | 3 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 10 | - |
Halstead Length | 57 | - |
Halstead Vocabulary | 27 | - |
Halstead Effort | 2385.05 | - |
Halstead Bugs | 0.09 | - |
Classes Referenced | 0 | |
External Methods Called | 5 | org.junit.internal.runners.TestMethod.getTimeout (1) org.junit.runner.notification.RunNotifier.fireTestIgnored (1) org.junit.runner.notification.RunNotifier.fireTestStarted (1) org.junit.runner.notification.RunNotifier.fireTestFinished (1) org.junit.internal.runners.TestMethod.isIgnored (1) |
Local Methods Called | 2 | runTest (1) runWithTimeout (1) |
Lines Of Code | 16 | - |
Number of Comments | 0 | - |
Arguments | 0 | - |
Modifiers | 1 | public |
Halstead Difficulty | 8.80 | - |
Variable Declarations | 1 | timeout (long) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 3 | - |
Halstead Volume | 271.03 | - |
Number of Operands | 22 | - |
Variable References | 10 | fDescription (3) fNotifier (3) fTestMethod (2) timeout (2) |
Number of Operators | 35 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 9 | - |
Number of Loops | 0 | - |
Analysis of Method : runAfters() in Class : org.junit.internal.runners.MethodRoadie | ||
---|---|---|
Feature | Number | Values |
Name | runAfters | - |
Cyclomatic Complexity | 4 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 9 | - |
Halstead Length | 51 | - |
Halstead Vocabulary | 27 | - |
Halstead Effort | 2133.99 | - |
Halstead Bugs | 0.08 | - |
Classes Referenced | 4 | java.util.List (1) java.lang.reflect.InvocationTargetException (1) java.lang.Throwable (1) java.lang.reflect.Method (3) |
External Methods Called | 3 | after.invoke (1) org.junit.internal.runners.TestMethod.getAfters (1) e.getTargetException (1) |
Local Methods Called | 1 | addFailure (2) |
Lines Of Code | 11 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 1 | private |
Halstead Difficulty | 8.80 | - |
Variable Declarations | 1 | afters (List<Method>) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 2 | java.lang.reflect.InvocationTargetException (1) java.lang.Throwable (1) |
Number of casts | 0 | - |
Total Depth of Nesting | 3 | - |
Halstead Volume | 242.50 | - |
Number of Operands | 22 | - |
Variable References | 6 | fTest (1) fTestMethod (1) e (2) after (1) afters (1) |
Number of Operators | 29 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 6 | - |
Number of Loops | 1 | - |
Analysis of Method : runBefores() in Class : org.junit.internal.runners.MethodRoadie | ||
---|---|---|
Feature | Number | Values |
Name | runBefores | - |
Cyclomatic Complexity | 5 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 12 | - |
Halstead Length | 69 | - |
Halstead Vocabulary | 32 | - |
Halstead Effort | 3957.35 | - |
Halstead Bugs | 0.12 | - |
Classes Referenced | 6 | java.util.List (1) org.junit.internal.AssumptionViolatedException (1) org.junit.internal.runners.FailedBefore (3) java.lang.reflect.InvocationTargetException (1) java.lang.Throwable (1) java.lang.reflect.Method (3) |
External Methods Called | 4 | org.junit.internal.runners.TestMethod.getBefores (1) e.getTargetException (1) before.invoke (1) org.junit.internal.runners.FailedBefore.FailedBefore (2) |
Local Methods Called | 1 | addFailure (1) |
Lines Of Code | 16 | - |
Number of Comments | 0 | - |
Arguments | 0 | - |
Modifiers | 1 | private |
Halstead Difficulty | 11.47 | - |
Variable Declarations | 1 | befores (List<Method>) |
Exceptions Thrown | 1 | org.junit.internal.runners.FailedBefore (1) |
Exceptions Referenced | 3 | org.junit.internal.AssumptionViolatedException (1) java.lang.reflect.InvocationTargetException (1) java.lang.Throwable (1) |
Number of casts | 0 | - |
Total Depth of Nesting | 5 | - |
Halstead Volume | 345.00 | - |
Number of Operands | 26 | - |
Variable References | 6 | fTest (1) fTestMethod (1) before (1) e (2) befores (1) |
Number of Operators | 43 | - |
Max. depth of nesting | 2 | - |
Number of Expressions | 7 | - |
Number of Loops | 1 | - |
Analysis of Method : runBeforesThenTestThenAfters(Runnable) in Class : org.junit.internal.runners.MethodRoadie | ||
---|---|---|
Feature | Number | Values |
Name | runBeforesThenTestThenAfters | - |
Cyclomatic Complexity | 3 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 6 | - |
Halstead Length | 38 | - |
Halstead Vocabulary | 22 | - |
Halstead Effort | 988.51 | - |
Halstead Bugs | 0.06 | - |
Classes Referenced | 4 | org.junit.internal.runners.FailedBefore (1) java.lang.RuntimeException (1) org.junit.internal.runners.Runnable (1) java.lang.Exception (1) |
External Methods Called | 2 | org.junit.internal.runners.Runnable.run (1) java.lang.RuntimeException.RuntimeException (1) |
Local Methods Called | 2 | runBefores (1) runAfters (1) |
Lines Of Code | 11 | - |
Number of Comments | 0 | - |
Arguments | 1 | test (org.junit.internal.runners.Runnable) |
Modifiers | 1 | public |
Halstead Difficulty | 5.83 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 2 | org.junit.internal.runners.FailedBefore (1) java.lang.Exception (1) |
Number of casts | 0 | - |
Total Depth of Nesting | 4 | - |
Halstead Volume | 169.46 | - |
Number of Operands | 14 | - |
Variable References | 1 | test (1) |
Number of Operators | 24 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 4 | - |
Number of Loops | 0 | - |
Analysis of Method : runTest() in Class : org.junit.internal.runners.MethodRoadie | ||
---|---|---|
Feature | Number | Values |
Name | runTest | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 20 | - |
Halstead Vocabulary | 11 | - |
Halstead Effort | 201.80 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 1 | org.junit.internal.runners.Runnable (1) |
External Methods Called | 1 | org.junit.internal.runners.Runnable.Runnable (1) |
Local Methods Called | 1 | runBeforesThenTestThenAfters (1) |
Lines Of Code | 7 | - |
Number of Comments | 0 | - |
Arguments | 0 | - |
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 | 69.19 | - |
Number of Operands | 7 | - |
Variable References | 0 | |
Number of Operators | 13 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : runTestMethod() in Class : org.junit.internal.runners.MethodRoadie | ||
---|---|---|
Feature | Number | Values |
Name | runTestMethod | - |
Cyclomatic Complexity | 7 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 11 | - |
Halstead Length | 117 | - |
Halstead Vocabulary | 40 | - |
Halstead Effort | 8779.58 | - |
Halstead Bugs | 0.21 | - |
Classes Referenced | 6 | org.junit.internal.AssumptionViolatedException (1) java.lang.AssertionError (1) java.lang.String (1) java.lang.reflect.InvocationTargetException (1) java.lang.Throwable (2) java.lang.Exception (1) |
External Methods Called | 10 | e.getTargetException (1) org.junit.internal.runners.TestMethod.getExpectedException (2) org.junit.internal.runners.TestMethod.expectsException (2) java.lang.Throwable.getClass (1) org.junit.internal.runners.TestMethod.invoke (1) java.lang.Exception.Exception (1) java.lang.AssertionError.AssertionError (1) getExpectedException().getName (2) getClass().getName (1) org.junit.internal.runners.TestMethod.isUnexpected (1) |
Local Methods Called | 1 | addFailure (4) |
Lines Of Code | 20 | - |
Number of Comments | 0 | - |
Arguments | 0 | - |
Modifiers | 1 | protected |
Halstead Difficulty | 14.10 | - |
Variable Declarations | 2 | message (java.lang.String) actual (java.lang.Throwable) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 2 | java.lang.reflect.InvocationTargetException (1) java.lang.Throwable (1) |
Number of casts | 0 | - |
Total Depth of Nesting | 4 | - |
Halstead Volume | 622.67 | - |
Number of Operands | 47 | - |
Variable References | 15 | fTest (1) fTestMethod (6) message (1) e (2) actual (5) |
Number of Operators | 70 | - |
Max. depth of nesting | 2 | - |
Number of Expressions | 26 | - |
Number of Loops | 0 | - |
Analysis of Method : runWithTimeout(long) in Class : org.junit.internal.runners.MethodRoadie | ||
---|---|---|
Feature | Number | Values |
Name | runWithTimeout | - |
Cyclomatic Complexity | 4 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 130 | - |
Halstead Vocabulary | 53 | - |
Halstead Effort | 10021.47 | - |
Halstead Bugs | 0.25 | - |
Classes Referenced | 1 | org.junit.internal.runners.Runnable (1) |
External Methods Called | 1 | org.junit.internal.runners.Runnable.Runnable (1) |
Local Methods Called | 1 | runBeforesThenTestThenAfters (1) |
Lines Of Code | 26 | - |
Number of Comments | 1 | - |
Arguments | 1 | timeout (long) |
Modifiers | 1 | private |
Halstead Difficulty | 13.46 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 744.63 | - |
Number of Operands | 57 | - |
Variable References | 0 | |
Number of Operators | 73 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Top of this page | Data Generated by JHawk - The Java Metrics tool | Home |