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

Function TestDeleteLabelValuesWithConstraints

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

Source from the content-addressed store, hash-verified

115}
116
117func 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
131func testDeleteLabelValues(t *testing.T, vec *GaugeVec) {
132 if got, want := vec.DeleteLabelValues("v1", "v2"), false; got != want {

Callers

nothing calls this directly

Calls 2

testDeleteLabelValuesFunction · 0.85
NewGaugeVecMethod · 0.45

Tested by

no test coverage detected