client_golang/prometheus/testutil
Jack Cassidy 36b9f46811
add: CollectAndFormat to testutil (#1503)
CollectAndFormat is a helper function that returns the formatted metrics
to the caller, allowing them to use it how they want. This is different
to CollectAndCompare where the comparison is done strictly on behalf of
the caller. Often it is more convenient to perform a simple substring
match on the formatted metric.

Signed-off-by: Jack Cassidy <j.cassidy45@gmail.com>
2024-05-09 15:08:21 +00:00
..
diff feat(dependency): replace go-spew package (#1499) 2024-04-22 06:49:49 +00:00
promlint Add LintDuplicateMetric to promlint 2024-03-16 12:12:08 +00:00
lint.go fix assorted oddities found by golangci-lint (#1040) 2022-08-03 06:30:51 +02:00
lint_test.go Improve various comments 2020-04-25 15:59:53 +02:00
testutil.go add: CollectAndFormat to testutil (#1503) 2024-05-09 15:08:21 +00:00
testutil_test.go add: CollectAndFormat to testutil (#1503) 2024-05-09 15:08:21 +00:00