goast/goast_test.go
2023-01-01 16:38:14 +08:00

16 lines
273 B
Go

package goast
import (
"fmt"
"github.com/stretchr/testify/assert"
"testing"
)
func TestParser_Parse(t *testing.T) {
parser, err := NewParser("./example.go")
assert.NoError(t, err)
defines, err := parser.Parse()
assert.NoError(t, err)
fmt.Printf("%+v", defines)
}