pkger/fs/memfs/memfs_test.go

28 lines
407 B
Go

package memfs
import (
"testing"
"github.com/markbates/pkger/fs/fstest"
"github.com/markbates/pkger/here"
"github.com/stretchr/testify/require"
)
func Test_FS(t *testing.T) {
r := require.New(t)
info, err := here.Current()
r.NoError(err)
r.NotZero(info)
myfs, err := New(info)
r.NoError(err)
WithInfo(myfs, info)
suite, err := fstest.NewFileSystem(myfs)
r.NoError(err)
suite.Test(t)
}