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