mockProvider implements cache.MetricsProvider for testing
| 39 | |
| 40 | // mockProvider implements cache.MetricsProvider for testing |
| 41 | type mockProvider struct { |
| 42 | metricsToReturn []string |
| 43 | ttl time.Duration |
| 44 | errorToReturn error |
| 45 | callCount atomic.Int32 |
| 46 | } |
| 47 | |
| 48 | func (m *mockProvider) GetMetrics(ctx context.Context, datasourceUID, datasourceURL string, |
| 49 | client *http.Client) (*cache.MetricsResult, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected