(t *testing.T)
| 272 | } |
| 273 | |
| 274 | func TestMetricVecWithCollisions(t *testing.T) { |
| 275 | vec := NewGaugeVec( |
| 276 | GaugeOpts{ |
| 277 | Name: "test", |
| 278 | Help: "helpless", |
| 279 | }, |
| 280 | []string{"l1", "l2"}, |
| 281 | ) |
| 282 | vec.hashAdd = func(h uint64, s string) uint64 { return 1 } |
| 283 | vec.hashAddByte = func(h uint64, b byte) uint64 { return 1 } |
| 284 | testMetricVec(t, vec) |
| 285 | } |
| 286 | |
| 287 | func testMetricVec(t *testing.T, vec *GaugeVec) { |
| 288 | vec.Reset() // Actually test Reset now! |
nothing calls this directly
no test coverage detected