// Code generated by MockGen. DO NOT EDIT. // Source: github.com/zitadel/zitadel/backend/v3/domain (interfaces: SessionRepository) // // Generated by this command: // // mockgen -typed -package domainmock -destination ./mock/session.mock.go . SessionRepository // // Package domainmock is a generated GoMock package. package domainmock import ( context "context" reflect "reflect" time "time" domain "github.com/zitadel/zitadel/backend/v3/domain" database "github.com/zitadel/zitadel/backend/v3/storage/database" gomock "go.uber.org/mock/gomock" ) // MockSessionRepository is a mock of SessionRepository interface. type MockSessionRepository struct { ctrl *gomock.Controller recorder *MockSessionRepositoryMockRecorder isgomock struct{} } // MockSessionRepositoryMockRecorder is the mock recorder for MockSessionRepository. type MockSessionRepositoryMockRecorder struct { mock *MockSessionRepository } // NewMockSessionRepository creates a new mock instance. func NewMockSessionRepository(ctrl *gomock.Controller) *MockSessionRepository { mock := &MockSessionRepository{ctrl: ctrl} mock.recorder = &MockSessionRepositoryMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. func (m *MockSessionRepository) EXPECT() *MockSessionRepositoryMockRecorder { return m.recorder } // ClearFactor mocks base method. func (m *MockSessionRepository) ClearFactor(factor domain.SessionFactorType) database.Change { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ClearFactor", factor) ret0, _ := ret[0].(database.Change) return ret0 } // ClearFactor indicates an expected call of ClearFactor. func (mr *MockSessionRepositoryMockRecorder) ClearFactor(factor any) *MockSessionRepositoryClearFactorCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClearFactor", reflect.TypeOf((*MockSessionRepository)(nil).ClearFactor), factor) return &MockSessionRepositoryClearFactorCall{Call: call} } // MockSessionRepositoryClearFactorCall wrap *gomock.Call type MockSessionRepositoryClearFactorCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryClearFactorCall) Return(arg0 database.Change) *MockSessionRepositoryClearFactorCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryClearFactorCall) Do(f func(domain.SessionFactorType) database.Change) *MockSessionRepositoryClearFactorCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryClearFactorCall) DoAndReturn(f func(domain.SessionFactorType) database.Change) *MockSessionRepositoryClearFactorCall { c.Call = c.Call.DoAndReturn(f) return c } // Create mocks base method. func (m *MockSessionRepository) Create(ctx context.Context, client database.QueryExecutor, user *domain.Session) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Create", ctx, client, user) ret0, _ := ret[0].(error) return ret0 } // Create indicates an expected call of Create. func (mr *MockSessionRepositoryMockRecorder) Create(ctx, client, user any) *MockSessionRepositoryCreateCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockSessionRepository)(nil).Create), ctx, client, user) return &MockSessionRepositoryCreateCall{Call: call} } // MockSessionRepositoryCreateCall wrap *gomock.Call type MockSessionRepositoryCreateCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryCreateCall) Return(arg0 error) *MockSessionRepositoryCreateCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryCreateCall) Do(f func(context.Context, database.QueryExecutor, *domain.Session) error) *MockSessionRepositoryCreateCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryCreateCall) DoAndReturn(f func(context.Context, database.QueryExecutor, *domain.Session) error) *MockSessionRepositoryCreateCall { c.Call = c.Call.DoAndReturn(f) return c } // CreatedAtColumn mocks base method. func (m *MockSessionRepository) CreatedAtColumn() database.Column { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreatedAtColumn") ret0, _ := ret[0].(database.Column) return ret0 } // CreatedAtColumn indicates an expected call of CreatedAtColumn. func (mr *MockSessionRepositoryMockRecorder) CreatedAtColumn() *MockSessionRepositoryCreatedAtColumnCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatedAtColumn", reflect.TypeOf((*MockSessionRepository)(nil).CreatedAtColumn)) return &MockSessionRepositoryCreatedAtColumnCall{Call: call} } // MockSessionRepositoryCreatedAtColumnCall wrap *gomock.Call type MockSessionRepositoryCreatedAtColumnCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryCreatedAtColumnCall) Return(arg0 database.Column) *MockSessionRepositoryCreatedAtColumnCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryCreatedAtColumnCall) Do(f func() database.Column) *MockSessionRepositoryCreatedAtColumnCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryCreatedAtColumnCall) DoAndReturn(f func() database.Column) *MockSessionRepositoryCreatedAtColumnCall { c.Call = c.Call.DoAndReturn(f) return c } // CreatedAtCondition mocks base method. func (m *MockSessionRepository) CreatedAtCondition(op database.NumberOperation, createdAt time.Time) database.Condition { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreatedAtCondition", op, createdAt) ret0, _ := ret[0].(database.Condition) return ret0 } // CreatedAtCondition indicates an expected call of CreatedAtCondition. func (mr *MockSessionRepositoryMockRecorder) CreatedAtCondition(op, createdAt any) *MockSessionRepositoryCreatedAtConditionCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatedAtCondition", reflect.TypeOf((*MockSessionRepository)(nil).CreatedAtCondition), op, createdAt) return &MockSessionRepositoryCreatedAtConditionCall{Call: call} } // MockSessionRepositoryCreatedAtConditionCall wrap *gomock.Call type MockSessionRepositoryCreatedAtConditionCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryCreatedAtConditionCall) Return(arg0 database.Condition) *MockSessionRepositoryCreatedAtConditionCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryCreatedAtConditionCall) Do(f func(database.NumberOperation, time.Time) database.Condition) *MockSessionRepositoryCreatedAtConditionCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryCreatedAtConditionCall) DoAndReturn(f func(database.NumberOperation, time.Time) database.Condition) *MockSessionRepositoryCreatedAtConditionCall { c.Call = c.Call.DoAndReturn(f) return c } // Delete mocks base method. func (m *MockSessionRepository) Delete(ctx context.Context, client database.QueryExecutor, condition database.Condition) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Delete", ctx, client, condition) ret0, _ := ret[0].(error) return ret0 } // Delete indicates an expected call of Delete. func (mr *MockSessionRepositoryMockRecorder) Delete(ctx, client, condition any) *MockSessionRepositoryDeleteCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockSessionRepository)(nil).Delete), ctx, client, condition) return &MockSessionRepositoryDeleteCall{Call: call} } // MockSessionRepositoryDeleteCall wrap *gomock.Call type MockSessionRepositoryDeleteCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryDeleteCall) Return(arg0 error) *MockSessionRepositoryDeleteCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryDeleteCall) Do(f func(context.Context, database.QueryExecutor, database.Condition) error) *MockSessionRepositoryDeleteCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryDeleteCall) DoAndReturn(f func(context.Context, database.QueryExecutor, database.Condition) error) *MockSessionRepositoryDeleteCall { c.Call = c.Call.DoAndReturn(f) return c } // ExpirationColumn mocks base method. func (m *MockSessionRepository) ExpirationColumn() database.Column { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ExpirationColumn") ret0, _ := ret[0].(database.Column) return ret0 } // ExpirationColumn indicates an expected call of ExpirationColumn. func (mr *MockSessionRepositoryMockRecorder) ExpirationColumn() *MockSessionRepositoryExpirationColumnCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExpirationColumn", reflect.TypeOf((*MockSessionRepository)(nil).ExpirationColumn)) return &MockSessionRepositoryExpirationColumnCall{Call: call} } // MockSessionRepositoryExpirationColumnCall wrap *gomock.Call type MockSessionRepositoryExpirationColumnCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryExpirationColumnCall) Return(arg0 database.Column) *MockSessionRepositoryExpirationColumnCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryExpirationColumnCall) Do(f func() database.Column) *MockSessionRepositoryExpirationColumnCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryExpirationColumnCall) DoAndReturn(f func() database.Column) *MockSessionRepositoryExpirationColumnCall { c.Call = c.Call.DoAndReturn(f) return c } // FactorColumns mocks base method. func (m *MockSessionRepository) FactorColumns() domain.SessionFactorColumns { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "FactorColumns") ret0, _ := ret[0].(domain.SessionFactorColumns) return ret0 } // FactorColumns indicates an expected call of FactorColumns. func (mr *MockSessionRepositoryMockRecorder) FactorColumns() *MockSessionRepositoryFactorColumnsCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FactorColumns", reflect.TypeOf((*MockSessionRepository)(nil).FactorColumns)) return &MockSessionRepositoryFactorColumnsCall{Call: call} } // MockSessionRepositoryFactorColumnsCall wrap *gomock.Call type MockSessionRepositoryFactorColumnsCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryFactorColumnsCall) Return(arg0 domain.SessionFactorColumns) *MockSessionRepositoryFactorColumnsCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryFactorColumnsCall) Do(f func() domain.SessionFactorColumns) *MockSessionRepositoryFactorColumnsCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryFactorColumnsCall) DoAndReturn(f func() domain.SessionFactorColumns) *MockSessionRepositoryFactorColumnsCall { c.Call = c.Call.DoAndReturn(f) return c } // FactorConditions mocks base method. func (m *MockSessionRepository) FactorConditions() domain.SessionFactorConditions { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "FactorConditions") ret0, _ := ret[0].(domain.SessionFactorConditions) return ret0 } // FactorConditions indicates an expected call of FactorConditions. func (mr *MockSessionRepositoryMockRecorder) FactorConditions() *MockSessionRepositoryFactorConditionsCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FactorConditions", reflect.TypeOf((*MockSessionRepository)(nil).FactorConditions)) return &MockSessionRepositoryFactorConditionsCall{Call: call} } // MockSessionRepositoryFactorConditionsCall wrap *gomock.Call type MockSessionRepositoryFactorConditionsCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryFactorConditionsCall) Return(arg0 domain.SessionFactorConditions) *MockSessionRepositoryFactorConditionsCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryFactorConditionsCall) Do(f func() domain.SessionFactorConditions) *MockSessionRepositoryFactorConditionsCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryFactorConditionsCall) DoAndReturn(f func() domain.SessionFactorConditions) *MockSessionRepositoryFactorConditionsCall { c.Call = c.Call.DoAndReturn(f) return c } // Get mocks base method. func (m *MockSessionRepository) Get(ctx context.Context, client database.QueryExecutor, opts ...database.QueryOption) (*domain.Session, error) { m.ctrl.T.Helper() varargs := []any{ctx, client} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "Get", varargs...) ret0, _ := ret[0].(*domain.Session) ret1, _ := ret[1].(error) return ret0, ret1 } // Get indicates an expected call of Get. func (mr *MockSessionRepositoryMockRecorder) Get(ctx, client any, opts ...any) *MockSessionRepositoryGetCall { mr.mock.ctrl.T.Helper() varargs := append([]any{ctx, client}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockSessionRepository)(nil).Get), varargs...) return &MockSessionRepositoryGetCall{Call: call} } // MockSessionRepositoryGetCall wrap *gomock.Call type MockSessionRepositoryGetCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryGetCall) Return(arg0 *domain.Session, arg1 error) *MockSessionRepositoryGetCall { c.Call = c.Call.Return(arg0, arg1) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryGetCall) Do(f func(context.Context, database.QueryExecutor, ...database.QueryOption) (*domain.Session, error)) *MockSessionRepositoryGetCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryGetCall) DoAndReturn(f func(context.Context, database.QueryExecutor, ...database.QueryOption) (*domain.Session, error)) *MockSessionRepositoryGetCall { c.Call = c.Call.DoAndReturn(f) return c } // IDColumn mocks base method. func (m *MockSessionRepository) IDColumn() database.Column { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "IDColumn") ret0, _ := ret[0].(database.Column) return ret0 } // IDColumn indicates an expected call of IDColumn. func (mr *MockSessionRepositoryMockRecorder) IDColumn() *MockSessionRepositoryIDColumnCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IDColumn", reflect.TypeOf((*MockSessionRepository)(nil).IDColumn)) return &MockSessionRepositoryIDColumnCall{Call: call} } // MockSessionRepositoryIDColumnCall wrap *gomock.Call type MockSessionRepositoryIDColumnCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryIDColumnCall) Return(arg0 database.Column) *MockSessionRepositoryIDColumnCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryIDColumnCall) Do(f func() database.Column) *MockSessionRepositoryIDColumnCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryIDColumnCall) DoAndReturn(f func() database.Column) *MockSessionRepositoryIDColumnCall { c.Call = c.Call.DoAndReturn(f) return c } // IDCondition mocks base method. func (m *MockSessionRepository) IDCondition(sessionID string) database.Condition { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "IDCondition", sessionID) ret0, _ := ret[0].(database.Condition) return ret0 } // IDCondition indicates an expected call of IDCondition. func (mr *MockSessionRepositoryMockRecorder) IDCondition(sessionID any) *MockSessionRepositoryIDConditionCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IDCondition", reflect.TypeOf((*MockSessionRepository)(nil).IDCondition), sessionID) return &MockSessionRepositoryIDConditionCall{Call: call} } // MockSessionRepositoryIDConditionCall wrap *gomock.Call type MockSessionRepositoryIDConditionCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryIDConditionCall) Return(arg0 database.Condition) *MockSessionRepositoryIDConditionCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryIDConditionCall) Do(f func(string) database.Condition) *MockSessionRepositoryIDConditionCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryIDConditionCall) DoAndReturn(f func(string) database.Condition) *MockSessionRepositoryIDConditionCall { c.Call = c.Call.DoAndReturn(f) return c } // InstanceIDColumn mocks base method. func (m *MockSessionRepository) InstanceIDColumn() database.Column { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "InstanceIDColumn") ret0, _ := ret[0].(database.Column) return ret0 } // InstanceIDColumn indicates an expected call of InstanceIDColumn. func (mr *MockSessionRepositoryMockRecorder) InstanceIDColumn() *MockSessionRepositoryInstanceIDColumnCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InstanceIDColumn", reflect.TypeOf((*MockSessionRepository)(nil).InstanceIDColumn)) return &MockSessionRepositoryInstanceIDColumnCall{Call: call} } // MockSessionRepositoryInstanceIDColumnCall wrap *gomock.Call type MockSessionRepositoryInstanceIDColumnCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryInstanceIDColumnCall) Return(arg0 database.Column) *MockSessionRepositoryInstanceIDColumnCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryInstanceIDColumnCall) Do(f func() database.Column) *MockSessionRepositoryInstanceIDColumnCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryInstanceIDColumnCall) DoAndReturn(f func() database.Column) *MockSessionRepositoryInstanceIDColumnCall { c.Call = c.Call.DoAndReturn(f) return c } // InstanceIDCondition mocks base method. func (m *MockSessionRepository) InstanceIDCondition(instanceID string) database.Condition { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "InstanceIDCondition", instanceID) ret0, _ := ret[0].(database.Condition) return ret0 } // InstanceIDCondition indicates an expected call of InstanceIDCondition. func (mr *MockSessionRepositoryMockRecorder) InstanceIDCondition(instanceID any) *MockSessionRepositoryInstanceIDConditionCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InstanceIDCondition", reflect.TypeOf((*MockSessionRepository)(nil).InstanceIDCondition), instanceID) return &MockSessionRepositoryInstanceIDConditionCall{Call: call} } // MockSessionRepositoryInstanceIDConditionCall wrap *gomock.Call type MockSessionRepositoryInstanceIDConditionCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryInstanceIDConditionCall) Return(arg0 database.Condition) *MockSessionRepositoryInstanceIDConditionCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryInstanceIDConditionCall) Do(f func(string) database.Condition) *MockSessionRepositoryInstanceIDConditionCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryInstanceIDConditionCall) DoAndReturn(f func(string) database.Condition) *MockSessionRepositoryInstanceIDConditionCall { c.Call = c.Call.DoAndReturn(f) return c } // LifetimeColumn mocks base method. func (m *MockSessionRepository) LifetimeColumn() database.Column { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "LifetimeColumn") ret0, _ := ret[0].(database.Column) return ret0 } // LifetimeColumn indicates an expected call of LifetimeColumn. func (mr *MockSessionRepositoryMockRecorder) LifetimeColumn() *MockSessionRepositoryLifetimeColumnCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LifetimeColumn", reflect.TypeOf((*MockSessionRepository)(nil).LifetimeColumn)) return &MockSessionRepositoryLifetimeColumnCall{Call: call} } // MockSessionRepositoryLifetimeColumnCall wrap *gomock.Call type MockSessionRepositoryLifetimeColumnCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryLifetimeColumnCall) Return(arg0 database.Column) *MockSessionRepositoryLifetimeColumnCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryLifetimeColumnCall) Do(f func() database.Column) *MockSessionRepositoryLifetimeColumnCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryLifetimeColumnCall) DoAndReturn(f func() database.Column) *MockSessionRepositoryLifetimeColumnCall { c.Call = c.Call.DoAndReturn(f) return c } // List mocks base method. func (m *MockSessionRepository) List(ctx context.Context, client database.QueryExecutor, opts ...database.QueryOption) ([]*domain.Session, error) { m.ctrl.T.Helper() varargs := []any{ctx, client} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "List", varargs...) ret0, _ := ret[0].([]*domain.Session) ret1, _ := ret[1].(error) return ret0, ret1 } // List indicates an expected call of List. func (mr *MockSessionRepositoryMockRecorder) List(ctx, client any, opts ...any) *MockSessionRepositoryListCall { mr.mock.ctrl.T.Helper() varargs := append([]any{ctx, client}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockSessionRepository)(nil).List), varargs...) return &MockSessionRepositoryListCall{Call: call} } // MockSessionRepositoryListCall wrap *gomock.Call type MockSessionRepositoryListCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryListCall) Return(arg0 []*domain.Session, arg1 error) *MockSessionRepositoryListCall { c.Call = c.Call.Return(arg0, arg1) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryListCall) Do(f func(context.Context, database.QueryExecutor, ...database.QueryOption) ([]*domain.Session, error)) *MockSessionRepositoryListCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryListCall) DoAndReturn(f func(context.Context, database.QueryExecutor, ...database.QueryOption) ([]*domain.Session, error)) *MockSessionRepositoryListCall { c.Call = c.Call.DoAndReturn(f) return c } // MetadataColumns mocks base method. func (m *MockSessionRepository) MetadataColumns() domain.SessionMetadataColumns { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "MetadataColumns") ret0, _ := ret[0].(domain.SessionMetadataColumns) return ret0 } // MetadataColumns indicates an expected call of MetadataColumns. func (mr *MockSessionRepositoryMockRecorder) MetadataColumns() *MockSessionRepositoryMetadataColumnsCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MetadataColumns", reflect.TypeOf((*MockSessionRepository)(nil).MetadataColumns)) return &MockSessionRepositoryMetadataColumnsCall{Call: call} } // MockSessionRepositoryMetadataColumnsCall wrap *gomock.Call type MockSessionRepositoryMetadataColumnsCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryMetadataColumnsCall) Return(arg0 domain.SessionMetadataColumns) *MockSessionRepositoryMetadataColumnsCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryMetadataColumnsCall) Do(f func() domain.SessionMetadataColumns) *MockSessionRepositoryMetadataColumnsCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryMetadataColumnsCall) DoAndReturn(f func() domain.SessionMetadataColumns) *MockSessionRepositoryMetadataColumnsCall { c.Call = c.Call.DoAndReturn(f) return c } // MetadataConditions mocks base method. func (m *MockSessionRepository) MetadataConditions() domain.SessionMetadataConditions { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "MetadataConditions") ret0, _ := ret[0].(domain.SessionMetadataConditions) return ret0 } // MetadataConditions indicates an expected call of MetadataConditions. func (mr *MockSessionRepositoryMockRecorder) MetadataConditions() *MockSessionRepositoryMetadataConditionsCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MetadataConditions", reflect.TypeOf((*MockSessionRepository)(nil).MetadataConditions)) return &MockSessionRepositoryMetadataConditionsCall{Call: call} } // MockSessionRepositoryMetadataConditionsCall wrap *gomock.Call type MockSessionRepositoryMetadataConditionsCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryMetadataConditionsCall) Return(arg0 domain.SessionMetadataConditions) *MockSessionRepositoryMetadataConditionsCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryMetadataConditionsCall) Do(f func() domain.SessionMetadataConditions) *MockSessionRepositoryMetadataConditionsCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryMetadataConditionsCall) DoAndReturn(f func() domain.SessionMetadataConditions) *MockSessionRepositoryMetadataConditionsCall { c.Call = c.Call.DoAndReturn(f) return c } // PrimaryKeyColumns mocks base method. func (m *MockSessionRepository) PrimaryKeyColumns() []database.Column { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "PrimaryKeyColumns") ret0, _ := ret[0].([]database.Column) return ret0 } // PrimaryKeyColumns indicates an expected call of PrimaryKeyColumns. func (mr *MockSessionRepositoryMockRecorder) PrimaryKeyColumns() *MockSessionRepositoryPrimaryKeyColumnsCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrimaryKeyColumns", reflect.TypeOf((*MockSessionRepository)(nil).PrimaryKeyColumns)) return &MockSessionRepositoryPrimaryKeyColumnsCall{Call: call} } // MockSessionRepositoryPrimaryKeyColumnsCall wrap *gomock.Call type MockSessionRepositoryPrimaryKeyColumnsCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryPrimaryKeyColumnsCall) Return(arg0 []database.Column) *MockSessionRepositoryPrimaryKeyColumnsCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryPrimaryKeyColumnsCall) Do(f func() []database.Column) *MockSessionRepositoryPrimaryKeyColumnsCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryPrimaryKeyColumnsCall) DoAndReturn(f func() []database.Column) *MockSessionRepositoryPrimaryKeyColumnsCall { c.Call = c.Call.DoAndReturn(f) return c } // PrimaryKeyCondition mocks base method. func (m *MockSessionRepository) PrimaryKeyCondition(instanceID, sessionID string) database.Condition { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "PrimaryKeyCondition", instanceID, sessionID) ret0, _ := ret[0].(database.Condition) return ret0 } // PrimaryKeyCondition indicates an expected call of PrimaryKeyCondition. func (mr *MockSessionRepositoryMockRecorder) PrimaryKeyCondition(instanceID, sessionID any) *MockSessionRepositoryPrimaryKeyConditionCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrimaryKeyCondition", reflect.TypeOf((*MockSessionRepository)(nil).PrimaryKeyCondition), instanceID, sessionID) return &MockSessionRepositoryPrimaryKeyConditionCall{Call: call} } // MockSessionRepositoryPrimaryKeyConditionCall wrap *gomock.Call type MockSessionRepositoryPrimaryKeyConditionCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryPrimaryKeyConditionCall) Return(arg0 database.Condition) *MockSessionRepositoryPrimaryKeyConditionCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryPrimaryKeyConditionCall) Do(f func(string, string) database.Condition) *MockSessionRepositoryPrimaryKeyConditionCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryPrimaryKeyConditionCall) DoAndReturn(f func(string, string) database.Condition) *MockSessionRepositoryPrimaryKeyConditionCall { c.Call = c.Call.DoAndReturn(f) return c } // SetChallenge mocks base method. func (m *MockSessionRepository) SetChallenge(challenge domain.SessionChallenge) database.Change { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetChallenge", challenge) ret0, _ := ret[0].(database.Change) return ret0 } // SetChallenge indicates an expected call of SetChallenge. func (mr *MockSessionRepositoryMockRecorder) SetChallenge(challenge any) *MockSessionRepositorySetChallengeCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetChallenge", reflect.TypeOf((*MockSessionRepository)(nil).SetChallenge), challenge) return &MockSessionRepositorySetChallengeCall{Call: call} } // MockSessionRepositorySetChallengeCall wrap *gomock.Call type MockSessionRepositorySetChallengeCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositorySetChallengeCall) Return(arg0 database.Change) *MockSessionRepositorySetChallengeCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositorySetChallengeCall) Do(f func(domain.SessionChallenge) database.Change) *MockSessionRepositorySetChallengeCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositorySetChallengeCall) DoAndReturn(f func(domain.SessionChallenge) database.Change) *MockSessionRepositorySetChallengeCall { c.Call = c.Call.DoAndReturn(f) return c } // SetFactor mocks base method. func (m *MockSessionRepository) SetFactor(factor domain.SessionFactor) database.Change { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetFactor", factor) ret0, _ := ret[0].(database.Change) return ret0 } // SetFactor indicates an expected call of SetFactor. func (mr *MockSessionRepositoryMockRecorder) SetFactor(factor any) *MockSessionRepositorySetFactorCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFactor", reflect.TypeOf((*MockSessionRepository)(nil).SetFactor), factor) return &MockSessionRepositorySetFactorCall{Call: call} } // MockSessionRepositorySetFactorCall wrap *gomock.Call type MockSessionRepositorySetFactorCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositorySetFactorCall) Return(arg0 database.Change) *MockSessionRepositorySetFactorCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositorySetFactorCall) Do(f func(domain.SessionFactor) database.Change) *MockSessionRepositorySetFactorCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositorySetFactorCall) DoAndReturn(f func(domain.SessionFactor) database.Change) *MockSessionRepositorySetFactorCall { c.Call = c.Call.DoAndReturn(f) return c } // SetLifetime mocks base method. func (m *MockSessionRepository) SetLifetime(lifetime time.Duration) database.Change { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetLifetime", lifetime) ret0, _ := ret[0].(database.Change) return ret0 } // SetLifetime indicates an expected call of SetLifetime. func (mr *MockSessionRepositoryMockRecorder) SetLifetime(lifetime any) *MockSessionRepositorySetLifetimeCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLifetime", reflect.TypeOf((*MockSessionRepository)(nil).SetLifetime), lifetime) return &MockSessionRepositorySetLifetimeCall{Call: call} } // MockSessionRepositorySetLifetimeCall wrap *gomock.Call type MockSessionRepositorySetLifetimeCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositorySetLifetimeCall) Return(arg0 database.Change) *MockSessionRepositorySetLifetimeCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositorySetLifetimeCall) Do(f func(time.Duration) database.Change) *MockSessionRepositorySetLifetimeCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositorySetLifetimeCall) DoAndReturn(f func(time.Duration) database.Change) *MockSessionRepositorySetLifetimeCall { c.Call = c.Call.DoAndReturn(f) return c } // SetMetadata mocks base method. func (m *MockSessionRepository) SetMetadata(metadata []domain.SessionMetadata) database.Change { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetMetadata", metadata) ret0, _ := ret[0].(database.Change) return ret0 } // SetMetadata indicates an expected call of SetMetadata. func (mr *MockSessionRepositoryMockRecorder) SetMetadata(metadata any) *MockSessionRepositorySetMetadataCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMetadata", reflect.TypeOf((*MockSessionRepository)(nil).SetMetadata), metadata) return &MockSessionRepositorySetMetadataCall{Call: call} } // MockSessionRepositorySetMetadataCall wrap *gomock.Call type MockSessionRepositorySetMetadataCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositorySetMetadataCall) Return(arg0 database.Change) *MockSessionRepositorySetMetadataCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositorySetMetadataCall) Do(f func([]domain.SessionMetadata) database.Change) *MockSessionRepositorySetMetadataCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositorySetMetadataCall) DoAndReturn(f func([]domain.SessionMetadata) database.Change) *MockSessionRepositorySetMetadataCall { c.Call = c.Call.DoAndReturn(f) return c } // SetToken mocks base method. func (m *MockSessionRepository) SetToken(token string) database.Change { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetToken", token) ret0, _ := ret[0].(database.Change) return ret0 } // SetToken indicates an expected call of SetToken. func (mr *MockSessionRepositoryMockRecorder) SetToken(token any) *MockSessionRepositorySetTokenCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetToken", reflect.TypeOf((*MockSessionRepository)(nil).SetToken), token) return &MockSessionRepositorySetTokenCall{Call: call} } // MockSessionRepositorySetTokenCall wrap *gomock.Call type MockSessionRepositorySetTokenCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositorySetTokenCall) Return(arg0 database.Change) *MockSessionRepositorySetTokenCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositorySetTokenCall) Do(f func(string) database.Change) *MockSessionRepositorySetTokenCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositorySetTokenCall) DoAndReturn(f func(string) database.Change) *MockSessionRepositorySetTokenCall { c.Call = c.Call.DoAndReturn(f) return c } // SetUpdatedAt mocks base method. func (m *MockSessionRepository) SetUpdatedAt(updatedAt time.Time) database.Change { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetUpdatedAt", updatedAt) ret0, _ := ret[0].(database.Change) return ret0 } // SetUpdatedAt indicates an expected call of SetUpdatedAt. func (mr *MockSessionRepositoryMockRecorder) SetUpdatedAt(updatedAt any) *MockSessionRepositorySetUpdatedAtCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUpdatedAt", reflect.TypeOf((*MockSessionRepository)(nil).SetUpdatedAt), updatedAt) return &MockSessionRepositorySetUpdatedAtCall{Call: call} } // MockSessionRepositorySetUpdatedAtCall wrap *gomock.Call type MockSessionRepositorySetUpdatedAtCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositorySetUpdatedAtCall) Return(arg0 database.Change) *MockSessionRepositorySetUpdatedAtCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositorySetUpdatedAtCall) Do(f func(time.Time) database.Change) *MockSessionRepositorySetUpdatedAtCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositorySetUpdatedAtCall) DoAndReturn(f func(time.Time) database.Change) *MockSessionRepositorySetUpdatedAtCall { c.Call = c.Call.DoAndReturn(f) return c } // SetUserAgent mocks base method. func (m *MockSessionRepository) SetUserAgent(userAgent domain.SessionUserAgent) database.Change { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetUserAgent", userAgent) ret0, _ := ret[0].(database.Change) return ret0 } // SetUserAgent indicates an expected call of SetUserAgent. func (mr *MockSessionRepositoryMockRecorder) SetUserAgent(userAgent any) *MockSessionRepositorySetUserAgentCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUserAgent", reflect.TypeOf((*MockSessionRepository)(nil).SetUserAgent), userAgent) return &MockSessionRepositorySetUserAgentCall{Call: call} } // MockSessionRepositorySetUserAgentCall wrap *gomock.Call type MockSessionRepositorySetUserAgentCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositorySetUserAgentCall) Return(arg0 database.Change) *MockSessionRepositorySetUserAgentCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositorySetUserAgentCall) Do(f func(domain.SessionUserAgent) database.Change) *MockSessionRepositorySetUserAgentCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositorySetUserAgentCall) DoAndReturn(f func(domain.SessionUserAgent) database.Change) *MockSessionRepositorySetUserAgentCall { c.Call = c.Call.DoAndReturn(f) return c } // TokenColumn mocks base method. func (m *MockSessionRepository) TokenColumn() database.Column { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "TokenColumn") ret0, _ := ret[0].(database.Column) return ret0 } // TokenColumn indicates an expected call of TokenColumn. func (mr *MockSessionRepositoryMockRecorder) TokenColumn() *MockSessionRepositoryTokenColumnCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TokenColumn", reflect.TypeOf((*MockSessionRepository)(nil).TokenColumn)) return &MockSessionRepositoryTokenColumnCall{Call: call} } // MockSessionRepositoryTokenColumnCall wrap *gomock.Call type MockSessionRepositoryTokenColumnCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryTokenColumnCall) Return(arg0 database.Column) *MockSessionRepositoryTokenColumnCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryTokenColumnCall) Do(f func() database.Column) *MockSessionRepositoryTokenColumnCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryTokenColumnCall) DoAndReturn(f func() database.Column) *MockSessionRepositoryTokenColumnCall { c.Call = c.Call.DoAndReturn(f) return c } // Update mocks base method. func (m *MockSessionRepository) Update(ctx context.Context, client database.QueryExecutor, condition database.Condition, changes ...database.Change) (int64, error) { m.ctrl.T.Helper() varargs := []any{ctx, client, condition} for _, a := range changes { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "Update", varargs...) ret0, _ := ret[0].(int64) ret1, _ := ret[1].(error) return ret0, ret1 } // Update indicates an expected call of Update. func (mr *MockSessionRepositoryMockRecorder) Update(ctx, client, condition any, changes ...any) *MockSessionRepositoryUpdateCall { mr.mock.ctrl.T.Helper() varargs := append([]any{ctx, client, condition}, changes...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockSessionRepository)(nil).Update), varargs...) return &MockSessionRepositoryUpdateCall{Call: call} } // MockSessionRepositoryUpdateCall wrap *gomock.Call type MockSessionRepositoryUpdateCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryUpdateCall) Return(arg0 int64, arg1 error) *MockSessionRepositoryUpdateCall { c.Call = c.Call.Return(arg0, arg1) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryUpdateCall) Do(f func(context.Context, database.QueryExecutor, database.Condition, ...database.Change) (int64, error)) *MockSessionRepositoryUpdateCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryUpdateCall) DoAndReturn(f func(context.Context, database.QueryExecutor, database.Condition, ...database.Change) (int64, error)) *MockSessionRepositoryUpdateCall { c.Call = c.Call.DoAndReturn(f) return c } // UpdatedAtColumn mocks base method. func (m *MockSessionRepository) UpdatedAtColumn() database.Column { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdatedAtColumn") ret0, _ := ret[0].(database.Column) return ret0 } // UpdatedAtColumn indicates an expected call of UpdatedAtColumn. func (mr *MockSessionRepositoryMockRecorder) UpdatedAtColumn() *MockSessionRepositoryUpdatedAtColumnCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatedAtColumn", reflect.TypeOf((*MockSessionRepository)(nil).UpdatedAtColumn)) return &MockSessionRepositoryUpdatedAtColumnCall{Call: call} } // MockSessionRepositoryUpdatedAtColumnCall wrap *gomock.Call type MockSessionRepositoryUpdatedAtColumnCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryUpdatedAtColumnCall) Return(arg0 database.Column) *MockSessionRepositoryUpdatedAtColumnCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryUpdatedAtColumnCall) Do(f func() database.Column) *MockSessionRepositoryUpdatedAtColumnCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryUpdatedAtColumnCall) DoAndReturn(f func() database.Column) *MockSessionRepositoryUpdatedAtColumnCall { c.Call = c.Call.DoAndReturn(f) return c } // UpdatedAtCondition mocks base method. func (m *MockSessionRepository) UpdatedAtCondition(op database.NumberOperation, updatedAt time.Time) database.Condition { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdatedAtCondition", op, updatedAt) ret0, _ := ret[0].(database.Condition) return ret0 } // UpdatedAtCondition indicates an expected call of UpdatedAtCondition. func (mr *MockSessionRepositoryMockRecorder) UpdatedAtCondition(op, updatedAt any) *MockSessionRepositoryUpdatedAtConditionCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatedAtCondition", reflect.TypeOf((*MockSessionRepository)(nil).UpdatedAtCondition), op, updatedAt) return &MockSessionRepositoryUpdatedAtConditionCall{Call: call} } // MockSessionRepositoryUpdatedAtConditionCall wrap *gomock.Call type MockSessionRepositoryUpdatedAtConditionCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryUpdatedAtConditionCall) Return(arg0 database.Condition) *MockSessionRepositoryUpdatedAtConditionCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryUpdatedAtConditionCall) Do(f func(database.NumberOperation, time.Time) database.Condition) *MockSessionRepositoryUpdatedAtConditionCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryUpdatedAtConditionCall) DoAndReturn(f func(database.NumberOperation, time.Time) database.Condition) *MockSessionRepositoryUpdatedAtConditionCall { c.Call = c.Call.DoAndReturn(f) return c } // UserAgentColumns mocks base method. func (m *MockSessionRepository) UserAgentColumns() domain.SessionUserAgentColumns { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UserAgentColumns") ret0, _ := ret[0].(domain.SessionUserAgentColumns) return ret0 } // UserAgentColumns indicates an expected call of UserAgentColumns. func (mr *MockSessionRepositoryMockRecorder) UserAgentColumns() *MockSessionRepositoryUserAgentColumnsCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserAgentColumns", reflect.TypeOf((*MockSessionRepository)(nil).UserAgentColumns)) return &MockSessionRepositoryUserAgentColumnsCall{Call: call} } // MockSessionRepositoryUserAgentColumnsCall wrap *gomock.Call type MockSessionRepositoryUserAgentColumnsCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryUserAgentColumnsCall) Return(arg0 domain.SessionUserAgentColumns) *MockSessionRepositoryUserAgentColumnsCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryUserAgentColumnsCall) Do(f func() domain.SessionUserAgentColumns) *MockSessionRepositoryUserAgentColumnsCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryUserAgentColumnsCall) DoAndReturn(f func() domain.SessionUserAgentColumns) *MockSessionRepositoryUserAgentColumnsCall { c.Call = c.Call.DoAndReturn(f) return c } // UserAgentConditions mocks base method. func (m *MockSessionRepository) UserAgentConditions() domain.SessionUserAgentConditions { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UserAgentConditions") ret0, _ := ret[0].(domain.SessionUserAgentConditions) return ret0 } // UserAgentConditions indicates an expected call of UserAgentConditions. func (mr *MockSessionRepositoryMockRecorder) UserAgentConditions() *MockSessionRepositoryUserAgentConditionsCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserAgentConditions", reflect.TypeOf((*MockSessionRepository)(nil).UserAgentConditions)) return &MockSessionRepositoryUserAgentConditionsCall{Call: call} } // MockSessionRepositoryUserAgentConditionsCall wrap *gomock.Call type MockSessionRepositoryUserAgentConditionsCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryUserAgentConditionsCall) Return(arg0 domain.SessionUserAgentConditions) *MockSessionRepositoryUserAgentConditionsCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryUserAgentConditionsCall) Do(f func() domain.SessionUserAgentConditions) *MockSessionRepositoryUserAgentConditionsCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryUserAgentConditionsCall) DoAndReturn(f func() domain.SessionUserAgentConditions) *MockSessionRepositoryUserAgentConditionsCall { c.Call = c.Call.DoAndReturn(f) return c } // UserAgentIDCondition mocks base method. func (m *MockSessionRepository) UserAgentIDCondition(userAgentID string) database.Condition { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UserAgentIDCondition", userAgentID) ret0, _ := ret[0].(database.Condition) return ret0 } // UserAgentIDCondition indicates an expected call of UserAgentIDCondition. func (mr *MockSessionRepositoryMockRecorder) UserAgentIDCondition(userAgentID any) *MockSessionRepositoryUserAgentIDConditionCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserAgentIDCondition", reflect.TypeOf((*MockSessionRepository)(nil).UserAgentIDCondition), userAgentID) return &MockSessionRepositoryUserAgentIDConditionCall{Call: call} } // MockSessionRepositoryUserAgentIDConditionCall wrap *gomock.Call type MockSessionRepositoryUserAgentIDConditionCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryUserAgentIDConditionCall) Return(arg0 database.Condition) *MockSessionRepositoryUserAgentIDConditionCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryUserAgentIDConditionCall) Do(f func(string) database.Condition) *MockSessionRepositoryUserAgentIDConditionCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryUserAgentIDConditionCall) DoAndReturn(f func(string) database.Condition) *MockSessionRepositoryUserAgentIDConditionCall { c.Call = c.Call.DoAndReturn(f) return c } // UserIDColumn mocks base method. func (m *MockSessionRepository) UserIDColumn() database.Column { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UserIDColumn") ret0, _ := ret[0].(database.Column) return ret0 } // UserIDColumn indicates an expected call of UserIDColumn. func (mr *MockSessionRepositoryMockRecorder) UserIDColumn() *MockSessionRepositoryUserIDColumnCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserIDColumn", reflect.TypeOf((*MockSessionRepository)(nil).UserIDColumn)) return &MockSessionRepositoryUserIDColumnCall{Call: call} } // MockSessionRepositoryUserIDColumnCall wrap *gomock.Call type MockSessionRepositoryUserIDColumnCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryUserIDColumnCall) Return(arg0 database.Column) *MockSessionRepositoryUserIDColumnCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryUserIDColumnCall) Do(f func() database.Column) *MockSessionRepositoryUserIDColumnCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryUserIDColumnCall) DoAndReturn(f func() database.Column) *MockSessionRepositoryUserIDColumnCall { c.Call = c.Call.DoAndReturn(f) return c } // UserIDCondition mocks base method. func (m *MockSessionRepository) UserIDCondition(userID string) database.Condition { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UserIDCondition", userID) ret0, _ := ret[0].(database.Condition) return ret0 } // UserIDCondition indicates an expected call of UserIDCondition. func (mr *MockSessionRepositoryMockRecorder) UserIDCondition(userID any) *MockSessionRepositoryUserIDConditionCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserIDCondition", reflect.TypeOf((*MockSessionRepository)(nil).UserIDCondition), userID) return &MockSessionRepositoryUserIDConditionCall{Call: call} } // MockSessionRepositoryUserIDConditionCall wrap *gomock.Call type MockSessionRepositoryUserIDConditionCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockSessionRepositoryUserIDConditionCall) Return(arg0 database.Condition) *MockSessionRepositoryUserIDConditionCall { c.Call = c.Call.Return(arg0) return c } // Do rewrite *gomock.Call.Do func (c *MockSessionRepositoryUserIDConditionCall) Do(f func(string) database.Condition) *MockSessionRepositoryUserIDConditionCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockSessionRepositoryUserIDConditionCall) DoAndReturn(f func(string) database.Condition) *MockSessionRepositoryUserIDConditionCall { c.Call = c.Call.DoAndReturn(f) return c }