(t *testing.T)
| 458 | } |
| 459 | |
| 460 | func TestCurryVecWithCollisions(t *testing.T) { |
| 461 | vec := NewCounterVec( |
| 462 | CounterOpts{ |
| 463 | Name: "test", |
| 464 | Help: "helpless", |
| 465 | }, |
| 466 | []string{"one", "two", "three"}, |
| 467 | ) |
| 468 | vec.hashAdd = func(h uint64, s string) uint64 { return 1 } |
| 469 | vec.hashAddByte = func(h uint64, b byte) uint64 { return 1 } |
| 470 | testCurryVec(t, vec) |
| 471 | } |
| 472 | |
| 473 | func TestCurryVecWithConstraints(t *testing.T) { |
| 474 | constraint := func(s string) string { return "x" + s } |
nothing calls this directly
no test coverage detected