2021-12-03 22:51:48 +00:00
|
|
|
package store_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"gitea.benny.dog/torjus/ezshare/store"
|
|
|
|
)
|
|
|
|
|
2021-12-05 00:00:32 +00:00
|
|
|
func TestMemoryFileStore(t *testing.T) {
|
|
|
|
s := store.NewMemoryStore()
|
2021-12-03 22:51:48 +00:00
|
|
|
doFileStoreTest(s, t)
|
|
|
|
}
|
2021-12-05 00:00:32 +00:00
|
|
|
func TestMemoryCertificateStore(t *testing.T) {
|
|
|
|
s := store.NewMemoryStore()
|
|
|
|
doCertificateStoreTest(s, t)
|
|
|
|
}
|
2021-12-05 10:08:09 +00:00
|
|
|
|
|
|
|
func TestMemoryUserStore(t *testing.T) {
|
|
|
|
s := store.NewMemoryStore()
|
|
|
|
doUserStoreTests(s, t)
|
|
|
|
}
|