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-01 05:45:22 +03:00
|
|
|
suite, err := fstest.NewFileSystem(myfs)
|
|
|
|
r.NoError(err)
|
|
|
|
|
|
|
|
suite.Test(t)
|
|
|
|
}
|