Last active
December 3, 2015 11:16
-
-
Save havasd/64e90baf560820f85bfd to your computer and use it in GitHub Desktop.
jacoco example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class A { | |
public void f() throws Exception { | |
throw new Exception(); // currently covered | |
} | |
public void f2() throws Exception { | |
f(); // not covered but should be covered | |
} | |
public static void main(String[] args) { | |
A a = new A(); // covered | |
try { | |
// ... // should be covered | |
a.f2(); // should be covered | |
// ... // not covered | |
} | |
catch (Exception e) { | |
// ... // covered | |
} | |
// ... // covered | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment