pkger/pkging/stdos/mkdirall_test.go

23 lines
349 B
Go
Raw Normal View History

package stdos
import (
2019-11-01 00:20:15 +03:00
"os"
"testing"
2019-11-01 23:08:10 +03:00
"github.com/markbates/pkger/pkging/pkgtest"
"github.com/stretchr/testify/require"
)
func Test_Pkger_MkdirAll(t *testing.T) {
r := require.New(t)
2019-11-01 23:08:10 +03:00
ref, err := pkgtest.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)
2019-11-01 23:08:10 +03:00
pkgtest.MkdirAllTest(t, ref, pkg)
}