MCPcopy Create free account
hub / github.com/prometheus/common / TestPrometheusUserAgent

Function TestPrometheusUserAgent

version/info_test.go:22–24  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

20)
21
22func TestPrometheusUserAgent(t *testing.T) {
23 require.Equal(t, "Prometheus/"+Version, PrometheusUserAgent())
24}
25
26func TestComponentUserAgent(t *testing.T) {
27 require.Equal(t, "Component/"+Version, ComponentUserAgent("Component"))

Callers

nothing calls this directly

Calls 2

PrometheusUserAgentFunction · 0.85
EqualMethod · 0.45

Tested by

no test coverage detected