github.com/xzl8028/xenia-server@v0.0.0-20190809101854-18450a97da63/store/storetest/mocks/GroupStore.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  // Regenerate this file using `make store-mocks`.
     4  
     5  package mocks
     6  
     7  import mock "github.com/stretchr/testify/mock"
     8  import model "github.com/xzl8028/xenia-server/model"
     9  import store "github.com/xzl8028/xenia-server/store"
    10  
    11  // GroupStore is an autogenerated mock type for the GroupStore type
    12  type GroupStore struct {
    13  	mock.Mock
    14  }
    15  
    16  // ChannelMembersMinusGroupMembers provides a mock function with given fields: channelID, groupIDs, page, perPage
    17  func (_m *GroupStore) ChannelMembersMinusGroupMembers(channelID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, *model.AppError) {
    18  	ret := _m.Called(channelID, groupIDs, page, perPage)
    19  
    20  	var r0 []*model.UserWithGroups
    21  	if rf, ok := ret.Get(0).(func(string, []string, int, int) []*model.UserWithGroups); ok {
    22  		r0 = rf(channelID, groupIDs, page, perPage)
    23  	} else {
    24  		if ret.Get(0) != nil {
    25  			r0 = ret.Get(0).([]*model.UserWithGroups)
    26  		}
    27  	}
    28  
    29  	var r1 *model.AppError
    30  	if rf, ok := ret.Get(1).(func(string, []string, int, int) *model.AppError); ok {
    31  		r1 = rf(channelID, groupIDs, page, perPage)
    32  	} else {
    33  		if ret.Get(1) != nil {
    34  			r1 = ret.Get(1).(*model.AppError)
    35  		}
    36  	}
    37  
    38  	return r0, r1
    39  }
    40  
    41  // ChannelMembersToAdd provides a mock function with given fields: since
    42  func (_m *GroupStore) ChannelMembersToAdd(since int64) ([]*model.UserChannelIDPair, *model.AppError) {
    43  	ret := _m.Called(since)
    44  
    45  	var r0 []*model.UserChannelIDPair
    46  	if rf, ok := ret.Get(0).(func(int64) []*model.UserChannelIDPair); ok {
    47  		r0 = rf(since)
    48  	} else {
    49  		if ret.Get(0) != nil {
    50  			r0 = ret.Get(0).([]*model.UserChannelIDPair)
    51  		}
    52  	}
    53  
    54  	var r1 *model.AppError
    55  	if rf, ok := ret.Get(1).(func(int64) *model.AppError); ok {
    56  		r1 = rf(since)
    57  	} else {
    58  		if ret.Get(1) != nil {
    59  			r1 = ret.Get(1).(*model.AppError)
    60  		}
    61  	}
    62  
    63  	return r0, r1
    64  }
    65  
    66  // ChannelMembersToRemove provides a mock function with given fields:
    67  func (_m *GroupStore) ChannelMembersToRemove() ([]*model.ChannelMember, *model.AppError) {
    68  	ret := _m.Called()
    69  
    70  	var r0 []*model.ChannelMember
    71  	if rf, ok := ret.Get(0).(func() []*model.ChannelMember); ok {
    72  		r0 = rf()
    73  	} else {
    74  		if ret.Get(0) != nil {
    75  			r0 = ret.Get(0).([]*model.ChannelMember)
    76  		}
    77  	}
    78  
    79  	var r1 *model.AppError
    80  	if rf, ok := ret.Get(1).(func() *model.AppError); ok {
    81  		r1 = rf()
    82  	} else {
    83  		if ret.Get(1) != nil {
    84  			r1 = ret.Get(1).(*model.AppError)
    85  		}
    86  	}
    87  
    88  	return r0, r1
    89  }
    90  
    91  // CountChannelMembersMinusGroupMembers provides a mock function with given fields: channelID, groupIDs
    92  func (_m *GroupStore) CountChannelMembersMinusGroupMembers(channelID string, groupIDs []string) (int64, *model.AppError) {
    93  	ret := _m.Called(channelID, groupIDs)
    94  
    95  	var r0 int64
    96  	if rf, ok := ret.Get(0).(func(string, []string) int64); ok {
    97  		r0 = rf(channelID, groupIDs)
    98  	} else {
    99  		r0 = ret.Get(0).(int64)
   100  	}
   101  
   102  	var r1 *model.AppError
   103  	if rf, ok := ret.Get(1).(func(string, []string) *model.AppError); ok {
   104  		r1 = rf(channelID, groupIDs)
   105  	} else {
   106  		if ret.Get(1) != nil {
   107  			r1 = ret.Get(1).(*model.AppError)
   108  		}
   109  	}
   110  
   111  	return r0, r1
   112  }
   113  
   114  // CountGroupsByChannel provides a mock function with given fields: channelId, opts
   115  func (_m *GroupStore) CountGroupsByChannel(channelId string, opts model.GroupSearchOpts) (int64, *model.AppError) {
   116  	ret := _m.Called(channelId, opts)
   117  
   118  	var r0 int64
   119  	if rf, ok := ret.Get(0).(func(string, model.GroupSearchOpts) int64); ok {
   120  		r0 = rf(channelId, opts)
   121  	} else {
   122  		r0 = ret.Get(0).(int64)
   123  	}
   124  
   125  	var r1 *model.AppError
   126  	if rf, ok := ret.Get(1).(func(string, model.GroupSearchOpts) *model.AppError); ok {
   127  		r1 = rf(channelId, opts)
   128  	} else {
   129  		if ret.Get(1) != nil {
   130  			r1 = ret.Get(1).(*model.AppError)
   131  		}
   132  	}
   133  
   134  	return r0, r1
   135  }
   136  
   137  // CountGroupsByTeam provides a mock function with given fields: teamId, opts
   138  func (_m *GroupStore) CountGroupsByTeam(teamId string, opts model.GroupSearchOpts) (int64, *model.AppError) {
   139  	ret := _m.Called(teamId, opts)
   140  
   141  	var r0 int64
   142  	if rf, ok := ret.Get(0).(func(string, model.GroupSearchOpts) int64); ok {
   143  		r0 = rf(teamId, opts)
   144  	} else {
   145  		r0 = ret.Get(0).(int64)
   146  	}
   147  
   148  	var r1 *model.AppError
   149  	if rf, ok := ret.Get(1).(func(string, model.GroupSearchOpts) *model.AppError); ok {
   150  		r1 = rf(teamId, opts)
   151  	} else {
   152  		if ret.Get(1) != nil {
   153  			r1 = ret.Get(1).(*model.AppError)
   154  		}
   155  	}
   156  
   157  	return r0, r1
   158  }
   159  
   160  // CountTeamMembersMinusGroupMembers provides a mock function with given fields: teamID, groupIDs
   161  func (_m *GroupStore) CountTeamMembersMinusGroupMembers(teamID string, groupIDs []string) (int64, *model.AppError) {
   162  	ret := _m.Called(teamID, groupIDs)
   163  
   164  	var r0 int64
   165  	if rf, ok := ret.Get(0).(func(string, []string) int64); ok {
   166  		r0 = rf(teamID, groupIDs)
   167  	} else {
   168  		r0 = ret.Get(0).(int64)
   169  	}
   170  
   171  	var r1 *model.AppError
   172  	if rf, ok := ret.Get(1).(func(string, []string) *model.AppError); ok {
   173  		r1 = rf(teamID, groupIDs)
   174  	} else {
   175  		if ret.Get(1) != nil {
   176  			r1 = ret.Get(1).(*model.AppError)
   177  		}
   178  	}
   179  
   180  	return r0, r1
   181  }
   182  
   183  // Create provides a mock function with given fields: group
   184  func (_m *GroupStore) Create(group *model.Group) store.StoreChannel {
   185  	ret := _m.Called(group)
   186  
   187  	var r0 store.StoreChannel
   188  	if rf, ok := ret.Get(0).(func(*model.Group) store.StoreChannel); ok {
   189  		r0 = rf(group)
   190  	} else {
   191  		if ret.Get(0) != nil {
   192  			r0 = ret.Get(0).(store.StoreChannel)
   193  		}
   194  	}
   195  
   196  	return r0
   197  }
   198  
   199  // CreateGroupSyncable provides a mock function with given fields: groupSyncable
   200  func (_m *GroupStore) CreateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError) {
   201  	ret := _m.Called(groupSyncable)
   202  
   203  	var r0 *model.GroupSyncable
   204  	if rf, ok := ret.Get(0).(func(*model.GroupSyncable) *model.GroupSyncable); ok {
   205  		r0 = rf(groupSyncable)
   206  	} else {
   207  		if ret.Get(0) != nil {
   208  			r0 = ret.Get(0).(*model.GroupSyncable)
   209  		}
   210  	}
   211  
   212  	var r1 *model.AppError
   213  	if rf, ok := ret.Get(1).(func(*model.GroupSyncable) *model.AppError); ok {
   214  		r1 = rf(groupSyncable)
   215  	} else {
   216  		if ret.Get(1) != nil {
   217  			r1 = ret.Get(1).(*model.AppError)
   218  		}
   219  	}
   220  
   221  	return r0, r1
   222  }
   223  
   224  // Delete provides a mock function with given fields: groupID
   225  func (_m *GroupStore) Delete(groupID string) store.StoreChannel {
   226  	ret := _m.Called(groupID)
   227  
   228  	var r0 store.StoreChannel
   229  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   230  		r0 = rf(groupID)
   231  	} else {
   232  		if ret.Get(0) != nil {
   233  			r0 = ret.Get(0).(store.StoreChannel)
   234  		}
   235  	}
   236  
   237  	return r0
   238  }
   239  
   240  // DeleteGroupSyncable provides a mock function with given fields: groupID, syncableID, syncableType
   241  func (_m *GroupStore) DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError) {
   242  	ret := _m.Called(groupID, syncableID, syncableType)
   243  
   244  	var r0 *model.GroupSyncable
   245  	if rf, ok := ret.Get(0).(func(string, string, model.GroupSyncableType) *model.GroupSyncable); ok {
   246  		r0 = rf(groupID, syncableID, syncableType)
   247  	} else {
   248  		if ret.Get(0) != nil {
   249  			r0 = ret.Get(0).(*model.GroupSyncable)
   250  		}
   251  	}
   252  
   253  	var r1 *model.AppError
   254  	if rf, ok := ret.Get(1).(func(string, string, model.GroupSyncableType) *model.AppError); ok {
   255  		r1 = rf(groupID, syncableID, syncableType)
   256  	} else {
   257  		if ret.Get(1) != nil {
   258  			r1 = ret.Get(1).(*model.AppError)
   259  		}
   260  	}
   261  
   262  	return r0, r1
   263  }
   264  
   265  // DeleteMember provides a mock function with given fields: groupID, userID
   266  func (_m *GroupStore) DeleteMember(groupID string, userID string) store.StoreChannel {
   267  	ret := _m.Called(groupID, userID)
   268  
   269  	var r0 store.StoreChannel
   270  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   271  		r0 = rf(groupID, userID)
   272  	} else {
   273  		if ret.Get(0) != nil {
   274  			r0 = ret.Get(0).(store.StoreChannel)
   275  		}
   276  	}
   277  
   278  	return r0
   279  }
   280  
   281  // Get provides a mock function with given fields: groupID
   282  func (_m *GroupStore) Get(groupID string) store.StoreChannel {
   283  	ret := _m.Called(groupID)
   284  
   285  	var r0 store.StoreChannel
   286  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   287  		r0 = rf(groupID)
   288  	} else {
   289  		if ret.Get(0) != nil {
   290  			r0 = ret.Get(0).(store.StoreChannel)
   291  		}
   292  	}
   293  
   294  	return r0
   295  }
   296  
   297  // GetAllBySource provides a mock function with given fields: groupSource
   298  func (_m *GroupStore) GetAllBySource(groupSource model.GroupSource) store.StoreChannel {
   299  	ret := _m.Called(groupSource)
   300  
   301  	var r0 store.StoreChannel
   302  	if rf, ok := ret.Get(0).(func(model.GroupSource) store.StoreChannel); ok {
   303  		r0 = rf(groupSource)
   304  	} else {
   305  		if ret.Get(0) != nil {
   306  			r0 = ret.Get(0).(store.StoreChannel)
   307  		}
   308  	}
   309  
   310  	return r0
   311  }
   312  
   313  // GetAllGroupSyncablesByGroupId provides a mock function with given fields: groupID, syncableType
   314  func (_m *GroupStore) GetAllGroupSyncablesByGroupId(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, *model.AppError) {
   315  	ret := _m.Called(groupID, syncableType)
   316  
   317  	var r0 []*model.GroupSyncable
   318  	if rf, ok := ret.Get(0).(func(string, model.GroupSyncableType) []*model.GroupSyncable); ok {
   319  		r0 = rf(groupID, syncableType)
   320  	} else {
   321  		if ret.Get(0) != nil {
   322  			r0 = ret.Get(0).([]*model.GroupSyncable)
   323  		}
   324  	}
   325  
   326  	var r1 *model.AppError
   327  	if rf, ok := ret.Get(1).(func(string, model.GroupSyncableType) *model.AppError); ok {
   328  		r1 = rf(groupID, syncableType)
   329  	} else {
   330  		if ret.Get(1) != nil {
   331  			r1 = ret.Get(1).(*model.AppError)
   332  		}
   333  	}
   334  
   335  	return r0, r1
   336  }
   337  
   338  // GetByIDs provides a mock function with given fields: groupIDs
   339  func (_m *GroupStore) GetByIDs(groupIDs []string) ([]*model.Group, *model.AppError) {
   340  	ret := _m.Called(groupIDs)
   341  
   342  	var r0 []*model.Group
   343  	if rf, ok := ret.Get(0).(func([]string) []*model.Group); ok {
   344  		r0 = rf(groupIDs)
   345  	} else {
   346  		if ret.Get(0) != nil {
   347  			r0 = ret.Get(0).([]*model.Group)
   348  		}
   349  	}
   350  
   351  	var r1 *model.AppError
   352  	if rf, ok := ret.Get(1).(func([]string) *model.AppError); ok {
   353  		r1 = rf(groupIDs)
   354  	} else {
   355  		if ret.Get(1) != nil {
   356  			r1 = ret.Get(1).(*model.AppError)
   357  		}
   358  	}
   359  
   360  	return r0, r1
   361  }
   362  
   363  // GetByRemoteID provides a mock function with given fields: remoteID, groupSource
   364  func (_m *GroupStore) GetByRemoteID(remoteID string, groupSource model.GroupSource) store.StoreChannel {
   365  	ret := _m.Called(remoteID, groupSource)
   366  
   367  	var r0 store.StoreChannel
   368  	if rf, ok := ret.Get(0).(func(string, model.GroupSource) store.StoreChannel); ok {
   369  		r0 = rf(remoteID, groupSource)
   370  	} else {
   371  		if ret.Get(0) != nil {
   372  			r0 = ret.Get(0).(store.StoreChannel)
   373  		}
   374  	}
   375  
   376  	return r0
   377  }
   378  
   379  // GetGroupSyncable provides a mock function with given fields: groupID, syncableID, syncableType
   380  func (_m *GroupStore) GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError) {
   381  	ret := _m.Called(groupID, syncableID, syncableType)
   382  
   383  	var r0 *model.GroupSyncable
   384  	if rf, ok := ret.Get(0).(func(string, string, model.GroupSyncableType) *model.GroupSyncable); ok {
   385  		r0 = rf(groupID, syncableID, syncableType)
   386  	} else {
   387  		if ret.Get(0) != nil {
   388  			r0 = ret.Get(0).(*model.GroupSyncable)
   389  		}
   390  	}
   391  
   392  	var r1 *model.AppError
   393  	if rf, ok := ret.Get(1).(func(string, string, model.GroupSyncableType) *model.AppError); ok {
   394  		r1 = rf(groupID, syncableID, syncableType)
   395  	} else {
   396  		if ret.Get(1) != nil {
   397  			r1 = ret.Get(1).(*model.AppError)
   398  		}
   399  	}
   400  
   401  	return r0, r1
   402  }
   403  
   404  // GetGroups provides a mock function with given fields: page, perPage, opts
   405  func (_m *GroupStore) GetGroups(page int, perPage int, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError) {
   406  	ret := _m.Called(page, perPage, opts)
   407  
   408  	var r0 []*model.Group
   409  	if rf, ok := ret.Get(0).(func(int, int, model.GroupSearchOpts) []*model.Group); ok {
   410  		r0 = rf(page, perPage, opts)
   411  	} else {
   412  		if ret.Get(0) != nil {
   413  			r0 = ret.Get(0).([]*model.Group)
   414  		}
   415  	}
   416  
   417  	var r1 *model.AppError
   418  	if rf, ok := ret.Get(1).(func(int, int, model.GroupSearchOpts) *model.AppError); ok {
   419  		r1 = rf(page, perPage, opts)
   420  	} else {
   421  		if ret.Get(1) != nil {
   422  			r1 = ret.Get(1).(*model.AppError)
   423  		}
   424  	}
   425  
   426  	return r0, r1
   427  }
   428  
   429  // GetGroupsByChannel provides a mock function with given fields: channelId, opts
   430  func (_m *GroupStore) GetGroupsByChannel(channelId string, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError) {
   431  	ret := _m.Called(channelId, opts)
   432  
   433  	var r0 []*model.Group
   434  	if rf, ok := ret.Get(0).(func(string, model.GroupSearchOpts) []*model.Group); ok {
   435  		r0 = rf(channelId, opts)
   436  	} else {
   437  		if ret.Get(0) != nil {
   438  			r0 = ret.Get(0).([]*model.Group)
   439  		}
   440  	}
   441  
   442  	var r1 *model.AppError
   443  	if rf, ok := ret.Get(1).(func(string, model.GroupSearchOpts) *model.AppError); ok {
   444  		r1 = rf(channelId, opts)
   445  	} else {
   446  		if ret.Get(1) != nil {
   447  			r1 = ret.Get(1).(*model.AppError)
   448  		}
   449  	}
   450  
   451  	return r0, r1
   452  }
   453  
   454  // GetGroupsByTeam provides a mock function with given fields: teamId, opts
   455  func (_m *GroupStore) GetGroupsByTeam(teamId string, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError) {
   456  	ret := _m.Called(teamId, opts)
   457  
   458  	var r0 []*model.Group
   459  	if rf, ok := ret.Get(0).(func(string, model.GroupSearchOpts) []*model.Group); ok {
   460  		r0 = rf(teamId, opts)
   461  	} else {
   462  		if ret.Get(0) != nil {
   463  			r0 = ret.Get(0).([]*model.Group)
   464  		}
   465  	}
   466  
   467  	var r1 *model.AppError
   468  	if rf, ok := ret.Get(1).(func(string, model.GroupSearchOpts) *model.AppError); ok {
   469  		r1 = rf(teamId, opts)
   470  	} else {
   471  		if ret.Get(1) != nil {
   472  			r1 = ret.Get(1).(*model.AppError)
   473  		}
   474  	}
   475  
   476  	return r0, r1
   477  }
   478  
   479  // GetMemberCount provides a mock function with given fields: groupID
   480  func (_m *GroupStore) GetMemberCount(groupID string) store.StoreChannel {
   481  	ret := _m.Called(groupID)
   482  
   483  	var r0 store.StoreChannel
   484  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   485  		r0 = rf(groupID)
   486  	} else {
   487  		if ret.Get(0) != nil {
   488  			r0 = ret.Get(0).(store.StoreChannel)
   489  		}
   490  	}
   491  
   492  	return r0
   493  }
   494  
   495  // GetMemberUsers provides a mock function with given fields: groupID
   496  func (_m *GroupStore) GetMemberUsers(groupID string) store.StoreChannel {
   497  	ret := _m.Called(groupID)
   498  
   499  	var r0 store.StoreChannel
   500  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   501  		r0 = rf(groupID)
   502  	} else {
   503  		if ret.Get(0) != nil {
   504  			r0 = ret.Get(0).(store.StoreChannel)
   505  		}
   506  	}
   507  
   508  	return r0
   509  }
   510  
   511  // GetMemberUsersPage provides a mock function with given fields: groupID, offset, limit
   512  func (_m *GroupStore) GetMemberUsersPage(groupID string, offset int, limit int) store.StoreChannel {
   513  	ret := _m.Called(groupID, offset, limit)
   514  
   515  	var r0 store.StoreChannel
   516  	if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok {
   517  		r0 = rf(groupID, offset, limit)
   518  	} else {
   519  		if ret.Get(0) != nil {
   520  			r0 = ret.Get(0).(store.StoreChannel)
   521  		}
   522  	}
   523  
   524  	return r0
   525  }
   526  
   527  // TeamMembersMinusGroupMembers provides a mock function with given fields: teamID, groupIDs, page, perPage
   528  func (_m *GroupStore) TeamMembersMinusGroupMembers(teamID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, *model.AppError) {
   529  	ret := _m.Called(teamID, groupIDs, page, perPage)
   530  
   531  	var r0 []*model.UserWithGroups
   532  	if rf, ok := ret.Get(0).(func(string, []string, int, int) []*model.UserWithGroups); ok {
   533  		r0 = rf(teamID, groupIDs, page, perPage)
   534  	} else {
   535  		if ret.Get(0) != nil {
   536  			r0 = ret.Get(0).([]*model.UserWithGroups)
   537  		}
   538  	}
   539  
   540  	var r1 *model.AppError
   541  	if rf, ok := ret.Get(1).(func(string, []string, int, int) *model.AppError); ok {
   542  		r1 = rf(teamID, groupIDs, page, perPage)
   543  	} else {
   544  		if ret.Get(1) != nil {
   545  			r1 = ret.Get(1).(*model.AppError)
   546  		}
   547  	}
   548  
   549  	return r0, r1
   550  }
   551  
   552  // TeamMembersToAdd provides a mock function with given fields: since
   553  func (_m *GroupStore) TeamMembersToAdd(since int64) ([]*model.UserTeamIDPair, *model.AppError) {
   554  	ret := _m.Called(since)
   555  
   556  	var r0 []*model.UserTeamIDPair
   557  	if rf, ok := ret.Get(0).(func(int64) []*model.UserTeamIDPair); ok {
   558  		r0 = rf(since)
   559  	} else {
   560  		if ret.Get(0) != nil {
   561  			r0 = ret.Get(0).([]*model.UserTeamIDPair)
   562  		}
   563  	}
   564  
   565  	var r1 *model.AppError
   566  	if rf, ok := ret.Get(1).(func(int64) *model.AppError); ok {
   567  		r1 = rf(since)
   568  	} else {
   569  		if ret.Get(1) != nil {
   570  			r1 = ret.Get(1).(*model.AppError)
   571  		}
   572  	}
   573  
   574  	return r0, r1
   575  }
   576  
   577  // TeamMembersToRemove provides a mock function with given fields:
   578  func (_m *GroupStore) TeamMembersToRemove() ([]*model.TeamMember, *model.AppError) {
   579  	ret := _m.Called()
   580  
   581  	var r0 []*model.TeamMember
   582  	if rf, ok := ret.Get(0).(func() []*model.TeamMember); ok {
   583  		r0 = rf()
   584  	} else {
   585  		if ret.Get(0) != nil {
   586  			r0 = ret.Get(0).([]*model.TeamMember)
   587  		}
   588  	}
   589  
   590  	var r1 *model.AppError
   591  	if rf, ok := ret.Get(1).(func() *model.AppError); ok {
   592  		r1 = rf()
   593  	} else {
   594  		if ret.Get(1) != nil {
   595  			r1 = ret.Get(1).(*model.AppError)
   596  		}
   597  	}
   598  
   599  	return r0, r1
   600  }
   601  
   602  // Update provides a mock function with given fields: group
   603  func (_m *GroupStore) Update(group *model.Group) store.StoreChannel {
   604  	ret := _m.Called(group)
   605  
   606  	var r0 store.StoreChannel
   607  	if rf, ok := ret.Get(0).(func(*model.Group) store.StoreChannel); ok {
   608  		r0 = rf(group)
   609  	} else {
   610  		if ret.Get(0) != nil {
   611  			r0 = ret.Get(0).(store.StoreChannel)
   612  		}
   613  	}
   614  
   615  	return r0
   616  }
   617  
   618  // UpdateGroupSyncable provides a mock function with given fields: groupSyncable
   619  func (_m *GroupStore) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError) {
   620  	ret := _m.Called(groupSyncable)
   621  
   622  	var r0 *model.GroupSyncable
   623  	if rf, ok := ret.Get(0).(func(*model.GroupSyncable) *model.GroupSyncable); ok {
   624  		r0 = rf(groupSyncable)
   625  	} else {
   626  		if ret.Get(0) != nil {
   627  			r0 = ret.Get(0).(*model.GroupSyncable)
   628  		}
   629  	}
   630  
   631  	var r1 *model.AppError
   632  	if rf, ok := ret.Get(1).(func(*model.GroupSyncable) *model.AppError); ok {
   633  		r1 = rf(groupSyncable)
   634  	} else {
   635  		if ret.Get(1) != nil {
   636  			r1 = ret.Get(1).(*model.AppError)
   637  		}
   638  	}
   639  
   640  	return r0, r1
   641  }
   642  
   643  // UpsertMember provides a mock function with given fields: groupID, userID
   644  func (_m *GroupStore) UpsertMember(groupID string, userID string) store.StoreChannel {
   645  	ret := _m.Called(groupID, userID)
   646  
   647  	var r0 store.StoreChannel
   648  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   649  		r0 = rf(groupID, userID)
   650  	} else {
   651  		if ret.Get(0) != nil {
   652  			r0 = ret.Get(0).(store.StoreChannel)
   653  		}
   654  	}
   655  
   656  	return r0
   657  }