Skip to content

Commit 4130006

Browse files
author
Owen Jones
committed
Add test for ignored method annotation
1 parent 1b15e89 commit 4130006

File tree

5 files changed

+30
-0
lines changed

5 files changed

+30
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package org.cprover;
2+
3+
/**
4+
* Ignored methods are documented above
5+
* `java_bytecode_convert_classt::is_ignored_method`.
6+
*/
7+
public @interface IgnoredMethodImplementation {
8+
}
Binary file not shown.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import org.cprover.OverlayClassImplementation;
2+
import org.cprover.IgnoredMethodImplementation;
3+
4+
@OverlayClassImplementation
5+
public class Test
6+
{
7+
@IgnoredMethodImplementation
8+
public static void main(String[] args)
9+
{
10+
assert(true);
11+
}
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CORE
2+
Test.class
3+
--classpath `../../../../scripts/format_classpath.sh . annotations . ignored-method` --verbosity 10
4+
^Ignoring method: 'java::Test\.main:\(\[Ljava/lang/String;\)V'$
5+
^VERIFICATION FAILED$
6+
^EXIT=10$
7+
^SIGNAL=0$
8+
--
9+
^Skipping class Test marked with OverlayClassImplementation but found before original definition$
10+
^Adding symbol from overlay class: method 'java::Test\.main:\(\[Ljava/lang/String;\)V'$

0 commit comments

Comments
 (0)