prometheus/model/labels
Bryan Boreham 7a48a266b6
labels: respect Set after Del in Builder (#12322)
* labels: respect Set after Del in Builder

The implementations are not symmetric between `Set()` and `Del()`, so
we must be careful. Add tests for this, both in labels and in relabel
where the issue was reported.

Also make the slice implementation consistent re `slices.Contains`.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-05-03 11:59:27 +01:00
..
labels_string.go labels: respect Set after Del in Builder (#12322) 2023-05-03 11:59:27 +01:00
labels_test.go labels: respect Set after Del in Builder (#12322) 2023-05-03 11:59:27 +01:00
labels.go labels: respect Set after Del in Builder (#12322) 2023-05-03 11:59:27 +01:00
matcher_test.go
matcher.go
regexp_test.go
regexp.go
test_utils.go labels: use ScratchBuilder in ReadLabels 2022-12-19 15:22:09 +00:00