VictoriaMetrics/lib/promscrape
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
..
discovery lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
discoveryutils lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
testdata lib/promscrape: disable support for service discovery and metrics scrape via http2 2023-07-06 16:04:31 -07:00
client.go Revert "Exemplar support (#5982)" 2024-07-03 16:09:18 +02:00
config_test.go app/vmagent: add max_scrape_size to scrape config (#6434) 2024-06-20 14:00:22 +02:00
config_timing_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
config.go lib/promscrape/discovery/vultr: follow-up after 17e3d019d2 2024-07-05 17:40:39 +02:00
relabel_debug.go app/vmselect: small cleanup after 4f3f9950d0 2023-05-09 22:45:02 -07:00
scraper.go feature: [vmagent] Add service discovery support for Vultr (#6068) 2024-05-10 14:28:51 +02:00
scrapework_test.go lib/promscrape: use prompbmarshal.MustParsePromMetrics function at parseData() test function 2024-07-03 16:10:37 +02:00
scrapework_timing_test.go all: fix golangci-lint(revive) warnings after 0c0ed61ce7 2024-04-03 03:00:45 +03:00
scrapework.go Revert "Exemplar support (#5982)" 2024-07-03 16:09:18 +02:00
targetstatus.go app/vmagent: add max_scrape_size to scrape config (#6434) 2024-06-20 14:00:22 +02:00
targetstatus.qtpl app/vmagent: add max_scrape_size to scrape config (#6434) 2024-06-20 14:00:22 +02:00
targetstatus.qtpl.go app/vmagent: add max_scrape_size to scrape config (#6434) 2024-06-20 14:00:22 +02:00