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