mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
22 lines
457 B
Go
22 lines
457 B
Go
package datastore
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/kolide/kolide-ose/server/config"
|
|
"github.com/kolide/kolide-ose/server/datastore/inmem"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestInmem(t *testing.T) {
|
|
|
|
for _, f := range testFunctions {
|
|
t.Run(functionName(f), func(t *testing.T) {
|
|
ds, err := inmem.New(config.TestConfig())
|
|
require.Nil(t, err)
|
|
defer func() { require.Nil(t, ds.Drop()) }()
|
|
require.Nil(t, err)
|
|
f(t, ds)
|
|
})
|
|
}
|
|
}
|