MCPcopy
hub / github.com/prometheus/client_golang / mockTransactionGatherer

Struct mockTransactionGatherer

prometheus/promhttp/http_test.go:71–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71type mockTransactionGatherer struct {
72 g prometheus.Gatherer
73 gatherInvoked int
74 doneInvoked int
75}
76
77func (g *mockTransactionGatherer) Gather() (_ []*dto.MetricFamily, done func(), err error) {
78 g.gatherInvoked++

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected