prometheus/promql/parser
Gregor Zeitlinger f01718262a
Unit tests for native histograms (#12668)
promql: Extend testing framework to support native histograms

This includes both the internal testing framework as well as the rules unit test feature of promtool.

This also adds a bunch of basic tests. Many of the code level tests can now be converted to tests within the framework, and more tests can be added easily.

---------

Signed-off-by: Harold Dost <h.dost@criteo.com>
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Signed-off-by: Stephen Lang <stephen.lang@grafana.com>
Co-authored-by: Harold Dost <h.dost@criteo.com>
Co-authored-by: Stephen Lang <stephen.lang@grafana.com>
Co-authored-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
2023-08-25 23:35:42 +02:00
..
ast.go style: Replace else if cascades with switch 2023-04-19 17:22:31 +02:00
functions.go Add histogram_stdvar and histogram_stddev functions (#12614) 2023-08-24 21:02:14 +02:00
generated_parser.y Unit tests for native histograms (#12668) 2023-08-25 23:35:42 +02:00
generated_parser.y.go Unit tests for native histograms (#12668) 2023-08-25 23:35:42 +02:00
lex.go Unit tests for native histograms (#12668) 2023-08-25 23:35:42 +02:00
lex_test.go Unit tests for native histograms (#12668) 2023-08-25 23:35:42 +02:00
parse.go Unit tests for native histograms (#12668) 2023-08-25 23:35:42 +02:00
parse_test.go Unit tests for native histograms (#12668) 2023-08-25 23:35:42 +02:00
prettier.go Adds support for prettifying PromQL expression (#10544) 2022-07-07 18:13:36 +05:30
prettier_rules.md Adds support for prettifying PromQL expression (#10544) 2022-07-07 18:13:36 +05:30
prettier_test.go Prettifier: Add spaces with non-callable keywords (#11005) 2022-07-15 00:09:56 +02:00
printer.go style: Replace else if cascades with switch 2023-04-19 17:22:31 +02:00
printer_test.go Prettifier: Add spaces with non-callable keywords (#11005) 2022-07-15 00:09:56 +02:00
value.go promql: use explicit type declare instead of string. (#7716) 2020-08-02 09:57:38 +01:00