maddy/internal/storage/blob/fs/fs_test.go
2025-09-05 16:54:41 +02:00

20 lines
406 B
Go

package fs
import (
"os"
"testing"
"github.com/foxcpp/maddy/framework/module"
"github.com/foxcpp/maddy/internal/storage/blob"
"github.com/foxcpp/maddy/internal/testutils"
)
func TestFS(t *testing.T) {
blob.TestStore(t, func() module.BlobStore {
dir := testutils.Dir(t)
return &FSStore{instName: "test", root: dir}
}, func(store module.BlobStore) {
os.RemoveAll(store.(*FSStore).root)
})
}