client_golang/prometheus/desc_test.go

18 lines
268 B
Go
Raw Normal View History

2017-08-20 00:31:56 +03:00
package prometheus
import (
"testing"
)
func TestNewDescInvalidLabelValues(t *testing.T) {
desc := NewDesc(
"sample_label",
"sample label",
nil,
Labels{"a": "\xFF"},
)
if desc.err == nil {
t.Errorf("NewDesc: expected error because: %s", desc.err)
}
}