VictoriaMetrics/lib/promscrape/discovery
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
..
azure all: replace old https://docs.victoriametrics.com/sd_configs.html url with the new one - https://docs.victoriametrics.com/sd_configs/ 2024-04-18 02:28:26 +02:00
consul all: replace old https://docs.victoriametrics.com/sd_configs.html url with the new one - https://docs.victoriametrics.com/sd_configs/ 2024-04-18 02:28:26 +02:00
consulagent all: replace old https://docs.victoriametrics.com/sd_configs.html url with the new one - https://docs.victoriametrics.com/sd_configs/ 2024-04-18 02:28:26 +02:00
digitalocean lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
dns all: replace old https://docs.victoriametrics.com/sd_configs.html url with the new one - https://docs.victoriametrics.com/sd_configs/ 2024-04-18 02:28:26 +02:00
docker lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
dockerswarm lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
ec2 all: replace old https://docs.victoriametrics.com/sd_configs.html url with the new one - https://docs.victoriametrics.com/sd_configs/ 2024-04-18 02:28:26 +02:00
eureka lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
gce all: replace old https://docs.victoriametrics.com/sd_configs.html url with the new one - https://docs.victoriametrics.com/sd_configs/ 2024-04-18 02:28:26 +02:00
hetzner all: replace old https://docs.victoriametrics.com/sd_configs.html url with the new one - https://docs.victoriametrics.com/sd_configs/ 2024-04-18 02:28:26 +02:00
http lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
kubernetes lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
kuma lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
nomad lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
openstack lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
vultr lib/promscrape/discovery/vultr: follow-up after 17e3d019d2 2024-07-05 17:40:39 +02:00
yandexcloud lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00