mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-11-03 18:02:26 -06:00 
			
		
		
		
	
		
			
	
	
		
			12 lines
		
	
	
	
		
			398 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			12 lines
		
	
	
	
		
			398 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(), NewTestLog())
							 | 
						||
| 
								 | 
							
								}
							 |