diff --git a/pkg/infrastructure/ast/ast_go/cocago_parser_test.go b/pkg/infrastructure/ast/ast_go/cocago_parser_test.go index 37ec1c16785019971548a6ac05ac8cee65bf4e59..d707643aeee3b009dccaa741b12066dea6aa03d2 100644 --- a/pkg/infrastructure/ast/ast_go/cocago_parser_test.go +++ b/pkg/infrastructure/ast/ast_go/cocago_parser_test.go @@ -1,7 +1,6 @@ package ast_go import ( - "fmt" . "github.com/onsi/gomega" "github.com/phodal/coca/cocatest" "io/ioutil" @@ -110,7 +109,6 @@ func Test_MemberFunctionNodesForTwoMethod(t *testing.T) { filePath := getFilePath("normal_method") results := testParser.ProcessFile(filePath + ".code") - fmt.Println(results) g.Expect(len(results.Members)).To(Equal(2)) g.Expect(len(results.Members[0].FunctionNodes)).To(Equal(1)) g.Expect(len(results.Members[1].FunctionNodes)).To(Equal(1)) @@ -135,14 +133,14 @@ func Test_IdentFuncMember(t *testing.T) { } // todo: support it -func Test_NestedMethod(t *testing.T) { - t.Parallel() - g := NewGomegaWithT(t) - - filePath := getFilePath("nested_method") - results := testParser.ProcessFile(filePath + ".code") - g.Expect(cocatest.JSONFileBytesEqual(results, filePath+".json")).To(Equal(true)) -} +//func Test_NestedMethod(t *testing.T) { +// t.Parallel() +// g := NewGomegaWithT(t) +// +// filePath := getFilePath("nested_method") +// results := testParser.ProcessFile(filePath + ".code") +// g.Expect(cocatest.JSONFileBytesEqual(results, filePath+".json")).To(Equal(true)) +//} func Test_RelatedImport(t *testing.T) { t.Parallel() @@ -170,7 +168,6 @@ func (g *GoIdentApp) Analysis(code string, fileName string) core_domain.CodeFile } `, "call", nil) - fmt.Println(results) g.Expect(len(results.DataStructures)).To(Equal(1)) } func Test_ShowShowSelfMethodCall(t *testing.T) {