MCPcopy Create free account
hub / github.com/driangle/taskmd / mockSource

Struct mockSource

apps/cli/internal/sync/engine_test.go:13–18  ·  view source on GitHub ↗

mockSource implements the Source interface for testing.

Source from the content-addressed store, hash-verified

11
12// mockSource implements the Source interface for testing.
13type mockSource struct {
14 name string
15 tasks []ExternalTask
16 fetchErr error
17 configErr error
18}
19
20func (m *mockSource) Name() string { return m.name }
21func (m *mockSource) ValidateConfig(_ SourceConfig) error { return m.configErr }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected