ezshare/store/filesystem_test.go
2021-12-03 23:51:48 +01:00

23 lines
363 B
Go

package store_test
import (
"io/ioutil"
"os"
"testing"
"gitea.benny.dog/torjus/ezshare/store"
)
func TestFileStore(t *testing.T) {
dir, err := ioutil.TempDir(os.TempDir(), "ezshare-test")
if err != nil {
t.Fatalf("unable to create temp-dir")
}
defer func() {
_ = os.RemoveAll(dir)
}()
s := store.NewFileSystemStore(dir)
doFileStoreTest(s, t)
}