type fakeMetrics … func (f *fakeMetrics) ObserveRatchetingTime(d time.Duration) { … } func (f *fakeMetrics) Reset() []metrics.Registerable { … } type resettable … func TestMetrics(t *testing.T) { … }
type fakeMetrics … func (f *fakeMetrics) ObserveRatchetingTime(d time.Duration) { … } func (f *fakeMetrics) Reset() []metrics.Registerable { … } type resettable … func TestMetrics(t *testing.T) { … }