(actual, requested uint64)
| 61 | } |
| 62 | |
| 63 | func (m *MockStatsProvider) SetStats(actual, requested uint64) { |
| 64 | m.mu.Lock() |
| 65 | defer m.mu.Unlock() |
| 66 | m.actualRoundTrips = actual |
| 67 | m.requestedRoundTrips = requested |
| 68 | } |
| 69 | |
| 70 | func TestPublish(t *testing.T) { |
| 71 | ctr := prometheus.NewCounter(prometheus.CounterOpts{Name: test.RandomString()}) |