mockScheduler implements SyncScheduler for tests.
| 24 | |
| 25 | // mockScheduler implements SyncScheduler for tests. |
| 26 | type mockScheduler struct { |
| 27 | scheduled map[string]bool |
| 28 | running bool |
| 29 | statuses []AccountStatus |
| 30 | triggerFn func(email string) error |
| 31 | addedAccts []string // emails added via AddAccount |
| 32 | } |
| 33 | |
| 34 | func newMockScheduler() *mockScheduler { |
| 35 | return &mockScheduler{ |
nothing calls this directly
no outgoing calls
no test coverage detected