![]() | Analysis of Class : org.junit.runners.BlockJUnit4ClassRunner (Includes summary list of methods in class) | Home |
Dashboard for Class : org.junit.runners.BlockJUnit4ClassRunner |
---|
![]() |
Cyclomatic Complexity |
Summary of BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | BlockJUnit4ClassRunner | - |
Number of Methods | 30 | - |
LCOM | 0.00 | - |
Average Cyclomatic Complexity | 1.50 | - |
Number of Statements | 114 | - |
Halstead Cumulative Bugs | 1.50 | - |
Halstead Effort | 37980.67 | - |
UnWeighted Class Size | 30 | - |
Instance Variables | 0 | - |
Imported Packages | 27 | java.lang.reflect.Field java.lang.reflect.Modifier java.util.ArrayList java.util.List org.junit.After org.junit.Before org.junit.Ignore org.junit.Rule org.junit.Test org.junit.Test.None org.junit.internal.AssumptionViolatedException org.junit.internal.runners.model.EachTestNotifier org.junit.internal.runners.model.MultipleFailureException org.junit.internal.runners.model.ReflectiveCallable org.junit.internal.runners.statements.ExpectException org.junit.internal.runners.statements.Fail org.junit.internal.runners.statements.FailOnTimeout org.junit.internal.runners.statements.InvokeMethod org.junit.internal.runners.statements.RunAfters org.junit.internal.runners.statements.RunBefores org.junit.rules.MethodRule org.junit.runner.Description org.junit.runner.notification.RunNotifier org.junit.runners.model.FrameworkField org.junit.runners.model.FrameworkMethod org.junit.runners.model.InitializationError org.junit.runners.model.Statement |
Response For class | 30 | - |
CBO | 22 | - |
Maintainability Index | 128.91 | - |
Cumulative Number of Comment Lines | 142 | - |
Lines Of Code | 179 | - |
Fan In | 5 | - |
DIT | 2 | - |
Maintainability Index (NC) | 128.68 | - |
Specialization ratio | 1.50 | - |
Reuse Ratio | 0.33 | - |
COH | 0.00 | - |
Local Method Calls | 25 | validateRuleField (1) withRules (1) possiblyExpectingExceptions (1) getExpectedException (2) methodBlock (1) validateFields (1) expectsException (1) testName (1) makeNotifier (1) validateOnlyOneConstructor (1) validateTestMethods (1) ruleFields (2) rules (1) describeChild (1) hasOneConstructor (2) validateZeroArgConstructor (1) methodInvoker (1) createRule (1) withAfters (1) getTimeout (1) computeTestMethods (2) withPotentialTimeout (1) validateInstanceMethods (1) validateConstructor (1) withBefores (1) |
LCOM2 | 30.00 | - |
Max Complexity | 4 | - |
Halstead Cumulative Volume | 4492.81 | - |
Hierarchy Method Calls | 3 | validatePublicVoidNoArgMethods (3) getTestClass (8) super.collectInitializationErrors (1) |
Number of Queries | 20 | - |
Fan Out | 18 | - |
SuperClass Name | org.junit.runners.ParentRunner | - |
SIX | 0.04 | - |
External Method Calls | 0 | java.lang.reflect.Field.getType (1) org.junit.internal.runners.statements.RunAfters.RunAfters (1) java.lang.reflect.Field.getName (2) org.junit.Test.timeout (1) org.junit.internal.runners.model.EachTestNotifier.addFailure (1) next().getAnnotatedMethods (1) org.junit.internal.runners.model.EachTestNotifier.fireTestStarted (1) java.util.ArrayList.ArrayList (1) List java.lang.reflect.Field.getModifiers (1) org.junit.internal.runners.model.EachTestNotifier.fireTestIgnored (1) org.junit.internal.runners.statements.RunBefores.RunBefores (1) createTestDescription().getJavaClass (1) org.junit.internal.runners.statements.InvokeMethod.InvokeMethod (1) each.apply (1) method().evaluate (1) org.junit.internal.runners.statements.ExpectException.ExpectException (1) java.util.List.add (5) getJavaClass().getConstructors (1) org.junit.runners.model.FrameworkField.get (1) org.junit.internal.runners.model.EachTestNotifier.EachTestNotifier (1) getAnnotations().getAnnotatedMethods (1) List errors().getOnlyConstructor (1) org.junit.runner.Description.createTestDescription (1) java.lang.Exception.Exception (5) getOnlyConstructor().newInstance (1) java.lang.RuntimeException.RuntimeException (1) org.junit.internal.runners.model.ReflectiveCallable.ReflectiveCallable (1) org.junit.runners.model.FrameworkMethod.getName (1) org.junit.Test.expected (2) target().getAnnotatedMethods (1) org.junit.internal.runners.model.EachTestNotifier.addFailedAssumption (1) org.junit.runners.model.FrameworkMethod.getAnnotations (1) getOnlyConstructor().getParameterTypes (1) org.junit.runners.model.FrameworkMethod.getAnnotation (3) errors().size (1) results().getAnnotatedFields (1) gripe().getOnlyConstructor (1) gripe().getJavaClass (1) org.junit.internal.runners.model.EachTestNotifier.fireTestFinished (1) org.junit.internal.runners.statements.Fail.Fail (1) each.getField (1) java.lang.reflect.Modifier.isPublic (1) org.junit.internal.runners.statements.FailOnTimeout.FailOnTimeout (1) |
Superclasses | 2 | org.junit.runner.Runner org.junit.runners.ParentRunner |
Total Complexity | 45 | - |
Subclasses | 3 | org.junit.experimental.theories.Theories org.junit.runners.JUnit4 org.junit.runners.Parameterized$TestClassRunnerForParameters |
Message Passing Coupling | 0 | - |
Number of Commands | 10 | - |
Interfaces | 0 | - |
Cumulative Number of Comments | 26 | - |
Halstead Cumulative Length | 993 | - |
Modifiers | 0 | - |
Methods in Class : org.junit.runners.BlockJUnit4ClassRunner | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | |
![]() | BlockJUnit4ClassRunner | 1 | 6 | 2 | 15 | 13 | 266.43 | 0.02 | 2 | 0 | 0 | 3 | 1 | 1 | 1 | 4.80 | 0 | 0 | 0 | 0 | 0 | 55.51 | 6 | 1 | 9 | 0 | 1 | 0 |
![]() | collectInitializationErrors | 1 | 0 | 5 | 30 | 18 | 750.59 | 0.04 | 2 | 0 | 4 | 6 | 0 | 1 | 2 | 6.00 | 0 | 0 | 0 | 0 | 0 | 125.10 | 15 | 4 | 15 | 0 | 4 | 0 |
![]() | computeTestMethods | 1 | 8 | 2 | 18 | 15 | 316.46 | 0.02 | 3 | 1 | 1 | 3 | 4 | 0 | 1 | 4.50 | 0 | 0 | 0 | 0 | 0 | 70.32 | 6 | 0 | 12 | 0 | 2 | 0 |
![]() | createRule | 2 | 0 | 4 | 31 | 21 | 866.48 | 0.05 | 5 | 2 | 0 | 9 | 0 | 2 | 1 | 6.36 | 0 | 0 | 1 | 1 | 2 | 136.16 | 14 | 2 | 17 | 1 | 3 | 0 |
![]() | createTest | 1 | 5 | 2 | 17 | 13 | 220.18 | 0.02 | 2 | 2 | 1 | 3 | 1 | 0 | 1 | 3.50 | 0 | 1 | 0 | 0 | 0 | 62.91 | 6 | 0 | 11 | 0 | 3 | 0 |
![]() | describeChild | 1 | 0 | 2 | 27 | 17 | 502.14 | 0.04 | 2 | 3 | 2 | 4 | 0 | 1 | 2 | 4.55 | 0 | 0 | 0 | 0 | 0 | 110.36 | 13 | 2 | 14 | 0 | 5 | 0 |
![]() | expectsException | 1 | 0 | 2 | 14 | 12 | 175.66 | 0.02 | 1 | 0 | 1 | 3 | 0 | 1 | 1 | 3.50 | 0 | 0 | 0 | 0 | 0 | 50.19 | 7 | 1 | 7 | 0 | 2 | 0 |
![]() | getChildren | 1 | 0 | 2 | 14 | 13 | 207.22 | 0.02 | 2 | 0 | 1 | 3 | 0 | 0 | 2 | 4.00 | 0 | 0 | 0 | 0 | 0 | 51.81 | 5 | 0 | 9 | 0 | 1 | 0 |
![]() | getExpectedException | 2 | 0 | 3 | 36 | 23 | 1984.71 | 0.05 | 4 | 1 | 0 | 6 | 0 | 1 | 1 | 12.19 | 0 | 0 | 0 | 0 | 0 | 162.85 | 13 | 3 | 23 | 0 | 5 | 0 |
![]() | getTimeout | 2 | 0 | 3 | 21 | 15 | 421.94 | 0.03 | 1 | 1 | 0 | 5 | 0 | 1 | 1 | 5.14 | 0 | 0 | 0 | 0 | 0 | 82.04 | 9 | 2 | 12 | 0 | 2 | 0 |
![]() | hasOneConstructor | 1 | 0 | 2 | 19 | 14 | 253.19 | 0.02 | 0 | 2 | 1 | 3 | 0 | 0 | 1 | 3.50 | 0 | 0 | 0 | 0 | 0 | 72.34 | 7 | 1 | 12 | 0 | 5 | 0 |
![]() | makeNotifier | 1 | 0 | 3 | 23 | 16 | 465.11 | 0.03 | 4 | 1 | 1 | 5 | 0 | 2 | 1 | 5.06 | 1 | 0 | 0 | 0 | 0 | 92.00 | 13 | 3 | 10 | 0 | 3 | 0 |
![]() | methodBlock | 2 | 32 | 12 | 97 | 33 | 6850.29 | 0.16 | 6 | 2 | 6 | 20 | 1 | 1 | 1 | 14.00 | 2 | 0 | 1 | 0 | 2 | 489.31 | 49 | 25 | 48 | 1 | 11 | 0 |
![]() | methodInvoker | 1 | 6 | 2 | 16 | 13 | 228.37 | 0.02 | 4 | 1 | 0 | 3 | 4 | 2 | 1 | 3.86 | 0 | 0 | 0 | 0 | 0 | 59.21 | 9 | 2 | 7 | 0 | 1 | 0 |
![]() | possiblyExpectingExceptions | 1 | 8 | 3 | 39 | 26 | 1649.85 | 0.06 | 6 | 2 | 2 | 6 | 1 | 3 | 2 | 9.00 | 1 | 0 | 0 | 0 | 0 | 183.32 | 21 | 5 | 18 | 0 | 6 | 0 |
![]() | ruleFields | 1 | 0 | 2 | 18 | 15 | 316.46 | 0.02 | 3 | 1 | 1 | 3 | 0 | 0 | 1 | 4.50 | 0 | 0 | 0 | 0 | 0 | 70.32 | 6 | 0 | 12 | 0 | 2 | 0 |
![]() | rules | 2 | 4 | 7 | 42 | 24 | 1829.40 | 0.06 | 5 | 2 | 2 | 6 | 1 | 1 | 1 | 9.50 | 1 | 0 | 0 | 0 | 0 | 192.57 | 19 | 4 | 23 | 0 | 4 | 1 |
![]() | runChild | 4 | 3 | 11 | 81 | 37 | 4494.85 | 0.14 | 6 | 7 | 2 | 17 | 3 | 2 | 2 | 10.65 | 1 | 0 | 2 | 0 | 5 | 421.97 | 35 | 11 | 46 | 1 | 10 | 0 |
![]() | testName | 1 | 4 | 2 | 13 | 11 | 161.90 | 0.01 | 2 | 1 | 0 | 3 | 1 | 1 | 1 | 3.60 | 0 | 0 | 0 | 0 | 0 | 44.97 | 6 | 1 | 7 | 0 | 1 | 0 |
![]() | validateConstructor | 1 | 5 | 3 | 18 | 13 | 256.92 | 0.02 | 2 | 0 | 2 | 4 | 1 | 1 | 1 | 3.86 | 0 | 0 | 0 | 0 | 0 | 66.61 | 9 | 2 | 9 | 0 | 2 | 0 |
![]() | validateFields | 2 | 0 | 5 | 25 | 19 | 573.47 | 0.04 | 3 | 1 | 2 | 4 | 0 | 1 | 1 | 5.40 | 0 | 0 | 0 | 0 | 0 | 106.20 | 12 | 2 | 13 | 0 | 2 | 1 |
![]() | validateInstanceMethods | 2 | 7 | 5 | 50 | 29 | 1971.77 | 0.08 | 5 | 3 | 3 | 7 | 1 | 1 | 2 | 8.12 | 0 | 0 | 0 | 0 | 0 | 242.90 | 23 | 4 | 27 | 0 | 6 | 0 |
![]() | validateOnlyOneConstructor | 2 | 4 | 4 | 30 | 22 | 869.59 | 0.04 | 4 | 2 | 1 | 6 | 1 | 1 | 1 | 6.50 | 1 | 0 | 0 | 0 | 1 | 133.78 | 13 | 2 | 17 | 1 | 5 | 0 |
![]() | validateRuleField | 3 | 0 | 3 | 68 | 31 | 3085.16 | 0.11 | 6 | 6 | 0 | 8 | 0 | 2 | 1 | 9.16 | 0 | 0 | 0 | 0 | 0 | 336.89 | 29 | 6 | 39 | 0 | 16 | 0 |
![]() | validateTestMethods | 1 | 4 | 2 | 18 | 16 | 324.00 | 0.02 | 3 | 0 | 1 | 3 | 1 | 1 | 1 | 4.50 | 0 | 0 | 0 | 0 | 0 | 72.00 | 9 | 1 | 9 | 0 | 0 | 0 |
![]() | validateZeroArgConstructor | 2 | 5 | 4 | 44 | 29 | 1563.06 | 0.07 | 4 | 4 | 2 | 7 | 1 | 1 | 1 | 7.31 | 1 | 0 | 0 | 0 | 1 | 213.75 | 18 | 3 | 26 | 1 | 11 | 0 |
![]() | withAfters | 1 | 9 | 3 | 43 | 29 | 2144.64 | 0.07 | 6 | 3 | 1 | 6 | 1 | 3 | 2 | 10.27 | 1 | 0 | 0 | 0 | 0 | 208.89 | 22 | 5 | 21 | 0 | 6 | 0 |
![]() | withBefores | 1 | 7 | 3 | 43 | 29 | 2144.64 | 0.07 | 6 | 3 | 1 | 6 | 1 | 3 | 2 | 10.27 | 1 | 0 | 0 | 0 | 0 | 208.89 | 22 | 5 | 21 | 0 | 6 | 0 |
![]() | withPotentialTimeout | 1 | 7 | 3 | 39 | 28 | 1706.13 | 0.06 | 5 | 2 | 1 | 5 | 1 | 3 | 2 | 9.10 | 1 | 0 | 0 | 0 | 0 | 187.49 | 21 | 5 | 18 | 0 | 6 | 0 |
![]() | withRules | 2 | 0 | 7 | 37 | 21 | 1340.75 | 0.05 | 4 | 1 | 1 | 7 | 0 | 3 | 1 | 8.25 | 1 | 0 | 0 | 0 | 0 | 162.52 | 22 | 8 | 15 | 0 | 4 | 1 |
Analysis of Method : BlockJUnit4ClassRunner(Class) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | BlockJUnit4ClassRunner | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 6 | - |
Number of Statements | 2 | - |
Halstead Length | 15 | - |
Halstead Vocabulary | 13 | - |
Halstead Effort | 266.43 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 2 | ? (1) java.lang.Class (1) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 1 | klass (java.lang.Class) |
Modifiers | 1 | public |
Halstead Difficulty | 4.80 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 55.51 | - |
Number of Operands | 6 | - |
Variable References | 1 | klass (1) |
Number of Operators | 9 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : collectInitializationErrors(List) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | collectInitializationErrors | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 5 | - |
Halstead Length | 30 | - |
Halstead Vocabulary | 18 | - |
Halstead Effort | 750.59 | - |
Halstead Bugs | 0.04 | - |
Classes Referenced | 2 | java.util.List (1) java.lang.Throwable (2) |
External Methods Called | 0 | |
Local Methods Called | 4 | validateInstanceMethods (1) validateConstructor (1) super.collectInitializationErrors (1) validateFields (1) |
Lines Of Code | 6 | - |
Number of Comments | 0 | - |
Arguments | 1 | errors (java.util.List) |
Modifiers | 2 | @Override protected |
Halstead Difficulty | 6.00 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 125.10 | - |
Number of Operands | 15 | - |
Variable References | 4 | errors (4) |
Number of Operators | 15 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 4 | - |
Number of Loops | 0 | - |
Analysis of Method : computeTestMethods() in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | computeTestMethods | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 8 | - |
Number of Statements | 2 | - |
Halstead Length | 18 | - |
Halstead Vocabulary | 15 | - |
Halstead Effort | 316.46 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 3 | java.util.List (1) org.junit.runners.model.FrameworkMethod (1) Test.class (1) |
External Methods Called | 1 | getAnnotations().getAnnotatedMethods (1) |
Local Methods Called | 1 | getTestClass (1) |
Lines Of Code | 3 | - |
Number of Comments | 4 | - |
Arguments | 0 | - |
Modifiers | 1 | protected |
Halstead Difficulty | 4.50 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 70.32 | - |
Number of Operands | 6 | - |
Variable References | 0 | |
Number of Operators | 12 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : createRule(Object, FrameworkField) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | createRule | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 4 | - |
Halstead Length | 31 | - |
Halstead Vocabulary | 21 | - |
Halstead Effort | 866.48 | - |
Halstead Bugs | 0.05 | - |
Classes Referenced | 5 | java.lang.RuntimeException (1) org.junit.runners.model.FrameworkField (1) org.junit.rules.MethodRule (3) java.lang.IllegalAccessException (1) java.lang.Object (1) |
External Methods Called | 2 | java.lang.RuntimeException.RuntimeException (1) org.junit.runners.model.FrameworkField.get (1) |
Local Methods Called | 0 | |
Lines Of Code | 9 | - |
Number of Comments | 0 | - |
Arguments | 2 | test (java.lang.Object) each (org.junit.runners.model.FrameworkField) |
Modifiers | 1 | private |
Halstead Difficulty | 6.36 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 1 | java.lang.IllegalAccessException (1) |
Number of casts | 1 | - |
Total Depth of Nesting | 2 | - |
Halstead Volume | 136.16 | - |
Number of Operands | 14 | - |
Variable References | 2 | each (1) test (1) |
Number of Operators | 17 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 3 | - |
Number of Loops | 0 | - |
Analysis of Method : createTest() in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | createTest | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 5 | - |
Number of Statements | 2 | - |
Halstead Length | 17 | - |
Halstead Vocabulary | 13 | - |
Halstead Effort | 220.18 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 2 | java.lang.Object (1) java.lang.Exception (1) |
External Methods Called | 2 | getOnlyConstructor().newInstance (1) errors().getOnlyConstructor (1) |
Local Methods Called | 1 | getTestClass (1) |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 1 | protected |
Halstead Difficulty | 3.50 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 1 | java.lang.Exception (1) |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 62.91 | - |
Number of Operands | 6 | - |
Variable References | 0 | |
Number of Operators | 11 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 3 | - |
Number of Loops | 0 | - |
Analysis of Method : describeChild(FrameworkMethod) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | describeChild | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 27 | - |
Halstead Vocabulary | 17 | - |
Halstead Effort | 502.14 | - |
Halstead Bugs | 0.04 | - |
Classes Referenced | 2 | org.junit.runner.Description (2) org.junit.runners.model.FrameworkMethod (1) |
External Methods Called | 3 | org.junit.runner.Description.createTestDescription (1) org.junit.runners.model.FrameworkMethod.getAnnotations (1) createTestDescription().getJavaClass (1) |
Local Methods Called | 2 | testName (1) getTestClass (1) |
Lines Of Code | 4 | - |
Number of Comments | 0 | - |
Arguments | 1 | method (org.junit.runners.model.FrameworkMethod) |
Modifiers | 2 | @Override protected |
Halstead Difficulty | 4.55 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 110.36 | - |
Number of Operands | 13 | - |
Variable References | 2 | method (2) |
Number of Operators | 14 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 5 | - |
Number of Loops | 0 | - |
Analysis of Method : expectsException(Test) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | expectsException | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 14 | - |
Halstead Vocabulary | 12 | - |
Halstead Effort | 175.66 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 1 | org.junit.Test (1) |
External Methods Called | 0 | |
Local Methods Called | 1 | getExpectedException (1) |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 1 | annotation (org.junit.Test) |
Modifiers | 1 | private |
Halstead Difficulty | 3.50 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 50.19 | - |
Number of Operands | 7 | - |
Variable References | 1 | annotation (1) |
Number of Operators | 7 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : getChildren() in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | getChildren | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 14 | - |
Halstead Vocabulary | 13 | - |
Halstead Effort | 207.22 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 2 | java.util.List (1) org.junit.runners.model.FrameworkMethod (1) |
External Methods Called | 0 | |
Local Methods Called | 1 | computeTestMethods (1) |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 0 | - |
Modifiers | 2 | @Override protected |
Halstead Difficulty | 4.00 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 51.81 | - |
Number of Operands | 5 | - |
Variable References | 0 | |
Number of Operators | 9 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : getExpectedException(Test) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | getExpectedException | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 3 | - |
Halstead Length | 36 | - |
Halstead Vocabulary | 23 | - |
Halstead Effort | 1984.71 | - |
Halstead Bugs | 0.05 | - |
Classes Referenced | 4 | ?extendsThrowable (1) java.lang.Class (1) org.junit.Test (1) None.class (1) |
External Methods Called | 1 | org.junit.Test.expected (2) |
Local Methods Called | 0 | |
Lines Of Code | 6 | - |
Number of Comments | 0 | - |
Arguments | 1 | annotation (org.junit.Test) |
Modifiers | 1 | private |
Halstead Difficulty | 12.19 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 162.85 | - |
Number of Operands | 13 | - |
Variable References | 3 | annotation (3) |
Number of Operators | 23 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 5 | - |
Number of Loops | 0 | - |
Analysis of Method : getTimeout(Test) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | getTimeout | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 3 | - |
Halstead Length | 21 | - |
Halstead Vocabulary | 15 | - |
Halstead Effort | 421.94 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 1 | org.junit.Test (1) |
External Methods Called | 1 | org.junit.Test.timeout (1) |
Local Methods Called | 0 | |
Lines Of Code | 5 | - |
Number of Comments | 0 | - |
Arguments | 1 | annotation (org.junit.Test) |
Modifiers | 1 | private |
Halstead Difficulty | 5.14 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 82.04 | - |
Number of Operands | 9 | - |
Variable References | 2 | annotation (2) |
Number of Operators | 12 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : hasOneConstructor() in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | hasOneConstructor | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 19 | - |
Halstead Vocabulary | 14 | - |
Halstead Effort | 253.19 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 0 | |
External Methods Called | 2 | gripe().getJavaClass (1) getJavaClass().getConstructors (1) |
Local Methods Called | 1 | getTestClass (1) |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 0 | - |
Modifiers | 1 | private |
Halstead Difficulty | 3.50 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 72.34 | - |
Number of Operands | 7 | - |
Variable References | 1 | length (1) |
Number of Operators | 12 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 5 | - |
Number of Loops | 0 | - |
Analysis of Method : makeNotifier(FrameworkMethod, RunNotifier) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | makeNotifier | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 3 | - |
Halstead Length | 23 | - |
Halstead Vocabulary | 16 | - |
Halstead Effort | 465.11 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 4 | org.junit.runner.notification.RunNotifier (1) org.junit.runner.Description (1) org.junit.runners.model.FrameworkMethod (1) org.junit.internal.runners.model.EachTestNotifier (2) |
External Methods Called | 1 | org.junit.internal.runners.model.EachTestNotifier.EachTestNotifier (1) |
Local Methods Called | 1 | describeChild (1) |
Lines Of Code | 5 | - |
Number of Comments | 0 | - |
Arguments | 2 | method (org.junit.runners.model.FrameworkMethod) notifier (org.junit.runner.notification.RunNotifier) |
Modifiers | 1 | private |
Halstead Difficulty | 5.06 | - |
Variable Declarations | 1 | description (org.junit.runner.Description) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 92.00 | - |
Number of Operands | 13 | - |
Variable References | 3 | description (1) notifier (1) method (1) |
Number of Operators | 10 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 3 | - |
Number of Loops | 0 | - |
Analysis of Method : methodBlock(FrameworkMethod) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | methodBlock | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 32 | - |
Number of Statements | 12 | - |
Halstead Length | 97 | - |
Halstead Vocabulary | 33 | - |
Halstead Effort | 6850.29 | - |
Halstead Bugs | 0.16 | - |
Classes Referenced | 6 | org.junit.internal.runners.model.ReflectiveCallable (1) org.junit.internal.runners.statements.Fail (1) org.junit.runners.model.FrameworkMethod (1) java.lang.Object (1) java.lang.Throwable (1) org.junit.rules.Statement (2) |
External Methods Called | 2 | org.junit.internal.runners.model.ReflectiveCallable.ReflectiveCallable (1) org.junit.internal.runners.statements.Fail.Fail (1) |
Local Methods Called | 6 | withPotentialTimeout (1) methodInvoker (1) withAfters (1) withBefores (1) possiblyExpectingExceptions (1) withRules (1) |
Lines Of Code | 20 | - |
Number of Comments | 1 | - |
Arguments | 1 | method (org.junit.runners.model.FrameworkMethod) |
Modifiers | 1 | protected |
Halstead Difficulty | 14.00 | - |
Variable Declarations | 2 | statement (org.junit.rules.Statement) test (java.lang.Object) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 1 | java.lang.Throwable (1) |
Number of casts | 0 | - |
Total Depth of Nesting | 2 | - |
Halstead Volume | 489.31 | - |
Number of Operands | 49 | - |
Variable References | 25 | statement (11) e (1) method (6) test (7) |
Number of Operators | 48 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 11 | - |
Number of Loops | 0 | - |
Analysis of Method : methodInvoker(FrameworkMethod, Object) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | methodInvoker | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 6 | - |
Number of Statements | 2 | - |
Halstead Length | 16 | - |
Halstead Vocabulary | 13 | - |
Halstead Effort | 228.37 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 4 | org.junit.runners.model.FrameworkMethod (1) java.lang.Object (1) org.junit.internal.runners.statements.InvokeMethod (1) org.junit.rules.Statement (1) |
External Methods Called | 1 | org.junit.internal.runners.statements.InvokeMethod.InvokeMethod (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 4 | - |
Arguments | 2 | method (org.junit.runners.model.FrameworkMethod) test (java.lang.Object) |
Modifiers | 1 | protected |
Halstead Difficulty | 3.86 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 59.21 | - |
Number of Operands | 9 | - |
Variable References | 2 | test (1) method (1) |
Number of Operators | 7 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : possiblyExpectingExceptions(FrameworkMethod, Object, Statement) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | possiblyExpectingExceptions | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 8 | - |
Number of Statements | 3 | - |
Halstead Length | 39 | - |
Halstead Vocabulary | 26 | - |
Halstead Effort | 1649.85 | - |
Halstead Bugs | 0.06 | - |
Classes Referenced | 6 | org.junit.internal.runners.statements.ExpectException (1) org.junit.runners.model.FrameworkMethod (1) java.lang.Object (1) org.junit.Test (1) org.junit.rules.Statement (2) Test.class (1) |
External Methods Called | 2 | org.junit.internal.runners.statements.ExpectException.ExpectException (1) org.junit.runners.model.FrameworkMethod.getAnnotation (1) |
Local Methods Called | 2 | expectsException (1) getExpectedException (1) |
Lines Of Code | 6 | - |
Number of Comments | 1 | - |
Arguments | 3 | method (org.junit.runners.model.FrameworkMethod) test (java.lang.Object) next (org.junit.rules.Statement) |
Modifiers | 2 | @Deprecated protected |
Halstead Difficulty | 9.00 | - |
Variable Declarations | 1 | annotation (org.junit.Test) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 183.32 | - |
Number of Operands | 21 | - |
Variable References | 5 | annotation (2) next (2) method (1) |
Number of Operators | 18 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 6 | - |
Number of Loops | 0 | - |
Analysis of Method : ruleFields() in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | ruleFields | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 18 | - |
Halstead Vocabulary | 15 | - |
Halstead Effort | 316.46 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 3 | java.util.List (1) Rule.class (1) org.junit.runners.model.FrameworkField (1) |
External Methods Called | 1 | results().getAnnotatedFields (1) |
Local Methods Called | 1 | getTestClass (1) |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 0 | - |
Modifiers | 1 | private |
Halstead Difficulty | 4.50 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 70.32 | - |
Number of Operands | 6 | - |
Variable References | 0 | |
Number of Operators | 12 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : rules(Object) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | rules | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 7 | - |
Halstead Length | 42 | - |
Halstead Vocabulary | 24 | - |
Halstead Effort | 1829.40 | - |
Halstead Bugs | 0.06 | - |
Classes Referenced | 5 | java.util.List (2) java.util.ArrayList (1) org.junit.runners.model.FrameworkField (1) org.junit.rules.MethodRule (3) java.lang.Object (1) |
External Methods Called | 2 | List java.util.ArrayList.ArrayList (1) |
Local Methods Called | 2 | ruleFields (1) createRule (1) |
Lines Of Code | 6 | - |
Number of Comments | 1 | - |
Arguments | 1 | test (java.lang.Object) |
Modifiers | 1 | protected |
Halstead Difficulty | 9.50 | - |
Variable Declarations | 1 | results (List<MethodRule>) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 192.57 | - |
Number of Operands | 19 | - |
Variable References | 4 | results (2) each (1) test (1) |
Number of Operators | 23 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 4 | - |
Number of Loops | 1 | - |
Analysis of Method : runChild(FrameworkMethod, RunNotifier) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | runChild | - |
Cyclomatic Complexity | 4 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 11 | - |
Halstead Length | 81 | - |
Halstead Vocabulary | 37 | - |
Halstead Effort | 4494.85 | - |
Halstead Bugs | 0.14 | - |
Classes Referenced | 6 | org.junit.internal.AssumptionViolatedException (1) org.junit.runner.notification.RunNotifier (1) Ignore.class (1) org.junit.runners.model.FrameworkMethod (1) java.lang.Throwable (1) org.junit.internal.runners.model.EachTestNotifier (1) |
External Methods Called | 7 | org.junit.runners.model.FrameworkMethod.getAnnotation (1) org.junit.internal.runners.model.EachTestNotifier.fireTestStarted (1) org.junit.internal.runners.model.EachTestNotifier.addFailedAssumption (1) org.junit.internal.runners.model.EachTestNotifier.addFailure (1) org.junit.internal.runners.model.EachTestNotifier.fireTestFinished (1) method().evaluate (1) org.junit.internal.runners.model.EachTestNotifier.fireTestIgnored (1) |
Local Methods Called | 2 | makeNotifier (1) methodBlock (1) |
Lines Of Code | 17 | - |
Number of Comments | 3 | - |
Arguments | 2 | method (org.junit.runners.model.FrameworkMethod) notifier (org.junit.runner.notification.RunNotifier) |
Modifiers | 2 | @Override protected |
Halstead Difficulty | 10.65 | - |
Variable Declarations | 1 | eachNotifier (org.junit.internal.runners.model.EachTestNotifier) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 2 | org.junit.internal.AssumptionViolatedException (1) java.lang.Throwable (1) |
Number of casts | 0 | - |
Total Depth of Nesting | 5 | - |
Halstead Volume | 421.97 | - |
Number of Operands | 35 | - |
Variable References | 11 | notifier (1) e (2) eachNotifier (5) method (3) |
Number of Operators | 46 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 10 | - |
Number of Loops | 0 | - |
Analysis of Method : testName(FrameworkMethod) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | testName | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 2 | - |
Halstead Length | 13 | - |
Halstead Vocabulary | 11 | - |
Halstead Effort | 161.90 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 2 | java.lang.String (1) org.junit.runners.model.FrameworkMethod (1) |
External Methods Called | 1 | org.junit.runners.model.FrameworkMethod.getName (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 1 | method (org.junit.runners.model.FrameworkMethod) |
Modifiers | 1 | protected |
Halstead Difficulty | 3.60 | - |
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 | 6 | - |
Variable References | 1 | method (1) |
Number of Operators | 7 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : validateConstructor(List) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | validateConstructor | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 5 | - |
Number of Statements | 3 | - |
Halstead Length | 18 | - |
Halstead Vocabulary | 13 | - |
Halstead Effort | 256.92 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 2 | java.util.List (1) java.lang.Throwable (2) |
External Methods Called | 0 | |
Local Methods Called | 2 | validateOnlyOneConstructor (1) validateZeroArgConstructor (1) |
Lines Of Code | 4 | - |
Number of Comments | 1 | - |
Arguments | 1 | errors (java.util.List) |
Modifiers | 1 | protected |
Halstead Difficulty | 3.86 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 66.61 | - |
Number of Operands | 9 | - |
Variable References | 2 | errors (2) |
Number of Operators | 9 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : validateFields(List) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | validateFields | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 5 | - |
Halstead Length | 25 | - |
Halstead Vocabulary | 19 | - |
Halstead Effort | 573.47 | - |
Halstead Bugs | 0.04 | - |
Classes Referenced | 3 | java.util.List (1) org.junit.runners.model.FrameworkField (1) java.lang.Throwable (2) |
External Methods Called | 1 | each.getField (1) |
Local Methods Called | 2 | ruleFields (1) validateRuleField (1) |
Lines Of Code | 4 | - |
Number of Comments | 0 | - |
Arguments | 1 | errors (java.util.List) |
Modifiers | 1 | private |
Halstead Difficulty | 5.40 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 106.20 | - |
Number of Operands | 12 | - |
Variable References | 2 | each (1) errors (1) |
Number of Operators | 13 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 1 | - |
Analysis of Method : validateInstanceMethods(List) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | validateInstanceMethods | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 7 | - |
Number of Statements | 5 | - |
Halstead Length | 50 | - |
Halstead Vocabulary | 29 | - |
Halstead Effort | 1971.77 | - |
Halstead Bugs | 0.08 | - |
Classes Referenced | 5 | java.util.List (1) After.class (1) java.lang.Throwable (2) Before.class (1) java.lang.Exception (1) |
External Methods Called | 3 | java.lang.Exception.Exception (1) errors().size (1) java.util.List.add (1) |
Local Methods Called | 3 | validateTestMethods (1) computeTestMethods (1) validatePublicVoidNoArgMethods (2) |
Lines Of Code | 7 | - |
Number of Comments | 1 | - |
Arguments | 1 | errors (java.util.List) |
Modifiers | 2 | @Deprecated protected |
Halstead Difficulty | 8.12 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 242.90 | - |
Number of Operands | 23 | - |
Variable References | 4 | errors (4) |
Number of Operators | 27 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 6 | - |
Number of Loops | 0 | - |
Analysis of Method : validateOnlyOneConstructor(List) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | validateOnlyOneConstructor | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 4 | - |
Halstead Length | 30 | - |
Halstead Vocabulary | 22 | - |
Halstead Effort | 869.59 | - |
Halstead Bugs | 0.04 | - |
Classes Referenced | 4 | java.util.List (1) java.lang.String (1) java.lang.Throwable (2) java.lang.Exception (1) |
External Methods Called | 2 | java.util.List.add (1) java.lang.Exception.Exception (1) |
Local Methods Called | 1 | hasOneConstructor (1) |
Lines Of Code | 6 | - |
Number of Comments | 1 | - |
Arguments | 1 | errors (java.util.List) |
Modifiers | 1 | protected |
Halstead Difficulty | 6.50 | - |
Variable Declarations | 1 | gripe (java.lang.String) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 1 | - |
Halstead Volume | 133.78 | - |
Number of Operands | 13 | - |
Variable References | 2 | gripe (1) errors (1) |
Number of Operators | 17 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 5 | - |
Number of Loops | 0 | - |
Analysis of Method : validateRuleField(Field, List) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | validateRuleField | - |
Cyclomatic Complexity | 3 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 3 | - |
Halstead Length | 68 | - |
Halstead Vocabulary | 31 | - |
Halstead Effort | 3085.16 | - |
Halstead Bugs | 0.11 | - |
Classes Referenced | 6 | java.util.List (1) java.lang.reflect.Modifier (1) java.lang.Throwable (2) java.lang.Exception (2) java.lang.reflect.Field (1) MethodRule.class (1) |
External Methods Called | 6 | java.util.List.add (2) java.lang.reflect.Field.getModifiers (1) java.lang.reflect.Modifier.isPublic (1) java.lang.reflect.Field.getType (1) java.lang.Exception.Exception (2) java.lang.reflect.Field.getName (2) |
Local Methods Called | 0 | |
Lines Of Code | 8 | - |
Number of Comments | 0 | - |
Arguments | 2 | field (java.lang.reflect.Field) errors (java.util.List) |
Modifiers | 1 | private |
Halstead Difficulty | 9.16 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 336.89 | - |
Number of Operands | 29 | - |
Variable References | 6 | field (4) errors (2) |
Number of Operators | 39 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 16 | - |
Number of Loops | 0 | - |
Analysis of Method : validateTestMethods(List) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | validateTestMethods | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 2 | - |
Halstead Length | 18 | - |
Halstead Vocabulary | 16 | - |
Halstead Effort | 324.00 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 3 | java.util.List (1) java.lang.Throwable (2) Test.class (1) |
External Methods Called | 0 | |
Local Methods Called | 1 | validatePublicVoidNoArgMethods (1) |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 1 | errors (java.util.List) |
Modifiers | 1 | protected |
Halstead Difficulty | 4.50 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 72.00 | - |
Number of Operands | 9 | - |
Variable References | 1 | errors (1) |
Number of Operators | 9 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 0 | - |
Number of Loops | 0 | - |
Analysis of Method : validateZeroArgConstructor(List) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | validateZeroArgConstructor | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 5 | - |
Number of Statements | 4 | - |
Halstead Length | 44 | - |
Halstead Vocabulary | 29 | - |
Halstead Effort | 1563.06 | - |
Halstead Bugs | 0.07 | - |
Classes Referenced | 4 | java.util.List (1) java.lang.String (1) java.lang.Throwable (2) java.lang.Exception (1) |
External Methods Called | 4 | getOnlyConstructor().getParameterTypes (1) java.lang.Exception.Exception (1) gripe().getOnlyConstructor (1) java.util.List.add (1) |
Local Methods Called | 2 | hasOneConstructor (1) getTestClass (1) |
Lines Of Code | 7 | - |
Number of Comments | 1 | - |
Arguments | 1 | errors (java.util.List) |
Modifiers | 1 | protected |
Halstead Difficulty | 7.31 | - |
Variable Declarations | 1 | gripe (java.lang.String) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 1 | - |
Halstead Volume | 213.75 | - |
Number of Operands | 18 | - |
Variable References | 3 | gripe (1) length (1) errors (1) |
Number of Operators | 26 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 11 | - |
Number of Loops | 0 | - |
Analysis of Method : withAfters(FrameworkMethod, Object, Statement) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | withAfters | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 9 | - |
Number of Statements | 3 | - |
Halstead Length | 43 | - |
Halstead Vocabulary | 29 | - |
Halstead Effort | 2144.64 | - |
Halstead Bugs | 0.07 | - |
Classes Referenced | 6 | java.util.List (1) After.class (1) org.junit.runners.model.FrameworkMethod (3) java.lang.Object (1) org.junit.internal.runners.statements.RunAfters (1) org.junit.rules.Statement (2) |
External Methods Called | 3 | org.junit.internal.runners.statements.RunAfters.RunAfters (1) List target().getAnnotatedMethods (1) |
Local Methods Called | 1 | getTestClass (1) |
Lines Of Code | 6 | - |
Number of Comments | 1 | - |
Arguments | 3 | method (org.junit.runners.model.FrameworkMethod) target (java.lang.Object) statement (org.junit.rules.Statement) |
Modifiers | 2 | @Deprecated protected |
Halstead Difficulty | 10.27 | - |
Variable Declarations | 1 | afters (List<FrameworkMethod>) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 208.89 | - |
Number of Operands | 22 | - |
Variable References | 5 | statement (2) target (1) afters (2) |
Number of Operators | 21 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 6 | - |
Number of Loops | 0 | - |
Analysis of Method : withBefores(FrameworkMethod, Object, Statement) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | withBefores | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 7 | - |
Number of Statements | 3 | - |
Halstead Length | 43 | - |
Halstead Vocabulary | 29 | - |
Halstead Effort | 2144.64 | - |
Halstead Bugs | 0.07 | - |
Classes Referenced | 6 | java.util.List (1) org.junit.internal.runners.statements.RunBefores (1) org.junit.runners.model.FrameworkMethod (3) java.lang.Object (1) Before.class (1) org.junit.rules.Statement (2) |
External Methods Called | 3 | next().getAnnotatedMethods (1) org.junit.internal.runners.statements.RunBefores.RunBefores (1) List |
Local Methods Called | 1 | getTestClass (1) |
Lines Of Code | 6 | - |
Number of Comments | 1 | - |
Arguments | 3 | method (org.junit.runners.model.FrameworkMethod) target (java.lang.Object) statement (org.junit.rules.Statement) |
Modifiers | 2 | @Deprecated protected |
Halstead Difficulty | 10.27 | - |
Variable Declarations | 1 | befores (List<FrameworkMethod>) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 208.89 | - |
Number of Operands | 22 | - |
Variable References | 5 | statement (2) target (1) befores (2) |
Number of Operators | 21 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 6 | - |
Number of Loops | 0 | - |
Analysis of Method : withPotentialTimeout(FrameworkMethod, Object, Statement) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | withPotentialTimeout | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 7 | - |
Number of Statements | 3 | - |
Halstead Length | 39 | - |
Halstead Vocabulary | 28 | - |
Halstead Effort | 1706.13 | - |
Halstead Bugs | 0.06 | - |
Classes Referenced | 5 | org.junit.internal.runners.statements.FailOnTimeout (1) org.junit.runners.model.FrameworkMethod (1) java.lang.Object (1) org.junit.rules.Statement (2) Test.class (1) |
External Methods Called | 2 | org.junit.runners.model.FrameworkMethod.getAnnotation (1) org.junit.internal.runners.statements.FailOnTimeout.FailOnTimeout (1) |
Local Methods Called | 1 | getTimeout (1) |
Lines Of Code | 5 | - |
Number of Comments | 1 | - |
Arguments | 3 | method (org.junit.runners.model.FrameworkMethod) test (java.lang.Object) next (org.junit.rules.Statement) |
Modifiers | 2 | @Deprecated protected |
Halstead Difficulty | 9.10 | - |
Variable Declarations | 1 | timeout (long) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 187.49 | - |
Number of Operands | 21 | - |
Variable References | 5 | next (2) timeout (2) method (1) |
Number of Operators | 18 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 6 | - |
Number of Loops | 0 | - |
Analysis of Method : withRules(FrameworkMethod, Object, Statement) in Class : org.junit.runners.BlockJUnit4ClassRunner | ||
---|---|---|
Feature | Number | Values |
Name | withRules | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 7 | - |
Halstead Length | 37 | - |
Halstead Vocabulary | 21 | - |
Halstead Effort | 1340.75 | - |
Halstead Bugs | 0.05 | - |
Classes Referenced | 4 | org.junit.rules.MethodRule (1) org.junit.runners.model.FrameworkMethod (1) java.lang.Object (1) org.junit.rules.Statement (3) |
External Methods Called | 1 | each.apply (1) |
Local Methods Called | 1 | rules (1) |
Lines Of Code | 7 | - |
Number of Comments | 0 | - |
Arguments | 3 | method (org.junit.runners.model.FrameworkMethod) target (java.lang.Object) statement (org.junit.rules.Statement) |
Modifiers | 1 | private |
Halstead Difficulty | 8.25 | - |
Variable Declarations | 1 | result (org.junit.rules.Statement) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 162.52 | - |
Number of Operands | 22 | - |
Variable References | 8 | result (3) statement (1) each (1) target (2) method (1) |
Number of Operators | 15 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 4 | - |
Number of Loops | 1 | - |
Top of this page | Data Generated by JHawk - The Java Metrics tool | Home |