pkger/parser/parser_test.go

20 lines
311 B
Go
Raw Normal View History

2019-08-01 19:03:12 +03:00
package parser
import (
"testing"
"github.com/stretchr/testify/require"
)
func Test_Parser(t *testing.T) {
r := require.New(t)
res, err := Parse("github.com/markbates/pkger:/internal/examples")
r.NoError(err)
// for _, pt := range res.Paths {
// fmt.Println(pt)
// }
r.True(len(res.Paths) > 3)
}