aboutsummaryrefslogtreecommitdiff
path: root/pkg/memstore/memstore_test.go
blob: d7a1eb21e5d55040899d8721b046429f04b1ce70 (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/r2northstar/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))
	})
}