pkger/pkging/stdos/create_test.go

23 lines
348 B
Go
Raw Normal View History

package stdos
import (
2019-11-01 00:20:15 +03:00
"os"
"testing"
"github.com/markbates/pkger/pkging/costello"
"github.com/stretchr/testify/require"
)
func Test_Pkger_Create(t *testing.T) {
r := require.New(t)
ref, err := costello.NewRef()
r.NoError(err)
2019-11-01 00:20:15 +03:00
defer os.RemoveAll(ref.Dir)
2019-11-01 00:20:15 +03:00
pkg, err := New(ref.Info)
r.NoError(err)
costello.CreateTest(t, ref, pkg)
}