maddy

Fork https://github.com/foxcpp/maddy

git clone git://git.lin.moe/go/maddy.git

 1package fs
 2
 3import (
 4	"os"
 5	"testing"
 6
 7	"github.com/foxcpp/maddy/framework/module"
 8	"github.com/foxcpp/maddy/internal/storage/blob"
 9	"github.com/foxcpp/maddy/internal/testutils"
10)
11
12func TestFS(t *testing.T) {
13	blob.TestStore(t, func() module.BlobStore {
14		dir := testutils.Dir(t)
15		return &FSStore{instName: "test", root: dir}
16	}, func(store module.BlobStore) {
17		os.RemoveAll(store.(*FSStore).root)
18	})
19}