MCPcopy
hub / github.com/prometheus/prometheus / assertAPIResponse

Function assertAPIResponse

web/api/v1/api_test.go:3900–3906  ·  view source on GitHub ↗
(t *testing.T, got, exp any)

Source from the content-addressed store, hash-verified

3898}
3899
3900func assertAPIResponse(t *testing.T, got, exp any) {
3901 t.Helper()
3902
3903 testutil.RequireEqualWithOptions(t, exp, got, []cmp.Option{
3904 cmpopts.IgnoreUnexported(regexp.Regexp{}),
3905 })
3906}
3907
3908func assertAPIResponseLength(t *testing.T, got any, expLen int) {
3909 t.Helper()

Callers 3

TestQueryExemplarsFunction · 0.85
TestLabelNamesFunction · 0.85
testEndpointsFunction · 0.85

Calls 1

RequireEqualWithOptionsFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…