prometheus/web
Bryan Boreham 4b9f248e85
unit tests: make all Labels sorted alphabetically (#10532)
"Labels is a sorted set of labels. Order has to be guaranteed upon
instantiation." says the comment, so fix all the tests that break this
rule.

For `BenchmarkLabelValuesWithMatchers()` and
`BenchmarkHeadLabelValuesWithMatchers()` the amount of work done changes
significantly if you put the labels in order, because all series refs
get neatly partitioned by the `tens` label, so I renamed the labels
to maintain the previous behaviour.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2022-05-04 23:41:36 +02:00
..
api/v1 refactor: move from io/ioutil to io and os packages (#10528) 2022-04-27 11:24:36 +02:00
ui enable active search through dropped targets (#10668) 2022-05-04 20:27:56 +02:00
federate.go storage: Consolidate iterator method names (Values -> At) (#9888) 2021-11-29 11:16:40 +01:00
federate_test.go unit tests: make all Labels sorted alphabetically (#10532) 2022-05-04 23:41:36 +02:00
web.go refactor: move from io/ioutil to io and os packages (#10528) 2022-04-27 11:24:36 +02:00
web_test.go refactor: move from io/ioutil to io and os packages (#10528) 2022-04-27 11:24:36 +02:00