pkger/pkging/pkgtest/info.go

18 lines
278 B
Go
Raw Permalink Normal View History

2019-11-01 23:08:10 +03:00
package pkgtest
2019-10-31 00:15:49 +03:00
import (
"testing"
"github.com/markbates/pkger/pkging"
"github.com/stretchr/testify/require"
)
func InfoTest(t *testing.T, ref *Ref, pkg pkging.Pkger) {
r := require.New(t)
info, err := pkg.Info("app")
r.NoError(err)
cmpHereInfo(t, ref.Info, info)
2019-10-31 00:15:49 +03:00
}