mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-08 07:09:31 -06:00
fiddling about
This commit is contained in:
parent
b713ccac9f
commit
9a57dac5a1
17 changed files with 359 additions and 123 deletions
24
testrig/storage.go
Normal file
24
testrig/storage.go
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
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) {
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue