2021-12-03 22:51:48 +00:00
|
|
|
package store_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2022-01-13 17:40:15 +00:00
|
|
|
"git.t-juice.club/torjus/ezshare/store"
|
2021-12-03 22:51:48 +00:00
|
|
|
)
|
|
|
|
|
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)
|
|
|
|
}
|
2021-12-08 04:42:25 +00:00
|
|
|
func TestMemoryBinaryStore(t *testing.T) {
|
|
|
|
s := store.NewMemoryStore()
|
|
|
|
doBinaryStoreTests(s, t)
|
|
|
|
}
|