VictoriaMetrics/lib/promscrape/discovery/yandexcloud
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
..
api.go added IMDSv2 for YC SD (#6524) 2024-06-26 18:03:21 +02:00
instance.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00
instance_test.go lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:40:50 +02:00
yandexcloud.go lib/promscrape/discovery/vultr: follow-up after 17e3d019d2 2024-07-05 17:40:03 +02:00