fix: fix methodcall not update issue

上级 f3281fe1
......@@ -30,6 +30,7 @@ func (a TbsApp) AnalysisPath(deps []domain.JClassNode, identifiersMap map[string
}
currentMethodCalls := updateMethodCallsForSelfCall(method, clz, callMethodMap)
method.MethodCalls = currentMethodCalls
var testType = ""
for _, annotation := range method.Annotations {
......
......@@ -111,6 +111,16 @@ func TestTbsApp_CallAssertInClassTests(t *testing.T) {
g.Expect(len(result)).To(Equal(0))
}
func TestTbsApp_ShouldReturnEmptyForFunc(t *testing.T) {
g := NewGomegaWithT(t)
codePath := "../../../_fixtures/tbs/regression/EnvironmentSystemIntegrationTests.java"
codePath = filepath.FromSlash(codePath)
result := buildTbsResult(codePath)
g.Expect(len(result)).To(Equal(0))
}
func buildTbsResult(codePath string) []TestBadSmell {
files := coca_file.GetJavaTestFiles(codePath)
var identifiers []domain.JIdentifier
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册