mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-25 13:16:40 +00:00
083099a957
* reference logrus' global logger instead of passing and storing a logger reference everywhere * always directly use global logrus logger instead of referencing an instance * test suites should also directly use the global logrus logger * rename gin logging function to clarify that it's middleware * correct comments which erroneously referenced removed logger parameter * setting log level for tests now uses logrus' exported type instead of the string value, to guarantee error isn't possible
12 lines
384 B
Go
12 lines
384 B
Go
package testrig
|
|
|
|
import (
|
|
"github.com/superseriousbusiness/gotosocial/internal/db"
|
|
"github.com/superseriousbusiness/gotosocial/internal/timeline"
|
|
)
|
|
|
|
// NewTestTimelineManager retuts a new timeline.Manager, suitable for testing, using the given db.
|
|
func NewTestTimelineManager(db db.DB) timeline.Manager {
|
|
return timeline.NewManager(db, NewTestTypeConverter(db), NewTestConfig())
|
|
}
|