VictoriaMetrics/lib/promscrape/discoveryutils
Aliaksandr Valialkin a9525da8a4
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:40:50 +02:00
..
client_test.go lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:40:50 +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:54:39 +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:14:00 +02:00
utils_test.go Makefile: update golangci-lint from v1.51.2 to v1.54.2 2023-09-01 10:16:42 +02:00
utils_timing_test.go lib/promscrape: optimize discoveryutils.SanitizeLabelName() 2022-08-27 00:17:45 +03:00
utils.go added new consulagent service discovery (#3953) (#4217) 2023-05-04 11:36:21 +02:00