summaryrefslogtreecommitdiff
path: root/testrig/timelinemanager.go
blob: 4b316a52e2fbaa22cf40697ebb34db7d0f1adfb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
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))
}