pkger/pkging/stdos/info_test.go

23 lines
341 B
Go

package stdos
import (
"os"
"testing"
"github.com/markbates/pkger/pkging/pkgtest"
"github.com/stretchr/testify/require"
)
func Test_Pkger_Info(t *testing.T) {
r := require.New(t)
ref, err := pkgtest.NewRef()
r.NoError(err)
defer os.RemoveAll(ref.Dir)
pkg, err := New(ref.Info)
r.NoError(err)
pkgtest.InfoTest(t, ref, pkg)
}