MCPcopy Index your code
hub / github.com/prometheus/prometheus / fakeQuery

Struct fakeQuery

web/api/v1/api_test.go:4984–4987  ·  view source on GitHub ↗

fakeQuery is a fake Query implementation.

Source from the content-addressed store, hash-verified

4982
4983// fakeQuery is a fake Query implementation.
4984type fakeQuery struct {
4985 query string
4986 execCalls []context.Context
4987}
4988
4989func (q *fakeQuery) Exec(ctx context.Context) *promql.Result {
4990 q.execCalls = append(q.execCalls, ctx)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected