github.com/falafeljan/pkger@v0.18.0/pkging/pkgtest/info.go (about) 1 package pkgtest 2 3 import ( 4 "testing" 5 6 "github.com/markbates/pkger/pkging" 7 "github.com/stretchr/testify/require" 8 ) 9 10 func InfoTest(t *testing.T, ref *Ref, pkg pkging.Pkger) { 11 r := require.New(t) 12 13 info, err := pkg.Info("app") 14 r.NoError(err) 15 16 cmpHereInfo(t, ref.Info, info) 17 }