Skip to content

Commit

Permalink
feat: <app> add basic dir support
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Feb 9, 2020
1 parent 823ed0f commit d1c34a5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,13 @@ internal class ChapiAnalyserTest {
val nodes = ChapiAnalyser().analysisByFiles(files)
assertEquals(nodes.size, 1)
}

@Test
fun analysisByDir() {
val resource = this.javaClass.classLoader.getResource("e2e/step2-java/")
val path = Paths.get(resource!!.toURI()).toFile()

val nodes = ChapiAnalyser().analysisByPath(path.absolutePath)
assertEquals(nodes.size, 14)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,6 @@ open class JavaFullIdentListener(fileName: String) : JavaAstListener() {
}

override fun enterCreator(ctx: JavaParser.CreatorContext?) {
println("enterCreator")
val variableName = ctx!!.getParent().getParent().getChild(0).text
val allIdentifier = ctx.createdName().IDENTIFIER()
for (identifier in allIdentifier!!) {
Expand Down

0 comments on commit d1c34a5

Please # to comment.