mirror of
https://github.com/prometheus/prometheus.git
synced 2026-02-28 04:10:38 -05:00
Add unit tests for Web API's query endpoint (GET/POST). Also modify the endpoint handler to use context.WithDeadline instead of context.WithTimeout, so the deadline is deterministic for the tests. Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> |
||
|---|---|---|
| .. | ||
| api.go | ||
| api_test.go | ||
| codec.go | ||
| codec_test.go | ||
| errors_test.go | ||
| json_codec.go | ||
| json_codec_test.go | ||