MCPcopy
hub / github.com/prometheus/client_golang / TestSummaryVecWithQuantileLabel

Function TestSummaryVecWithQuantileLabel

prometheus/summary_test.go:95–105  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

93}
94
95func TestSummaryVecWithQuantileLabel(t *testing.T) {
96 defer func() {
97 if r := recover(); r == nil {
98 t.Error("Attempt to create SummaryVec with 'quantile' label did not panic.")
99 }
100 }()
101 _ = NewSummaryVec(SummaryOpts{
102 Name: "test_summary",
103 Help: "less",
104 }, []string{"quantile"})
105}
106
107func benchmarkSummaryObserve(w int, b *testing.B) {
108 b.StopTimer()

Callers

nothing calls this directly

Calls 2

NewSummaryVecFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected