VictoriaMetrics/lib/promscrape/discovery/openstack
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
..
api.go app/vmagent: follow-up for b3b29ba6ac 2024-04-04 01:26:38 +03:00
auth.go lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
auth_test.go lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
hypervisor.go lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
hypervisor_test.go lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
instance.go lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
instance_test.go lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
openstack.go 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