TestRegistry is a simple implementation of Registry intended for tests. It is not concurrent-safe.
| 17 | |
| 18 | // TestRegistry is a simple implementation of Registry intended for tests. It is not concurrent-safe. |
| 19 | type TestRegistry struct { |
| 20 | // "metric{labels}" -> value |
| 21 | metrics map[string]float64 |
| 22 | } |
| 23 | |
| 24 | var _ Registry = (*TestRegistry)(nil) |
| 25 |
nothing calls this directly
no outgoing calls
no test coverage detected