30 lines
604 B
Go
30 lines
604 B
Go
|
package adapter_test
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"gitea.dwysokinski.me/twhelp/corev3/internal/bun/buntest"
|
||
|
)
|
||
|
|
||
|
func TestPlayerSnapshotBunRepository_Postgres(t *testing.T) {
|
||
|
t.Parallel()
|
||
|
|
||
|
if testing.Short() {
|
||
|
t.Skip("skipping long-running test")
|
||
|
}
|
||
|
|
||
|
testPlayerSnapshotRepository(t, func(t *testing.T) repositories {
|
||
|
t.Helper()
|
||
|
return newBunDBRepositories(t, postgres.NewDB(t))
|
||
|
})
|
||
|
}
|
||
|
|
||
|
func TestPlayerSnapshotBunRepository_SQLite(t *testing.T) {
|
||
|
t.Parallel()
|
||
|
|
||
|
testPlayerSnapshotRepository(t, func(t *testing.T) repositories {
|
||
|
t.Helper()
|
||
|
return newBunDBRepositories(t, buntest.NewSQLiteDB(t))
|
||
|
})
|
||
|
}
|