VictoriaMetrics/lib/promscrape/discovery/dockerswarm
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 lib/promscrape: disable support for service discovery and metrics scrape via http2 2023-07-06 16:04:31 -07:00
api_test.go lib/promscrape/discovery/dockerswarm: fix query encoding of filters (#3586) 2023-01-05 03:35:18 -08:00
dockerswarm.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
network.go lib/promscrape/discovery/dockerswarm: fix discovery filters being applied to all objects (#3632) 2023-01-11 22:56:40 -08:00
network_test.go lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
nodes.go lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
nodes_test.go lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
services.go lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
services_test.go lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
tasks.go lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
tasks_test.go lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00