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

Function TestSummaryWithQuantileLabel

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

Source from the content-addressed store, hash-verified

80}
81
82func TestSummaryWithQuantileLabel(t *testing.T) {
83 defer func() {
84 if r := recover(); r == nil {
85 t.Error("Attempt to create Summary with 'quantile' label did not panic.")
86 }
87 }()
88 _ = NewSummary(SummaryOpts{
89 Name: "test_summary",
90 Help: "less",
91 ConstLabels: Labels{"quantile": "test"},
92 })
93}
94
95func TestSummaryVecWithQuantileLabel(t *testing.T) {
96 defer func() {

Callers

nothing calls this directly

Calls 2

NewSummaryFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected