2019-10-30 20:05:35 +03:00
|
|
|
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) {
|
2019-10-30 20:05:35 +03:00
|
|
|
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:39:05 +03:00
|
|
|
costello.StatTest(t, pkg)
|
2019-10-30 20:05:35 +03:00
|
|
|
}
|