未验证 提交 3025c083 编写于 作者: P Phodal Huang

test: add test for ident app

上级 b0304def
package call
import (
"testing"
)
func TestJavaCallApp_AnalysisPath(t *testing.T) {
}
\ No newline at end of file
package identifier
import (
. "github.com/onsi/gomega"
"testing"
)
func TestJavaIdentifierApp_AnalysisPath(t *testing.T) {
g := NewGomegaWithT(t)
identApp := new(JavaIdentifierApp)
identifiers := identApp.AnalysisPath("../../../examples/method-call")
g.Expect(len(identifiers)).To(Equal(1))
g.Expect(identifiers[0].ClassName).To(Equal("BlogRepositoryImpl"))
g.Expect(identifiers[0].Methods[0].Name).To(Equal("save"))
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册