FakeInt64Metric implements Int64MetricInterface. FakeInt64Metric can be used as a test double for Int64MetricInterface, allowing inspection of the metrics.
| 31 | // FakeInt64Metric can be used as a test double for Int64MetricInterface, allowing |
| 32 | // inspection of the metrics. |
| 33 | type FakeInt64Metric struct { |
| 34 | name string |
| 35 | aggregation Aggregation |
| 36 | allowedTags map[string]bool |
| 37 | metrics []Int64MetricRepresentation |
| 38 | } |
| 39 | |
| 40 | func NewFakeInt64Metric(name string, aggregation Aggregation, tagNames []string) *FakeInt64Metric { |
| 41 | if name == "" { |
nothing calls this directly
no outgoing calls
no test coverage detected