upd(all): regenerate mocks
This commit is contained in:
parent
f10c3cfbe7
commit
044eeecec0
@ -1,5 +1,5 @@
|
||||
// Code generated by MockGen. DO NOT EDIT.
|
||||
// Source: sam/service/attachment.go
|
||||
// Source: messaging/service/attachment.go
|
||||
|
||||
// Package service is a generated GoMock package.
|
||||
package service
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// Code generated by MockGen. DO NOT EDIT.
|
||||
// Source: sam/service/channel.go
|
||||
// Source: messaging/service/channel.go
|
||||
|
||||
// Package service is a generated GoMock package.
|
||||
package service
|
||||
@ -164,6 +164,19 @@ func (mr *MockChannelServiceMockRecorder) DeleteMember(channelID interface{}, me
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMember", reflect.TypeOf((*MockChannelService)(nil).DeleteMember), varargs...)
|
||||
}
|
||||
|
||||
// SetFlag mocks base method
|
||||
func (m *MockChannelService) SetFlag(ID uint64, flag types.ChannelMembershipFlag) (*types.Channel, error) {
|
||||
ret := m.ctrl.Call(m, "SetFlag", ID, flag)
|
||||
ret0, _ := ret[0].(*types.Channel)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// SetFlag indicates an expected call of SetFlag
|
||||
func (mr *MockChannelServiceMockRecorder) SetFlag(ID, flag interface{}) *gomock.Call {
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFlag", reflect.TypeOf((*MockChannelService)(nil).SetFlag), ID, flag)
|
||||
}
|
||||
|
||||
// Archive mocks base method
|
||||
func (m *MockChannelService) Archive(ID uint64) (*types.Channel, error) {
|
||||
ret := m.ctrl.Call(m, "Archive", ID)
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// Code generated by MockGen. DO NOT EDIT.
|
||||
// Source: sam/service/message.go
|
||||
// Source: messaging/service/message.go
|
||||
|
||||
// Package service is a generated GoMock package.
|
||||
package service
|
||||
@ -122,17 +122,17 @@ func (mr *MockMessageServiceMockRecorder) RemoveReaction(messageID, reaction int
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveReaction", reflect.TypeOf((*MockMessageService)(nil).RemoveReaction), messageID, reaction)
|
||||
}
|
||||
|
||||
// MarkAsUnread mocks base method
|
||||
func (m *MockMessageService) MarkAsUnread(messageID uint64) (uint32, error) {
|
||||
ret := m.ctrl.Call(m, "MarkAsUnread", messageID)
|
||||
// MarkAsRead mocks base method
|
||||
func (m *MockMessageService) MarkAsRead(channelID, threadID, lastReadMessageID uint64) (uint32, error) {
|
||||
ret := m.ctrl.Call(m, "MarkAsRead", channelID, threadID, lastReadMessageID)
|
||||
ret0, _ := ret[0].(uint32)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// MarkAsUnread indicates an expected call of MarkAsUnread
|
||||
func (mr *MockMessageServiceMockRecorder) MarkAsUnread(messageID interface{}) *gomock.Call {
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarkAsUnread", reflect.TypeOf((*MockMessageService)(nil).MarkAsUnread), messageID)
|
||||
// MarkAsRead indicates an expected call of MarkAsRead
|
||||
func (mr *MockMessageServiceMockRecorder) MarkAsRead(channelID, threadID, lastReadMessageID interface{}) *gomock.Call {
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarkAsRead", reflect.TypeOf((*MockMessageService)(nil).MarkAsRead), channelID, threadID, lastReadMessageID)
|
||||
}
|
||||
|
||||
// Pin mocks base method
|
||||
|
||||
@ -5,8 +5,8 @@
|
||||
package repository
|
||||
|
||||
import (
|
||||
repository "app/system/repository"
|
||||
context "context"
|
||||
repository "github.com/crusttech/crust/system/repository"
|
||||
types "github.com/crusttech/crust/system/types"
|
||||
gomock "github.com/golang/mock/gomock"
|
||||
factory "github.com/titpetric/factory"
|
||||
|
||||
@ -5,8 +5,8 @@
|
||||
package repository
|
||||
|
||||
import (
|
||||
repository "app/system/repository"
|
||||
context "context"
|
||||
repository "github.com/crusttech/crust/system/repository"
|
||||
types "github.com/crusttech/crust/system/types"
|
||||
gomock "github.com/golang/mock/gomock"
|
||||
factory "github.com/titpetric/factory"
|
||||
@ -87,6 +87,23 @@ func (mr *MockUserRepositoryMockRecorder) FindByID(id interface{}) *gomock.Call
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindByID", reflect.TypeOf((*MockUserRepository)(nil).FindByID), id)
|
||||
}
|
||||
|
||||
// FindByIDs mocks base method
|
||||
func (m *MockUserRepository) FindByIDs(id ...uint64) (types.UserSet, error) {
|
||||
varargs := []interface{}{}
|
||||
for _, a := range id {
|
||||
varargs = append(varargs, a)
|
||||
}
|
||||
ret := m.ctrl.Call(m, "FindByIDs", varargs...)
|
||||
ret0, _ := ret[0].(types.UserSet)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// FindByIDs indicates an expected call of FindByIDs
|
||||
func (mr *MockUserRepositoryMockRecorder) FindByIDs(id ...interface{}) *gomock.Call {
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindByIDs", reflect.TypeOf((*MockUserRepository)(nil).FindByIDs), id...)
|
||||
}
|
||||
|
||||
// FindBySatosaID mocks base method
|
||||
func (m *MockUserRepository) FindBySatosaID(id string) (*types.User, error) {
|
||||
ret := m.ctrl.Call(m, "FindBySatosaID", id)
|
||||
|
||||
135
system/service/organisation_mock_test.go
Normal file
135
system/service/organisation_mock_test.go
Normal file
@ -0,0 +1,135 @@
|
||||
// Code generated by MockGen. DO NOT EDIT.
|
||||
// Source: system/service/organisation.go
|
||||
|
||||
// Package service is a generated GoMock package.
|
||||
package service
|
||||
|
||||
import (
|
||||
context "context"
|
||||
types "github.com/crusttech/crust/system/types"
|
||||
gomock "github.com/golang/mock/gomock"
|
||||
reflect "reflect"
|
||||
)
|
||||
|
||||
// MockOrganisationService is a mock of OrganisationService interface
|
||||
type MockOrganisationService struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockOrganisationServiceMockRecorder
|
||||
}
|
||||
|
||||
// MockOrganisationServiceMockRecorder is the mock recorder for MockOrganisationService
|
||||
type MockOrganisationServiceMockRecorder struct {
|
||||
mock *MockOrganisationService
|
||||
}
|
||||
|
||||
// NewMockOrganisationService creates a new mock instance
|
||||
func NewMockOrganisationService(ctrl *gomock.Controller) *MockOrganisationService {
|
||||
mock := &MockOrganisationService{ctrl: ctrl}
|
||||
mock.recorder = &MockOrganisationServiceMockRecorder{mock}
|
||||
return mock
|
||||
}
|
||||
|
||||
// EXPECT returns an object that allows the caller to indicate expected use
|
||||
func (m *MockOrganisationService) EXPECT() *MockOrganisationServiceMockRecorder {
|
||||
return m.recorder
|
||||
}
|
||||
|
||||
// With mocks base method
|
||||
func (m *MockOrganisationService) With(ctx context.Context) OrganisationService {
|
||||
ret := m.ctrl.Call(m, "With", ctx)
|
||||
ret0, _ := ret[0].(OrganisationService)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// With indicates an expected call of With
|
||||
func (mr *MockOrganisationServiceMockRecorder) With(ctx interface{}) *gomock.Call {
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "With", reflect.TypeOf((*MockOrganisationService)(nil).With), ctx)
|
||||
}
|
||||
|
||||
// FindByID mocks base method
|
||||
func (m *MockOrganisationService) FindByID(organisationID uint64) (*types.Organisation, error) {
|
||||
ret := m.ctrl.Call(m, "FindByID", organisationID)
|
||||
ret0, _ := ret[0].(*types.Organisation)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// FindByID indicates an expected call of FindByID
|
||||
func (mr *MockOrganisationServiceMockRecorder) FindByID(organisationID interface{}) *gomock.Call {
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindByID", reflect.TypeOf((*MockOrganisationService)(nil).FindByID), organisationID)
|
||||
}
|
||||
|
||||
// Find mocks base method
|
||||
func (m *MockOrganisationService) Find(filter *types.OrganisationFilter) ([]*types.Organisation, error) {
|
||||
ret := m.ctrl.Call(m, "Find", filter)
|
||||
ret0, _ := ret[0].([]*types.Organisation)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// Find indicates an expected call of Find
|
||||
func (mr *MockOrganisationServiceMockRecorder) Find(filter interface{}) *gomock.Call {
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Find", reflect.TypeOf((*MockOrganisationService)(nil).Find), filter)
|
||||
}
|
||||
|
||||
// Create mocks base method
|
||||
func (m *MockOrganisationService) Create(organisation *types.Organisation) (*types.Organisation, error) {
|
||||
ret := m.ctrl.Call(m, "Create", organisation)
|
||||
ret0, _ := ret[0].(*types.Organisation)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// Create indicates an expected call of Create
|
||||
func (mr *MockOrganisationServiceMockRecorder) Create(organisation interface{}) *gomock.Call {
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockOrganisationService)(nil).Create), organisation)
|
||||
}
|
||||
|
||||
// Update mocks base method
|
||||
func (m *MockOrganisationService) Update(organisation *types.Organisation) (*types.Organisation, error) {
|
||||
ret := m.ctrl.Call(m, "Update", organisation)
|
||||
ret0, _ := ret[0].(*types.Organisation)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// Update indicates an expected call of Update
|
||||
func (mr *MockOrganisationServiceMockRecorder) Update(organisation interface{}) *gomock.Call {
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockOrganisationService)(nil).Update), organisation)
|
||||
}
|
||||
|
||||
// Archive mocks base method
|
||||
func (m *MockOrganisationService) Archive(ID uint64) error {
|
||||
ret := m.ctrl.Call(m, "Archive", ID)
|
||||
ret0, _ := ret[0].(error)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// Archive indicates an expected call of Archive
|
||||
func (mr *MockOrganisationServiceMockRecorder) Archive(ID interface{}) *gomock.Call {
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Archive", reflect.TypeOf((*MockOrganisationService)(nil).Archive), ID)
|
||||
}
|
||||
|
||||
// Unarchive mocks base method
|
||||
func (m *MockOrganisationService) Unarchive(ID uint64) error {
|
||||
ret := m.ctrl.Call(m, "Unarchive", ID)
|
||||
ret0, _ := ret[0].(error)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// Unarchive indicates an expected call of Unarchive
|
||||
func (mr *MockOrganisationServiceMockRecorder) Unarchive(ID interface{}) *gomock.Call {
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unarchive", reflect.TypeOf((*MockOrganisationService)(nil).Unarchive), ID)
|
||||
}
|
||||
|
||||
// Delete mocks base method
|
||||
func (m *MockOrganisationService) Delete(ID uint64) error {
|
||||
ret := m.ctrl.Call(m, "Delete", ID)
|
||||
ret0, _ := ret[0].(error)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// Delete indicates an expected call of Delete
|
||||
func (mr *MockOrganisationServiceMockRecorder) Delete(ID interface{}) *gomock.Call {
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockOrganisationService)(nil).Delete), ID)
|
||||
}
|
||||
@ -85,6 +85,23 @@ func (mr *MockUserServiceMockRecorder) FindByID(id interface{}) *gomock.Call {
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindByID", reflect.TypeOf((*MockUserService)(nil).FindByID), id)
|
||||
}
|
||||
|
||||
// FindByIDs mocks base method
|
||||
func (m *MockUserService) FindByIDs(id ...uint64) (types.UserSet, error) {
|
||||
varargs := []interface{}{}
|
||||
for _, a := range id {
|
||||
varargs = append(varargs, a)
|
||||
}
|
||||
ret := m.ctrl.Call(m, "FindByIDs", varargs...)
|
||||
ret0, _ := ret[0].(types.UserSet)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// FindByIDs indicates an expected call of FindByIDs
|
||||
func (mr *MockUserServiceMockRecorder) FindByIDs(id ...interface{}) *gomock.Call {
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindByIDs", reflect.TypeOf((*MockUserService)(nil).FindByIDs), id...)
|
||||
}
|
||||
|
||||
// Find mocks base method
|
||||
func (m *MockUserService) Find(filter *types.UserFilter) (types.UserSet, error) {
|
||||
ret := m.ctrl.Call(m, "Find", filter)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user