func (m *MockWriter) Flush() error {
	ret := m.ctrl.Call(m, "Flush")
	ret0, _ := ret[0].(error)
	return ret0
}
Flush mocks base method
package writer
import (
	"reflect"
	"github.com/m3db/m3metrics/metric/aggregated"
	"github.com/golang/mock/gomock"
)
type MockWriter struct {
	ctrl     *gomock.Controller
	recorder *MockWriterMockRecorder
}
type MockWriterMockRecorder struct {
	mock *MockWriter
}
func NewMockWriter(ctrl *gomock.Controller) *MockWriter {
	mock := &MockWriter{ctrl: ctrl}
	mock.recorder = &MockWriterMockRecorder{mock}
	return mock
}
func (m *MockWriter) EXPECT() *MockWriterMockRecorder {
	return m.recorder
}
func (m *MockWriter) Close() error {
	ret := m.ctrl.Call(m, "Close")
	ret0, _ := ret[0].(error)
	return ret0
}
func (mr *MockWriterMockRecorder) Close() *gomock.Call {
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockWriter)(nil).Close))
}