// Code generated by MockGen. DO NOT EDIT. // Source: ./service.go // // Generated by this command: // // mockgen -source ./service.go -destination ./mocks/service.go // // Package mock_human is a generated GoMock package. package mock_human import ( context "context" reflect "reflect" time "time" human "github.com/flowy-live/llink/internal/human" gomock "go.uber.org/mock/gomock" ) // MockService is a mock of Service interface. type MockService struct { ctrl *gomock.Controller recorder *MockServiceMockRecorder isgomock struct{} } // MockServiceMockRecorder is the mock recorder for MockService. type MockServiceMockRecorder struct { mock *MockService } // NewMockService creates a new mock instance. func NewMockService(ctrl *gomock.Controller) *MockService { mock := &MockService{ctrl: ctrl} mock.recorder = &MockServiceMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. func (m *MockService) EXPECT() *MockServiceMockRecorder { return m.recorder } // GetByEmail mocks base method. func (m *MockService) GetByEmail(ctx context.Context, email string) (*human.Human, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetByEmail", ctx, email) ret0, _ := ret[0].(*human.Human) ret1, _ := ret[1].(error) return ret0, ret1 } // GetByEmail indicates an expected call of GetByEmail. func (mr *MockServiceMockRecorder) GetByEmail(ctx, email any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByEmail", reflect.TypeOf((*MockService)(nil).GetByEmail), ctx, email) } // GetByID mocks base method. func (m *MockService) GetByID(ctx context.Context, id string) (*human.Human, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetByID", ctx, id) ret0, _ := ret[0].(*human.Human) ret1, _ := ret[1].(error) return ret0, ret1 } // GetByID indicates an expected call of GetByID. func (mr *MockServiceMockRecorder) GetByID(ctx, id any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByID", reflect.TypeOf((*MockService)(nil).GetByID), ctx, id) } // GetOrCreateByEmail mocks base method. func (m *MockService) GetOrCreateByEmail(ctx context.Context, email string) (*human.Human, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetOrCreateByEmail", ctx, email) ret0, _ := ret[0].(*human.Human) ret1, _ := ret[1].(error) return ret0, ret1 } // GetOrCreateByEmail indicates an expected call of GetOrCreateByEmail. func (mr *MockServiceMockRecorder) GetOrCreateByEmail(ctx, email any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrCreateByEmail", reflect.TypeOf((*MockService)(nil).GetOrCreateByEmail), ctx, email) } // ListAll mocks base method. func (m *MockService) ListAll(ctx context.Context) ([]*human.Human, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ListAll", ctx) ret0, _ := ret[0].([]*human.Human) ret1, _ := ret[1].(error) return ret0, ret1 } // ListAll indicates an expected call of ListAll. func (mr *MockServiceMockRecorder) ListAll(ctx any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAll", reflect.TypeOf((*MockService)(nil).ListAll), ctx) } // UpdateEmailNotificationsEnabled mocks base method. func (m *MockService) UpdateEmailNotificationsEnabled(ctx context.Context, id string, enabled bool) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateEmailNotificationsEnabled", ctx, id, enabled) ret0, _ := ret[0].(error) return ret0 } // UpdateEmailNotificationsEnabled indicates an expected call of UpdateEmailNotificationsEnabled. func (mr *MockServiceMockRecorder) UpdateEmailNotificationsEnabled(ctx, id, enabled any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateEmailNotificationsEnabled", reflect.TypeOf((*MockService)(nil).UpdateEmailNotificationsEnabled), ctx, id, enabled) } // UpdateLastEmailNotificationSentAt mocks base method. func (m *MockService) UpdateLastEmailNotificationSentAt(ctx context.Context, id string, t time.Time) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateLastEmailNotificationSentAt", ctx, id, t) ret0, _ := ret[0].(error) return ret0 } // UpdateLastEmailNotificationSentAt indicates an expected call of UpdateLastEmailNotificationSentAt. func (mr *MockServiceMockRecorder) UpdateLastEmailNotificationSentAt(ctx, id, t any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateLastEmailNotificationSentAt", reflect.TypeOf((*MockService)(nil).UpdateLastEmailNotificationSentAt), ctx, id, t) }