MCPcopy Create free account
hub / github.com/openclaw/gogcli / newTestProcessor

Function newTestProcessor

internal/gmailwatch/processor_test.go:310–325  ·  view source on GitHub ↗
(repository *Repository, source Source, now time.Time)

Source from the content-addressed store, hash-verified

308}
309
310func 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}

Calls

no outgoing calls

Tested by

no test coverage detected