MCPcopy
hub / github.com/docker/docker-agent / failingReranker

Struct failingReranker

pkg/rag/manager_rerank_test.go:19–22  ·  view source on GitHub ↗

failingReranker counts calls and always fails with a fixed error.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected