func TestRecordDecodeError(t *testing.T) { … } func TestRecordEtcdRequest(t *testing.T) { … } func TestStorageSizeCollector(t *testing.T) { … } func TestUpdateObjectCount(t *testing.T) { … } type fakeEtcdMonitor … func (m fakeEtcdMonitor) Monitor(_ context.Context) (StorageMetrics, error) { … } func (m fakeEtcdMonitor) Close() error { … }