aboutsummaryrefslogtreecommitdiff
path: root/pkg/memstore/memstore_test.go
blob: 0cadc4afb276c99285ae3822fb6d707272e4af9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package memstore

import (
	"testing"

	"github.com/pg9182/atlas/pkg/api/api0/api0testutil"
)

func TestAccountStore(t *testing.T) {
	api0testutil.TestAccountStorage(t, NewAccountStore())
}

func TestPdataStore(t *testing.T) {
	t.Run("Default", func(t *testing.T) {
		api0testutil.TestPdataStorage(t, NewPdataStore(false))
	})
	t.Run("Compressed", func(t *testing.T) {
		api0testutil.TestPdataStorage(t, NewPdataStore(true))
	})
}