2019-09-01 05:45:22 +03:00
|
|
|
package hdfs
|
|
|
|
|
|
|
|
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"
|
|
|
|
)
|
|
|
|
|
|
|
|
func Test_FS(t *testing.T) {
|
|
|
|
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)
|
|
|
|
}
|