Skip to content

Instantly share code, notes, and snippets.

@havasd
Last active December 3, 2015 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save havasd/64e90baf560820f85bfd to your computer and use it in GitHub Desktop.
Save havasd/64e90baf560820f85bfd to your computer and use it in GitHub Desktop.
jacoco example
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