VictoriaMetrics/app/vmalert/config
Aliaksandr Valialkin 43fc1183b9
app/vmalert: switch from table-driven tests to f-tests
This makes test code more clear and reduces the number of code lines by 500.
This also simplifies debugging tests. See https://itnext.io/f-tests-as-a-replacement-for-table-driven-tests-in-go-8814a8b19e9e

While at it, consistently use t.Fatal* instead of t.Error* across tests, since t.Error*
requires more boilerplate code, which can result in additional bugs inside tests.
While t.Error* allows writing logging errors for the same, this doesn't simplify fixing
broken tests most of the time.

This is a follow-up for a9525da8a4
2024-07-12 22:45:50 +02:00
..
fslocal app/vmalert: add support of recursive path globs for rules and templates (#4148) 2023-05-08 16:22:30 -07:00
fsurl all: consistently use %w instead of %s in when error is passed to fmt.Errorf() 2023-10-26 09:44:40 +02:00
log app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00
testdata feat: include cluster info in alert CPUThrottlingHigh (#5956) 2024-03-17 20:46:15 +02:00
config.go all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:23:26 +02:00
config_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00
fs.go vmalert-tool: support file path with hierarchical patterns and regexp… (#6501) 2024-06-18 14:17:42 +02:00
fs_test.go vmalert: support object storage for rules (#519) 2023-02-09 19:10:34 -08:00
types.go all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:23:26 +02:00