(t *testing.T)
| 42 | } |
| 43 | |
| 44 | func TestNewDescWithNilLabelValues_String(t *testing.T) { |
| 45 | desc := NewDesc( |
| 46 | "sample_label", |
| 47 | "sample label", |
| 48 | nil, |
| 49 | nil, |
| 50 | ) |
| 51 | if desc.String() != `Desc{fqName: "sample_label", help: "sample label", constLabels: {}, variableLabels: {}}` { |
| 52 | t.Errorf("String: unexpected output: %s", desc.String()) |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | func TestNewInvalidDesc_String(t *testing.T) { |
| 57 | desc := NewInvalidDesc( |