VictoriaMetrics/app/vmalert/config
Aliaksandr Valialkin 0078399788
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:41:11 +02:00
..
fslocal app/vmalert: add support of recursive path globs for rules and templates (#4148) 2023-04-26 19:20:22 +02:00
fsurl all: consistently use %w instead of %s in when error is passed to fmt.Errorf() 2023-10-25 21:24:03 +02:00
log app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:41:11 +02:00
testdata feat: include cluster info in alert CPUThrottlingHigh (#5956) 2024-03-12 14:51:32 +04:00
config.go all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
config_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:41:11 +02:00
fs.go vmalert-tool: support file path with hierarchical patterns and regexp… (#6501) 2024-06-18 14:14:30 +02:00
fs_test.go vmalert: support object storage for rules (#519) 2023-02-09 18:50:48 -08:00
types.go all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00