newTestLabelLimiter returns a PerLabelLimiter with limiting disabled (maxCardinality=0).
()
| 12 | |
| 13 | // newTestLabelLimiter returns a PerLabelLimiter with limiting disabled (maxCardinality=0). |
| 14 | func newTestLabelLimiter() *PerLabelLimiter { |
| 15 | return NewPerLabelLimiter("test", func(string) uint64 { return 0 }, 0) |
| 16 | } |
| 17 | |
| 18 | // TestRegistry is a simple implementation of Registry intended for tests. It is not concurrent-safe. |
| 19 | type TestRegistry struct { |