Skip to content

Commit 237f934

Browse files
committed
Add tests
1 parent af7ec81 commit 237f934

File tree

6 files changed

+18
-0
lines changed

6 files changed

+18
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ Usage: jst [-hV] [--in-format=<inputFormat>] [--libraries-list=<librariesList>]
7272
--classpath=<addToClasspath>
7373
Additional classpath entries to use. Is combined with --libraries-list.
7474
-h, --help Show this help message and exit.
75+
--hidden-prefix=<hiddenPrefixes>
76+
Do not process or emit paths that start with any of these prefixes.
7577
--ignore-prefix=<ignoredPrefixes>
7678
Do not apply transformations to paths that start with any of these
7779
prefixes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
public C1
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
public class C1 {
2+
C1() {}
3+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class C1 {
2+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package other;
2+
3+
final class C2f {
4+
5+
}

tests/src/test/java/net/neoforged/jst/tests/EmbeddedTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,11 @@ void testMethodsNoInheritance() throws Exception {
297297
void testMethodsInheritance() throws Exception {
298298
runATTest("methods_inheritance", "--access-transformer-inherit-method");
299299
}
300+
301+
@Test
302+
void testHiddenPrefixes() throws Exception {
303+
runATTest("hidden_prefix", "--hidden-prefix=other");
304+
}
300305
}
301306

302307
@Nested

0 commit comments

Comments
 (0)