mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-02 20:12:24 -06:00
25 lines
518 B
Go
25 lines
518 B
Go
|
|
package testrig
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/sirupsen/logrus"
|
||
|
|
"github.com/superseriousbusiness/gotosocial/internal/config"
|
||
|
|
"github.com/superseriousbusiness/gotosocial/internal/storage"
|
||
|
|
)
|
||
|
|
|
||
|
|
// NewTestStorage returns a new in memory storage with the given config
|
||
|
|
func NewTestStorage(c *config.Config, log *logrus.Logger) storage.Storage {
|
||
|
|
s, err := storage.NewInMem(c, log)
|
||
|
|
if err != nil {
|
||
|
|
panic(err)
|
||
|
|
}
|
||
|
|
return s
|
||
|
|
}
|
||
|
|
|
||
|
|
func StandardStorageSetup(s storage.Storage) {
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
func StandardStorageTeardown(s storage.Storage) {
|
||
|
|
|
||
|
|
}
|