prometheus/model/labels
Oleg Zaytsev c8bce5d8c5
When cleaning up the only element, make a nop.
We can't remove the only Sub from regexp, since the contract for some
operations says that there's at least one Sub, like OpStar or OpPlus.

In order to convert a single-sub element into a no-op, we change the
operation to OpEmptyString.

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
2022-05-17 17:49:19 +02:00
..
labels.go Compare equality of label.Label structs directly (#10427) 2022-03-15 00:30:04 +01:00
labels_test.go Compare equality of label.Label structs directly (#10427) 2022-03-15 00:30:04 +01:00
matcher.go Merge remote-tracking branch 'upstream/main' into merge-upstream 2021-11-18 15:48:40 +01:00
matcher_test.go When cleaning up the only element, make a nop. 2022-05-17 17:49:19 +02:00
regexp.go When cleaning up the only element, make a nop. 2022-05-17 17:49:19 +02:00
regexp_test.go Necessary changes to make the merge work 2022-04-13 14:45:43 +02:00
test_utils.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00