prometheus/promql
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
..
fuzz-data textparse: Add fuzzing and fix bug caught 2017-07-07 11:12:17 +02:00
parser Unit tests for native histograms (#12668) 2023-08-25 23:35:42 +02:00
testdata Unit tests for native histograms (#12668) 2023-08-25 23:35:42 +02:00
bench_test.go Address PR feedback: clarify comment 2023-08-02 11:48:34 +10:00
engine_test.go Unit tests for native histograms (#12668) 2023-08-25 23:35:42 +02:00
engine.go Merge pull request #12682 from bboreham/contains-same-label-set 2023-08-14 14:12:47 +01:00
functions_test.go Merge branch 'main' into linter/nilerr 2023-04-19 19:56:39 +02:00
functions.go Add histogram_stdvar and histogram_stddev functions (#12614) 2023-08-24 21:02:14 +02:00
fuzz_test.go error for invalid media type should not be completely swallowed (#10186) 2022-02-08 10:57:56 +01:00
fuzz.go textparse/scrape: Add option to scrape both classic and native histograms 2023-05-13 01:32:25 +02:00
promql_test.go promql: allow tests to be imported (#12050) 2023-08-18 20:48:59 +02:00
quantile.go histograms: Improve comment 2023-07-12 14:52:49 +02:00
query_logger_test.go add Close for ActiveQueryTracker to close the file. 2023-04-14 14:43:23 +08:00
query_logger.go add Close for ActiveQueryTracker to close the file. 2023-04-14 14:43:23 +08:00
test_test.go promql: Separate Point into FPoint and HPoint 2023-04-13 19:25:16 +02:00
test.go Unit tests for native histograms (#12668) 2023-08-25 23:35:42 +02:00
value_test.go Shortcut ContainsSameLabelset() (#11000) 2022-07-13 15:18:10 +05:30
value.go remove repetitive words (#12556) 2023-07-13 15:53:40 +02:00