mirror of https://github.com/markbates/pkger.git
23 lines
347 B
Go
23 lines
347 B
Go
package mem
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/markbates/pkger/pkging/pkgtest"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func Test_Pkger_MkdirAll(t *testing.T) {
|
|
r := require.New(t)
|
|
|
|
ref, err := pkgtest.NewRef()
|
|
r.NoError(err)
|
|
defer os.RemoveAll(ref.Dir)
|
|
|
|
pkg, err := New(ref.Info)
|
|
r.NoError(err)
|
|
|
|
pkgtest.MkdirAllTest(t, ref, pkg)
|
|
}
|