pkger/pkging/mem/stat_test.go

21 lines
307 B
Go
Raw Normal View History

package mem
import (
"testing"
"github.com/markbates/pkger/pkging/costello"
"github.com/stretchr/testify/require"
)
2019-10-30 23:39:05 +03:00
func Test_Pkger_Stat(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.StatTest(t, ref, pkg)
}