|
|
@ -379,7 +379,7 @@ func TestVarzHandler(t *testing.T) {
|
|
|
|
"func_float64_untyped",
|
|
|
|
"func_float64_untyped",
|
|
|
|
"x",
|
|
|
|
"x",
|
|
|
|
expvar.Func(func() interface{} { return float64(1.2) }),
|
|
|
|
expvar.Func(func() interface{} { return float64(1.2) }),
|
|
|
|
"# skipping expvar \"x\" (Go type expvar.Func returning float64) with undeclared Prometheus type\n",
|
|
|
|
"x 1.2\n",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"metrics_label_map",
|
|
|
|
"metrics_label_map",
|
|
|
@ -461,6 +461,12 @@ foo_AUint16 65535
|
|
|
|
expvarAdapter{(*SomeStats)(nil)},
|
|
|
|
expvarAdapter{(*SomeStats)(nil)},
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"func_returning_int",
|
|
|
|
|
|
|
|
"num_goroutines",
|
|
|
|
|
|
|
|
expvar.Func(func() interface{} { return 123 }),
|
|
|
|
|
|
|
|
"num_goroutines 123\n",
|
|
|
|
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for _, tt := range tests {
|
|
|
|
for _, tt := range tests {
|
|
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
|
|