diff options
author | Marc R. Hoffmann <hoffmann@mountainminds.com> | 2015-02-16 09:09:25 +0100 |
---|---|---|
committer | Marc R. Hoffmann <hoffmann@mountainminds.com> | 2015-05-22 11:16:59 +0200 |
commit | 873114568ee148ea2e15cd036d57bf7b43ba154d (patch) | |
tree | 96244e1b3a49b2458ea4bb03194d8441b71b09e2 /org.jacoco.core.test/src/org/jacoco/core/test/validation/ExceptionsTest.java | |
parent | 93c1f077e9856dae19c0a7b9bce963181bfd3fc3 (diff) | |
download | jacoco-873114568ee148ea2e15cd036d57bf7b43ba154d.tar.gz |
Improve coverage data for code with implicit exception.
Add additional probe before every line with at least one method
invocation.
Diffstat (limited to 'org.jacoco.core.test/src/org/jacoco/core/test/validation/ExceptionsTest.java')
-rw-r--r-- | org.jacoco.core.test/src/org/jacoco/core/test/validation/ExceptionsTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/org.jacoco.core.test/src/org/jacoco/core/test/validation/ExceptionsTest.java b/org.jacoco.core.test/src/org/jacoco/core/test/validation/ExceptionsTest.java index 03517826..40080914 100644 --- a/org.jacoco.core.test/src/org/jacoco/core/test/validation/ExceptionsTest.java +++ b/org.jacoco.core.test/src/org/jacoco/core/test/validation/ExceptionsTest.java @@ -36,7 +36,7 @@ public class ExceptionsTest extends ValidationTestBase { // 1. Implicit Exception // Currently no coverage at all, as we don't see when a block aborts // somewhere in the middle. - assertLine("implicitException.before", ICounter.NOT_COVERED); + assertLine("implicitException.before", ICounter.FULLY_COVERED); assertLine("implicitException.exception", ICounter.NOT_COVERED); assertLine("implicitException.after", ICounter.NOT_COVERED); @@ -55,7 +55,7 @@ public class ExceptionsTest extends ValidationTestBase { // somewhere in the middle. assertLine("implicitExceptionTryCatch.beforeBlock", ICounter.FULLY_COVERED); - assertLine("implicitExceptionTryCatch.before", ICounter.NOT_COVERED); + assertLine("implicitExceptionTryCatch.before", ICounter.FULLY_COVERED); assertLine("implicitExceptionTryCatch.exception", ICounter.NOT_COVERED); assertLine("implicitExceptionTryCatch.after", ICounter.NOT_COVERED); assertLine("implicitExceptionTryCatch.catchBlock", @@ -89,7 +89,7 @@ public class ExceptionsTest extends ValidationTestBase { // Finally block is yellow as the non-exception path is missing. assertLine("implicitExceptionFinally.beforeBlock", ICounter.FULLY_COVERED); - assertLine("implicitExceptionFinally.before", ICounter.NOT_COVERED); + assertLine("implicitExceptionFinally.before", ICounter.FULLY_COVERED); assertLine("implicitExceptionFinally.exception", ICounter.NOT_COVERED); assertLine("implicitExceptionFinally.after", ICounter.NOT_COVERED); assertLine("implicitExceptionFinally.finallyBlock", |