fix: path

This commit is contained in:
Young Xu 2023-03-03 23:03:26 +08:00
parent 3c61d439e5
commit 1f614fadb9
Signed by: xuthus5
GPG Key ID: A23CF9620CBB55F9
3 changed files with 6 additions and 4 deletions

2
go.mod
View File

@ -1,4 +1,4 @@
module gitter.top/xuthus5/goast
module gitter.top/coco/goast
go 1.18

View File

@ -1,13 +1,15 @@
package goast
package goast_test
import (
"fmt"
"github.com/stretchr/testify/assert"
"testing"
"github.com/stretchr/testify/assert"
"gitter.top/coco/goast"
)
func TestParser_Parse(t *testing.T) {
parser, err := NewParser("./example.go")
parser, err := goast.NewParser("./testdata/main.go")
assert.NoError(t, err)
defines, err := parser.Parse()
assert.NoError(t, err)

View File