2019-10-30 20:05:35 +03:00
|
|
|
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()
|
2019-10-30 20:05:35 +03:00
|
|
|
r.NoError(err)
|
|
|
|
|
2019-10-30 23:39:05 +03:00
|
|
|
pkg, err := New(ref.Info)
|
2019-10-30 20:05:35 +03:00
|
|
|
r.NoError(err)
|
|
|
|
|
2019-10-30 23:56:22 +03:00
|
|
|
costello.OpenTest(t, ref, pkg)
|
2019-10-30 20:05:35 +03:00
|
|
|
}
|