(t *testing.T)
| 167 | } |
| 168 | |
| 169 | func 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 | |
| 184 | func testDeletePartialMatch(t *testing.T, baseVec *GaugeVec) { |
| 185 | assertNoMetric := func(t *testing.T) { |
nothing calls this directly
no test coverage detected