(repository *Repository, source Source, now time.Time)
| 308 | } |
| 309 | |
| 310 | func newTestProcessor(repository *Repository, source Source, now time.Time) *Processor { |
| 311 | return &Processor{ |
| 312 | Config: ProcessorConfig{ |
| 313 | Account: "a@example.com", |
| 314 | HistoryMax: 100, |
| 315 | ResyncMax: 10, |
| 316 | }, |
| 317 | Repository: repository, |
| 318 | NewSource: func(context.Context) (Source, error) { |
| 319 | return source, nil |
| 320 | }, |
| 321 | Now: func() time.Time { |
| 322 | return now |
| 323 | }, |
| 324 | } |
| 325 | } |
no outgoing calls
no test coverage detected