prometheus/rules
Julius Volz 00a2a93a05 Add regression tests for metrics mutations in AST.
It turned out in the end, that only drop_common_metrics() produced any
erroneous output in the old system. The second expression in the test
("sum(testmetric) keeping_extra") already worked in the old code, but
why not keep it in...

The way to test ranged evaluations is a bit clumsy so far, so I want to
build a nicer test framework in the end, where all the test cases can be
specified as text files which specify desired inputs, outputs, query
step widths, etc.

Change-Id: I821859789e69b8232bededf670a1b76e9e8c8ca4
2014-12-12 20:34:55 +01:00
..
ast Add regression tests for metrics mutations in AST. 2014-12-12 20:34:55 +01:00
fixtures
manager Introduce copy-on-write for metrics in AST. 2014-12-12 20:34:55 +01:00
alerting.go Introduce copy-on-write for metrics in AST. 2014-12-12 20:34:55 +01:00
helpers.go
helpers_test.go Introduce copy-on-write for metrics in AST. 2014-12-12 20:34:55 +01:00
lexer.l
lexer.l.go
load.go
Makefile
parser.y
parser.y.go
recording.go Introduce copy-on-write for metrics in AST. 2014-12-12 20:34:55 +01:00
rules.go
rules_test.go Add regression tests for metrics mutations in AST. 2014-12-12 20:34:55 +01:00