(t *testing.T)
| 115 | } |
| 116 | |
| 117 | func TestDeleteLabelValuesWithConstraints(t *testing.T) { |
| 118 | vec := V2.NewGaugeVec(GaugeVecOpts{ |
| 119 | GaugeOpts{ |
| 120 | Name: "test", |
| 121 | Help: "helpless", |
| 122 | }, |
| 123 | ConstrainedLabels{ |
| 124 | {Name: "l1"}, |
| 125 | {Name: "l2", Constraint: func(s string) string { return "x" + s }}, |
| 126 | }, |
| 127 | }) |
| 128 | testDeleteLabelValues(t, vec) |
| 129 | } |
| 130 | |
| 131 | func testDeleteLabelValues(t *testing.T, vec *GaugeVec) { |
| 132 | if got, want := vec.DeleteLabelValues("v1", "v2"), false; got != want { |
nothing calls this directly
no test coverage detected