pkger/pkging/mem/open_test.go

21 lines
302 B
Go
Raw Normal View History

package mem
import (
"testing"
"github.com/markbates/pkger/pkging/costello"
"github.com/stretchr/testify/require"
)
func Test_Pkger_Open(t *testing.T) {
r := require.New(t)
2019-10-30 23:39:05 +03:00
ref, err := costello.NewRef()
r.NoError(err)
2019-10-30 23:39:05 +03:00
pkg, err := New(ref.Info)
r.NoError(err)
costello.OpenTest(t, pkg)
}