Helper functions to create stub client functions for error testing stubExporters returns a discard-logger + noop-metrics Exporters for tests.
()
| 76 | |
| 77 | // stubExporters returns a discard-logger + noop-metrics Exporters for tests. |
| 78 | func stubExporters() observability.Exporters { |
| 79 | obs, _ := observability.NewExporters(slog.New(slog.DiscardHandler), metrics.NewNoopMetrics()) |
| 80 | return obs |
| 81 | } |
| 82 | |
| 83 | func stubClientFnFromHTTP(t *testing.T, httpClient *http.Client) func(context.Context) (*gogithub.Client, error) { |
| 84 | t.Helper() |
no test coverage detected