2019-09-02 00:52:06 +03:00
|
|
|
package hdwh
|
2019-09-01 05:45:22 +03:00
|
|
|
|
|
|
|
import (
|
2019-09-01 22:59:42 +03:00
|
|
|
"path/filepath"
|
2019-09-01 05:45:22 +03:00
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/markbates/pkger/fs/fstest"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
)
|
|
|
|
|
2019-09-02 00:54:05 +03:00
|
|
|
func Test_Warehouse(t *testing.T) {
|
2019-09-01 05:45:22 +03:00
|
|
|
r := require.New(t)
|
|
|
|
|
|
|
|
myfs, err := New()
|
|
|
|
r.NoError(err)
|
|
|
|
|
2019-09-01 22:59:42 +03:00
|
|
|
myfs.current.Dir = filepath.Join(myfs.current.Dir, ".fstest")
|
|
|
|
myfs.paths.Current = myfs.current
|
|
|
|
|
2019-09-02 00:41:03 +03:00
|
|
|
suite, err := fstest.NewSuite(myfs)
|
2019-09-01 05:45:22 +03:00
|
|
|
r.NoError(err)
|
|
|
|
|
|
|
|
suite.Test(t)
|
|
|
|
}
|