ezshare/store/filesystem_test.go

23 lines
363 B
Go
Raw Normal View History

2021-12-03 22:51:48 +00:00
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)
}