VictoriaMetrics/lib/promscrape/discoveryutils
Aliaksandr Valialkin 9edeecabc8
lib: consistently use f-tests instead of table-driven tests
This makes easier to read and debug these tests. This also reduces test lines count by 15% from 3K to 2.5K .
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*, since t.Error* usually leads
to more complicated and fragile tests, while it doesn't bring any practical benefits over t.Fatal*.
2024-07-09 22:39:13 +02:00
..
client_test.go lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
client.go app/vmagent: support for DNS SRV urls at -remoteWrite.url, scrape target urls and service discovery urls 2024-04-17 20:56:23 +02:00
config_map.go lib/promscrape: explicitly stop and cleanup service discovery routines when new config is read from -promscrape.config 2021-03-01 14:15:16 +02:00
utils_test.go Makefile: update golangci-lint from v1.51.2 to v1.54.2 2023-09-01 10:25:49 +02:00
utils_timing_test.go lib/promscrape: optimize discoveryutils.SanitizeLabelName() 2022-08-27 00:18:19 +03:00
utils.go added new consulagent service discovery (#3953) (#4217) 2023-05-08 23:43:59 -07:00