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

Function TestDeletePartialMatchWithConstraints

prometheus/vec_test.go:169–182  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

167}
168
169func TestDeletePartialMatchWithConstraints(t *testing.T) {
170 vec := V2.NewGaugeVec(GaugeVecOpts{
171 GaugeOpts{
172 Name: "test",
173 Help: "helpless",
174 },
175 ConstrainedLabels{
176 {Name: "l1"},
177 {Name: "l2", Constraint: func(s string) string { return "x" + s }},
178 {Name: "l3"},
179 },
180 })
181 testDeletePartialMatch(t, vec)
182}
183
184func testDeletePartialMatch(t *testing.T, baseVec *GaugeVec) {
185 assertNoMetric := func(t *testing.T) {

Callers

nothing calls this directly

Calls 2

testDeletePartialMatchFunction · 0.85
NewGaugeVecMethod · 0.45

Tested by

no test coverage detected