* Fix initialism errors

* Fix check-mocks test

* Revert mlog and filestore packages

* Update plugin_hooks_test.go

* Update opentracinglayer.go

* Regenerate mocks and check store layers

* Revert plugin's context changes

* Update context.go

* Update plugin_requests.go

* Update plugin_hooks_test.go

* Regenerate mocks

* Regenerate mocks and store layers

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Haardik Dharma
2021-04-03 12:43:22 +05:30
коммит произвёл GitHub
родитель db01f2a91b
Коммит 343c51830f
49 изменённых файлов: 1542 добавлений и 1542 удалений

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

@@ -37,13 +37,13 @@ func (_m *ThreadStore) CollectThreadsWithNewerReplies(userId string, channelIds
return r0, r1
}
// Delete provides a mock function with given fields: postId
func (_m *ThreadStore) Delete(postId string) error {
ret := _m.Called(postId)
// Delete provides a mock function with given fields: postID
func (_m *ThreadStore) Delete(postID string) error {
ret := _m.Called(postID)
var r0 error
if rf, ok := ret.Get(0).(func(string) error); ok {
r0 = rf(postId)
r0 = rf(postID)
} else {
r0 = ret.Error(0)
}
@@ -134,13 +134,13 @@ func (_m *ThreadStore) GetMembershipsForUser(userId string, teamID string) ([]*m
return r0, r1
}
// GetPosts provides a mock function with given fields: threadId, since
func (_m *ThreadStore) GetPosts(threadId string, since int64) ([]*model.Post, error) {
ret := _m.Called(threadId, since)
// GetPosts provides a mock function with given fields: threadID, since
func (_m *ThreadStore) GetPosts(threadID string, since int64) ([]*model.Post, error) {
ret := _m.Called(threadID, since)
var r0 []*model.Post
if rf, ok := ret.Get(0).(func(string, int64) []*model.Post); ok {
r0 = rf(threadId, since)
r0 = rf(threadID, since)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]*model.Post)
@@ -149,7 +149,7 @@ func (_m *ThreadStore) GetPosts(threadId string, since int64) ([]*model.Post, er
var r1 error
if rf, ok := ret.Get(1).(func(string, int64) error); ok {
r1 = rf(threadId, since)
r1 = rf(threadID, since)
} else {
r1 = ret.Error(1)
}
@@ -157,13 +157,13 @@ func (_m *ThreadStore) GetPosts(threadId string, since int64) ([]*model.Post, er
return r0, r1
}
// GetThreadForUser provides a mock function with given fields: userId, teamId, threadId, extended
func (_m *ThreadStore) GetThreadForUser(userId string, teamId string, threadId string, extended bool) (*model.ThreadResponse, error) {
ret := _m.Called(userId, teamId, threadId, extended)
// GetThreadForUser provides a mock function with given fields: userID, teamID, threadId, extended
func (_m *ThreadStore) GetThreadForUser(userID string, teamID string, threadId string, extended bool) (*model.ThreadResponse, error) {
ret := _m.Called(userID, teamID, threadId, extended)
var r0 *model.ThreadResponse
if rf, ok := ret.Get(0).(func(string, string, string, bool) *model.ThreadResponse); ok {
r0 = rf(userId, teamId, threadId, extended)
r0 = rf(userID, teamID, threadId, extended)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*model.ThreadResponse)
@@ -172,7 +172,7 @@ func (_m *ThreadStore) GetThreadForUser(userId string, teamId string, threadId s
var r1 error
if rf, ok := ret.Get(1).(func(string, string, string, bool) error); ok {
r1 = rf(userId, teamId, threadId, extended)
r1 = rf(userID, teamID, threadId, extended)
} else {
r1 = ret.Error(1)
}
@@ -180,13 +180,13 @@ func (_m *ThreadStore) GetThreadForUser(userId string, teamId string, threadId s
return r0, r1
}
// GetThreadsForUser provides a mock function with given fields: userId, teamId, opts
func (_m *ThreadStore) GetThreadsForUser(userId string, teamId string, opts model.GetUserThreadsOpts) (*model.Threads, error) {
ret := _m.Called(userId, teamId, opts)
// GetThreadsForUser provides a mock function with given fields: userId, teamID, opts
func (_m *ThreadStore) GetThreadsForUser(userId string, teamID string, opts model.GetUserThreadsOpts) (*model.Threads, error) {
ret := _m.Called(userId, teamID, opts)
var r0 *model.Threads
if rf, ok := ret.Get(0).(func(string, string, model.GetUserThreadsOpts) *model.Threads); ok {
r0 = rf(userId, teamId, opts)
r0 = rf(userId, teamID, opts)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*model.Threads)
@@ -195,7 +195,7 @@ func (_m *ThreadStore) GetThreadsForUser(userId string, teamId string, opts mode
var r1 error
if rf, ok := ret.Get(1).(func(string, string, model.GetUserThreadsOpts) error); ok {
r1 = rf(userId, teamId, opts)
r1 = rf(userId, teamID, opts)
} else {
r1 = ret.Error(1)
}
@@ -203,13 +203,13 @@ func (_m *ThreadStore) GetThreadsForUser(userId string, teamId string, opts mode
return r0, r1
}
// MaintainMembership provides a mock function with given fields: userId, postID, following, incrementMentions, updateFollowing, updateViewedTimestamp
func (_m *ThreadStore) MaintainMembership(userId string, postID string, following bool, incrementMentions bool, updateFollowing bool, updateViewedTimestamp bool) error {
ret := _m.Called(userId, postID, following, incrementMentions, updateFollowing, updateViewedTimestamp)
// MaintainMembership provides a mock function with given fields: userID, postID, following, incrementMentions, updateFollowing, updateViewedTimestamp
func (_m *ThreadStore) MaintainMembership(userID string, postID string, following bool, incrementMentions bool, updateFollowing bool, updateViewedTimestamp bool) error {
ret := _m.Called(userID, postID, following, incrementMentions, updateFollowing, updateViewedTimestamp)
var r0 error
if rf, ok := ret.Get(0).(func(string, string, bool, bool, bool, bool) error); ok {
r0 = rf(userId, postID, following, incrementMentions, updateFollowing, updateViewedTimestamp)
r0 = rf(userID, postID, following, incrementMentions, updateFollowing, updateViewedTimestamp)
} else {
r0 = ret.Error(0)
}
@@ -217,13 +217,13 @@ func (_m *ThreadStore) MaintainMembership(userId string, postID string, followin
return r0
}
// MarkAllAsRead provides a mock function with given fields: userId, teamID
func (_m *ThreadStore) MarkAllAsRead(userId string, teamID string) error {
ret := _m.Called(userId, teamID)
// MarkAllAsRead provides a mock function with given fields: userID, teamID
func (_m *ThreadStore) MarkAllAsRead(userID string, teamID string) error {
ret := _m.Called(userID, teamID)
var r0 error
if rf, ok := ret.Get(0).(func(string, string) error); ok {
r0 = rf(userId, teamID)
r0 = rf(userID, teamID)
} else {
r0 = ret.Error(0)
}
@@ -231,13 +231,13 @@ func (_m *ThreadStore) MarkAllAsRead(userId string, teamID string) error {
return r0
}
// MarkAsRead provides a mock function with given fields: userId, threadID, timestamp
func (_m *ThreadStore) MarkAsRead(userId string, threadID string, timestamp int64) error {
ret := _m.Called(userId, threadID, timestamp)
// MarkAsRead provides a mock function with given fields: userID, threadID, timestamp
func (_m *ThreadStore) MarkAsRead(userID string, threadID string, timestamp int64) error {
ret := _m.Called(userID, threadID, timestamp)
var r0 error
if rf, ok := ret.Get(0).(func(string, string, int64) error); ok {
r0 = rf(userId, threadID, timestamp)
r0 = rf(userID, threadID, timestamp)
} else {
r0 = ret.Error(0)
}