Move a lot of stuff + tidy stuff

This commit is contained in:
tsmethurst 2021-05-30 13:10:16 +02:00
commit 0c4b63d9fa
69 changed files with 342 additions and 719 deletions

View file

@ -19,13 +19,13 @@
package testrig
import (
"github.com/superseriousbusiness/gotosocial/internal/blob"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/media"
"github.com/superseriousbusiness/gotosocial/internal/storage"
)
// NewTestMediaHandler returns a media handler with the default test config, the default test logger,
// and the given db and storage.
func NewTestMediaHandler(db db.DB, storage storage.Storage) media.Handler {
func NewTestMediaHandler(db db.DB, storage blob.Storage) media.Handler {
return media.New(NewTestConfig(), db, storage, NewTestLog())
}