refactor: extract code position

上级 c76388b8
package domain
type CodePosition struct {
StartLine int
StartLinePosition int
StopLine int
StopLinePosition int
}
type CodeFile struct {
FullName string
PackageName string
......
package domain
type CodePosition struct {
StartLine int
StartLinePosition int
StopLine int
StopLinePosition int
}
......@@ -11,5 +11,5 @@ func Test_ParserLog(t *testing.T) {
abs, _ := filepath.Abs("../../pkg/domain/code_file.go")
results := ProcessFile(abs)
g.Expect(len(results.Members)).To(Equal(2))
g.Expect(len(results.Members)).To(Equal(1))
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册