Skip to content

Commit

Permalink
Fix unit test and formatting CI
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Chan <[email protected]>
  • Loading branch information
arthurscchan committed Nov 3, 2023
1 parent e796bd4 commit 2eae095
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/google-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@ jobs:
with:
args: "--replace"
skip-commit: true
files:
- 'frontends/java/**'
- '.github/workflows/google-java.yml'
- 'tools/auto-fuzz/benchmark/jvm/**'
- name: Print diffs
run: git --no-pager diff --exit-code
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,26 @@
import org.junit.jupiter.api.Test;
import soot.SceneTransformer;

public class CustomSenceTransformerTest {
public class SootSceneTransformerTest {
@Test
public void testNoException() {
assertDoesNotThrow(() -> {});
}

@Test
public void testBasic() {
CustomSenceTransformer custom =
new CustomSenceTransformer("", "", "ALL", "", "", "", "", "NULL", false);
SootSceneTransformer custom =
new SootSceneTransformer("", "", "ALL", "", "", "", "", "NULL", false);
assertTrue(custom instanceof SceneTransformer);
assertTrue(custom instanceof CustomSenceTransformer);
assertTrue(custom instanceof SootSceneTransformer);
assertEquals(custom.getIncludeList().size(), 1);
assertEquals(custom.getExcludeList().size(), 0);
}

@Test
public void testExcludePrefix() {
CustomSenceTransformer custom =
new CustomSenceTransformer(
SootSceneTransformer custom =
new SootSceneTransformer(
"", "", "ALL", "", "abc:def:ghi", "jkl:mno:pqr", "", "NULL", false);
assertEquals(custom.getIncludeList().size(), 4);
assertEquals(custom.getExcludeList().size(), 3);
Expand Down

0 comments on commit 2eae095

Please sign in to comment.