failingReranker counts calls and always fails with a fixed error.
| 17 | |
| 18 | // failingReranker counts calls and always fails with a fixed error. |
| 19 | type failingReranker struct { |
| 20 | calls atomic.Int64 |
| 21 | err error |
| 22 | } |
| 23 | |
| 24 | func (r *failingReranker) Rerank(context.Context, string, []database.SearchResult) ([]database.SearchResult, error) { |
| 25 | r.calls.Add(1) |
nothing calls this directly
no outgoing calls
no test coverage detected