mirror of https://github.com/markbates/pkger.git
20 lines
311 B
Go
20 lines
311 B
Go
|
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)
|
||
|
}
|