Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2023-09-07 13:06:18 +03:00
коммит произвёл GitHub
родитель 30b12f199b
Коммит 0e84ccb383
16 изменённых файлов: 52 добавлений и 54 удалений

Просмотреть файл

@@ -1,4 +1,4 @@
// Code generated by mockery v2.14.0. DO NOT EDIT.
// Code generated by mockery v2.32.2. DO NOT EDIT.
// Regenerate this file using `make platform-mocks`.
@@ -19,6 +19,10 @@ func (_m *SuiteIFace) GetSession(token string) (*model.Session, *model.AppError)
ret := _m.Called(token)
var r0 *model.Session
var r1 *model.AppError
if rf, ok := ret.Get(0).(func(string) (*model.Session, *model.AppError)); ok {
return rf(token)
}
if rf, ok := ret.Get(0).(func(string) *model.Session); ok {
r0 = rf(token)
} else {
@@ -27,7 +31,6 @@ func (_m *SuiteIFace) GetSession(token string) (*model.Session, *model.AppError)
}
}
var r1 *model.AppError
if rf, ok := ret.Get(1).(func(string) *model.AppError); ok {
r1 = rf(token)
} else {
@@ -58,13 +61,16 @@ func (_m *SuiteIFace) UserCanSeeOtherUser(userID string, otherUserId string) (bo
ret := _m.Called(userID, otherUserId)
var r0 bool
var r1 *model.AppError
if rf, ok := ret.Get(0).(func(string, string) (bool, *model.AppError)); ok {
return rf(userID, otherUserId)
}
if rf, ok := ret.Get(0).(func(string, string) bool); ok {
r0 = rf(userID, otherUserId)
} else {
r0 = ret.Get(0).(bool)
}
var r1 *model.AppError
if rf, ok := ret.Get(1).(func(string, string) *model.AppError); ok {
r1 = rf(userID, otherUserId)
} else {
@@ -76,13 +82,12 @@ func (_m *SuiteIFace) UserCanSeeOtherUser(userID string, otherUserId string) (bo
return r0, r1
}
type mockConstructorTestingTNewSuiteIFace interface {
// NewSuiteIFace creates a new instance of SuiteIFace. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewSuiteIFace(t interface {
mock.TestingT
Cleanup(func())
}
// NewSuiteIFace creates a new instance of SuiteIFace. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewSuiteIFace(t mockConstructorTestingTNewSuiteIFace) *SuiteIFace {
}) *SuiteIFace {
mock := &SuiteIFace{}
mock.Mock.Test(t)