MCPcopy
hub / github.com/kenn-io/msgvault / mockScheduler

Struct mockScheduler

internal/api/server_test.go:26–32  ·  view source on GitHub ↗

mockScheduler implements SyncScheduler for tests.

Source from the content-addressed store, hash-verified

24
25// mockScheduler implements SyncScheduler for tests.
26type 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
34func newMockScheduler() *mockScheduler {
35 return &mockScheduler{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected