github.com/haalcala/mattermost-server-change-repo/v5@v5.33.2/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 (
     8  	model "github.com/mattermost/mattermost-server/v5/model"
     9  	mock "github.com/stretchr/testify/mock"
    10  )
    11  
    12  // GroupStore is an autogenerated mock type for the GroupStore type
    13  type GroupStore struct {
    14  	mock.Mock
    15  }
    16  
    17  // AdminRoleGroupsForSyncableMember provides a mock function with given fields: userID, syncableID, syncableType
    18  func (_m *GroupStore) AdminRoleGroupsForSyncableMember(userID string, syncableID string, syncableType model.GroupSyncableType) ([]string, error) {
    19  	ret := _m.Called(userID, syncableID, syncableType)
    20  
    21  	var r0 []string
    22  	if rf, ok := ret.Get(0).(func(string, string, model.GroupSyncableType) []string); ok {
    23  		r0 = rf(userID, syncableID, syncableType)
    24  	} else {
    25  		if ret.Get(0) != nil {
    26  			r0 = ret.Get(0).([]string)
    27  		}
    28  	}
    29  
    30  	var r1 error
    31  	if rf, ok := ret.Get(1).(func(string, string, model.GroupSyncableType) error); ok {
    32  		r1 = rf(userID, syncableID, syncableType)
    33  	} else {
    34  		r1 = ret.Error(1)
    35  	}
    36  
    37  	return r0, r1
    38  }
    39  
    40  // ChannelMembersMinusGroupMembers provides a mock function with given fields: channelID, groupIDs, page, perPage
    41  func (_m *GroupStore) ChannelMembersMinusGroupMembers(channelID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, error) {
    42  	ret := _m.Called(channelID, groupIDs, page, perPage)
    43  
    44  	var r0 []*model.UserWithGroups
    45  	if rf, ok := ret.Get(0).(func(string, []string, int, int) []*model.UserWithGroups); ok {
    46  		r0 = rf(channelID, groupIDs, page, perPage)
    47  	} else {
    48  		if ret.Get(0) != nil {
    49  			r0 = ret.Get(0).([]*model.UserWithGroups)
    50  		}
    51  	}
    52  
    53  	var r1 error
    54  	if rf, ok := ret.Get(1).(func(string, []string, int, int) error); ok {
    55  		r1 = rf(channelID, groupIDs, page, perPage)
    56  	} else {
    57  		r1 = ret.Error(1)
    58  	}
    59  
    60  	return r0, r1
    61  }
    62  
    63  // ChannelMembersToAdd provides a mock function with given fields: since, channelID
    64  func (_m *GroupStore) ChannelMembersToAdd(since int64, channelID *string) ([]*model.UserChannelIDPair, error) {
    65  	ret := _m.Called(since, channelID)
    66  
    67  	var r0 []*model.UserChannelIDPair
    68  	if rf, ok := ret.Get(0).(func(int64, *string) []*model.UserChannelIDPair); ok {
    69  		r0 = rf(since, channelID)
    70  	} else {
    71  		if ret.Get(0) != nil {
    72  			r0 = ret.Get(0).([]*model.UserChannelIDPair)
    73  		}
    74  	}
    75  
    76  	var r1 error
    77  	if rf, ok := ret.Get(1).(func(int64, *string) error); ok {
    78  		r1 = rf(since, channelID)
    79  	} else {
    80  		r1 = ret.Error(1)
    81  	}
    82  
    83  	return r0, r1
    84  }
    85  
    86  // ChannelMembersToRemove provides a mock function with given fields: channelID
    87  func (_m *GroupStore) ChannelMembersToRemove(channelID *string) ([]*model.ChannelMember, error) {
    88  	ret := _m.Called(channelID)
    89  
    90  	var r0 []*model.ChannelMember
    91  	if rf, ok := ret.Get(0).(func(*string) []*model.ChannelMember); ok {
    92  		r0 = rf(channelID)
    93  	} else {
    94  		if ret.Get(0) != nil {
    95  			r0 = ret.Get(0).([]*model.ChannelMember)
    96  		}
    97  	}
    98  
    99  	var r1 error
   100  	if rf, ok := ret.Get(1).(func(*string) error); ok {
   101  		r1 = rf(channelID)
   102  	} else {
   103  		r1 = ret.Error(1)
   104  	}
   105  
   106  	return r0, r1
   107  }
   108  
   109  // CountChannelMembersMinusGroupMembers provides a mock function with given fields: channelID, groupIDs
   110  func (_m *GroupStore) CountChannelMembersMinusGroupMembers(channelID string, groupIDs []string) (int64, error) {
   111  	ret := _m.Called(channelID, groupIDs)
   112  
   113  	var r0 int64
   114  	if rf, ok := ret.Get(0).(func(string, []string) int64); ok {
   115  		r0 = rf(channelID, groupIDs)
   116  	} else {
   117  		r0 = ret.Get(0).(int64)
   118  	}
   119  
   120  	var r1 error
   121  	if rf, ok := ret.Get(1).(func(string, []string) error); ok {
   122  		r1 = rf(channelID, groupIDs)
   123  	} else {
   124  		r1 = ret.Error(1)
   125  	}
   126  
   127  	return r0, r1
   128  }
   129  
   130  // CountGroupsByChannel provides a mock function with given fields: channelId, opts
   131  func (_m *GroupStore) CountGroupsByChannel(channelId string, opts model.GroupSearchOpts) (int64, error) {
   132  	ret := _m.Called(channelId, opts)
   133  
   134  	var r0 int64
   135  	if rf, ok := ret.Get(0).(func(string, model.GroupSearchOpts) int64); ok {
   136  		r0 = rf(channelId, opts)
   137  	} else {
   138  		r0 = ret.Get(0).(int64)
   139  	}
   140  
   141  	var r1 error
   142  	if rf, ok := ret.Get(1).(func(string, model.GroupSearchOpts) error); ok {
   143  		r1 = rf(channelId, opts)
   144  	} else {
   145  		r1 = ret.Error(1)
   146  	}
   147  
   148  	return r0, r1
   149  }
   150  
   151  // CountGroupsByTeam provides a mock function with given fields: teamId, opts
   152  func (_m *GroupStore) CountGroupsByTeam(teamId string, opts model.GroupSearchOpts) (int64, error) {
   153  	ret := _m.Called(teamId, opts)
   154  
   155  	var r0 int64
   156  	if rf, ok := ret.Get(0).(func(string, model.GroupSearchOpts) int64); ok {
   157  		r0 = rf(teamId, opts)
   158  	} else {
   159  		r0 = ret.Get(0).(int64)
   160  	}
   161  
   162  	var r1 error
   163  	if rf, ok := ret.Get(1).(func(string, model.GroupSearchOpts) error); ok {
   164  		r1 = rf(teamId, opts)
   165  	} else {
   166  		r1 = ret.Error(1)
   167  	}
   168  
   169  	return r0, r1
   170  }
   171  
   172  // CountTeamMembersMinusGroupMembers provides a mock function with given fields: teamID, groupIDs
   173  func (_m *GroupStore) CountTeamMembersMinusGroupMembers(teamID string, groupIDs []string) (int64, error) {
   174  	ret := _m.Called(teamID, groupIDs)
   175  
   176  	var r0 int64
   177  	if rf, ok := ret.Get(0).(func(string, []string) int64); ok {
   178  		r0 = rf(teamID, groupIDs)
   179  	} else {
   180  		r0 = ret.Get(0).(int64)
   181  	}
   182  
   183  	var r1 error
   184  	if rf, ok := ret.Get(1).(func(string, []string) error); ok {
   185  		r1 = rf(teamID, groupIDs)
   186  	} else {
   187  		r1 = ret.Error(1)
   188  	}
   189  
   190  	return r0, r1
   191  }
   192  
   193  // Create provides a mock function with given fields: group
   194  func (_m *GroupStore) Create(group *model.Group) (*model.Group, error) {
   195  	ret := _m.Called(group)
   196  
   197  	var r0 *model.Group
   198  	if rf, ok := ret.Get(0).(func(*model.Group) *model.Group); ok {
   199  		r0 = rf(group)
   200  	} else {
   201  		if ret.Get(0) != nil {
   202  			r0 = ret.Get(0).(*model.Group)
   203  		}
   204  	}
   205  
   206  	var r1 error
   207  	if rf, ok := ret.Get(1).(func(*model.Group) error); ok {
   208  		r1 = rf(group)
   209  	} else {
   210  		r1 = ret.Error(1)
   211  	}
   212  
   213  	return r0, r1
   214  }
   215  
   216  // CreateGroupSyncable provides a mock function with given fields: groupSyncable
   217  func (_m *GroupStore) CreateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, error) {
   218  	ret := _m.Called(groupSyncable)
   219  
   220  	var r0 *model.GroupSyncable
   221  	if rf, ok := ret.Get(0).(func(*model.GroupSyncable) *model.GroupSyncable); ok {
   222  		r0 = rf(groupSyncable)
   223  	} else {
   224  		if ret.Get(0) != nil {
   225  			r0 = ret.Get(0).(*model.GroupSyncable)
   226  		}
   227  	}
   228  
   229  	var r1 error
   230  	if rf, ok := ret.Get(1).(func(*model.GroupSyncable) error); ok {
   231  		r1 = rf(groupSyncable)
   232  	} else {
   233  		r1 = ret.Error(1)
   234  	}
   235  
   236  	return r0, r1
   237  }
   238  
   239  // Delete provides a mock function with given fields: groupID
   240  func (_m *GroupStore) Delete(groupID string) (*model.Group, error) {
   241  	ret := _m.Called(groupID)
   242  
   243  	var r0 *model.Group
   244  	if rf, ok := ret.Get(0).(func(string) *model.Group); ok {
   245  		r0 = rf(groupID)
   246  	} else {
   247  		if ret.Get(0) != nil {
   248  			r0 = ret.Get(0).(*model.Group)
   249  		}
   250  	}
   251  
   252  	var r1 error
   253  	if rf, ok := ret.Get(1).(func(string) error); ok {
   254  		r1 = rf(groupID)
   255  	} else {
   256  		r1 = ret.Error(1)
   257  	}
   258  
   259  	return r0, r1
   260  }
   261  
   262  // DeleteGroupSyncable provides a mock function with given fields: groupID, syncableID, syncableType
   263  func (_m *GroupStore) DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, error) {
   264  	ret := _m.Called(groupID, syncableID, syncableType)
   265  
   266  	var r0 *model.GroupSyncable
   267  	if rf, ok := ret.Get(0).(func(string, string, model.GroupSyncableType) *model.GroupSyncable); ok {
   268  		r0 = rf(groupID, syncableID, syncableType)
   269  	} else {
   270  		if ret.Get(0) != nil {
   271  			r0 = ret.Get(0).(*model.GroupSyncable)
   272  		}
   273  	}
   274  
   275  	var r1 error
   276  	if rf, ok := ret.Get(1).(func(string, string, model.GroupSyncableType) error); ok {
   277  		r1 = rf(groupID, syncableID, syncableType)
   278  	} else {
   279  		r1 = ret.Error(1)
   280  	}
   281  
   282  	return r0, r1
   283  }
   284  
   285  // DeleteMember provides a mock function with given fields: groupID, userID
   286  func (_m *GroupStore) DeleteMember(groupID string, userID string) (*model.GroupMember, error) {
   287  	ret := _m.Called(groupID, userID)
   288  
   289  	var r0 *model.GroupMember
   290  	if rf, ok := ret.Get(0).(func(string, string) *model.GroupMember); ok {
   291  		r0 = rf(groupID, userID)
   292  	} else {
   293  		if ret.Get(0) != nil {
   294  			r0 = ret.Get(0).(*model.GroupMember)
   295  		}
   296  	}
   297  
   298  	var r1 error
   299  	if rf, ok := ret.Get(1).(func(string, string) error); ok {
   300  		r1 = rf(groupID, userID)
   301  	} else {
   302  		r1 = ret.Error(1)
   303  	}
   304  
   305  	return r0, r1
   306  }
   307  
   308  // DistinctGroupMemberCount provides a mock function with given fields:
   309  func (_m *GroupStore) DistinctGroupMemberCount() (int64, error) {
   310  	ret := _m.Called()
   311  
   312  	var r0 int64
   313  	if rf, ok := ret.Get(0).(func() int64); ok {
   314  		r0 = rf()
   315  	} else {
   316  		r0 = ret.Get(0).(int64)
   317  	}
   318  
   319  	var r1 error
   320  	if rf, ok := ret.Get(1).(func() error); ok {
   321  		r1 = rf()
   322  	} else {
   323  		r1 = ret.Error(1)
   324  	}
   325  
   326  	return r0, r1
   327  }
   328  
   329  // Get provides a mock function with given fields: groupID
   330  func (_m *GroupStore) Get(groupID string) (*model.Group, error) {
   331  	ret := _m.Called(groupID)
   332  
   333  	var r0 *model.Group
   334  	if rf, ok := ret.Get(0).(func(string) *model.Group); ok {
   335  		r0 = rf(groupID)
   336  	} else {
   337  		if ret.Get(0) != nil {
   338  			r0 = ret.Get(0).(*model.Group)
   339  		}
   340  	}
   341  
   342  	var r1 error
   343  	if rf, ok := ret.Get(1).(func(string) error); ok {
   344  		r1 = rf(groupID)
   345  	} else {
   346  		r1 = ret.Error(1)
   347  	}
   348  
   349  	return r0, r1
   350  }
   351  
   352  // GetAllBySource provides a mock function with given fields: groupSource
   353  func (_m *GroupStore) GetAllBySource(groupSource model.GroupSource) ([]*model.Group, error) {
   354  	ret := _m.Called(groupSource)
   355  
   356  	var r0 []*model.Group
   357  	if rf, ok := ret.Get(0).(func(model.GroupSource) []*model.Group); ok {
   358  		r0 = rf(groupSource)
   359  	} else {
   360  		if ret.Get(0) != nil {
   361  			r0 = ret.Get(0).([]*model.Group)
   362  		}
   363  	}
   364  
   365  	var r1 error
   366  	if rf, ok := ret.Get(1).(func(model.GroupSource) error); ok {
   367  		r1 = rf(groupSource)
   368  	} else {
   369  		r1 = ret.Error(1)
   370  	}
   371  
   372  	return r0, r1
   373  }
   374  
   375  // GetAllGroupSyncablesByGroupId provides a mock function with given fields: groupID, syncableType
   376  func (_m *GroupStore) GetAllGroupSyncablesByGroupId(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, error) {
   377  	ret := _m.Called(groupID, syncableType)
   378  
   379  	var r0 []*model.GroupSyncable
   380  	if rf, ok := ret.Get(0).(func(string, model.GroupSyncableType) []*model.GroupSyncable); ok {
   381  		r0 = rf(groupID, syncableType)
   382  	} else {
   383  		if ret.Get(0) != nil {
   384  			r0 = ret.Get(0).([]*model.GroupSyncable)
   385  		}
   386  	}
   387  
   388  	var r1 error
   389  	if rf, ok := ret.Get(1).(func(string, model.GroupSyncableType) error); ok {
   390  		r1 = rf(groupID, syncableType)
   391  	} else {
   392  		r1 = ret.Error(1)
   393  	}
   394  
   395  	return r0, r1
   396  }
   397  
   398  // GetByIDs provides a mock function with given fields: groupIDs
   399  func (_m *GroupStore) GetByIDs(groupIDs []string) ([]*model.Group, error) {
   400  	ret := _m.Called(groupIDs)
   401  
   402  	var r0 []*model.Group
   403  	if rf, ok := ret.Get(0).(func([]string) []*model.Group); ok {
   404  		r0 = rf(groupIDs)
   405  	} else {
   406  		if ret.Get(0) != nil {
   407  			r0 = ret.Get(0).([]*model.Group)
   408  		}
   409  	}
   410  
   411  	var r1 error
   412  	if rf, ok := ret.Get(1).(func([]string) error); ok {
   413  		r1 = rf(groupIDs)
   414  	} else {
   415  		r1 = ret.Error(1)
   416  	}
   417  
   418  	return r0, r1
   419  }
   420  
   421  // GetByName provides a mock function with given fields: name, opts
   422  func (_m *GroupStore) GetByName(name string, opts model.GroupSearchOpts) (*model.Group, error) {
   423  	ret := _m.Called(name, opts)
   424  
   425  	var r0 *model.Group
   426  	if rf, ok := ret.Get(0).(func(string, model.GroupSearchOpts) *model.Group); ok {
   427  		r0 = rf(name, opts)
   428  	} else {
   429  		if ret.Get(0) != nil {
   430  			r0 = ret.Get(0).(*model.Group)
   431  		}
   432  	}
   433  
   434  	var r1 error
   435  	if rf, ok := ret.Get(1).(func(string, model.GroupSearchOpts) error); ok {
   436  		r1 = rf(name, opts)
   437  	} else {
   438  		r1 = ret.Error(1)
   439  	}
   440  
   441  	return r0, r1
   442  }
   443  
   444  // GetByRemoteID provides a mock function with given fields: remoteID, groupSource
   445  func (_m *GroupStore) GetByRemoteID(remoteID string, groupSource model.GroupSource) (*model.Group, error) {
   446  	ret := _m.Called(remoteID, groupSource)
   447  
   448  	var r0 *model.Group
   449  	if rf, ok := ret.Get(0).(func(string, model.GroupSource) *model.Group); ok {
   450  		r0 = rf(remoteID, groupSource)
   451  	} else {
   452  		if ret.Get(0) != nil {
   453  			r0 = ret.Get(0).(*model.Group)
   454  		}
   455  	}
   456  
   457  	var r1 error
   458  	if rf, ok := ret.Get(1).(func(string, model.GroupSource) error); ok {
   459  		r1 = rf(remoteID, groupSource)
   460  	} else {
   461  		r1 = ret.Error(1)
   462  	}
   463  
   464  	return r0, r1
   465  }
   466  
   467  // GetByUser provides a mock function with given fields: userId
   468  func (_m *GroupStore) GetByUser(userId string) ([]*model.Group, error) {
   469  	ret := _m.Called(userId)
   470  
   471  	var r0 []*model.Group
   472  	if rf, ok := ret.Get(0).(func(string) []*model.Group); ok {
   473  		r0 = rf(userId)
   474  	} else {
   475  		if ret.Get(0) != nil {
   476  			r0 = ret.Get(0).([]*model.Group)
   477  		}
   478  	}
   479  
   480  	var r1 error
   481  	if rf, ok := ret.Get(1).(func(string) error); ok {
   482  		r1 = rf(userId)
   483  	} else {
   484  		r1 = ret.Error(1)
   485  	}
   486  
   487  	return r0, r1
   488  }
   489  
   490  // GetGroupSyncable provides a mock function with given fields: groupID, syncableID, syncableType
   491  func (_m *GroupStore) GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, error) {
   492  	ret := _m.Called(groupID, syncableID, syncableType)
   493  
   494  	var r0 *model.GroupSyncable
   495  	if rf, ok := ret.Get(0).(func(string, string, model.GroupSyncableType) *model.GroupSyncable); ok {
   496  		r0 = rf(groupID, syncableID, syncableType)
   497  	} else {
   498  		if ret.Get(0) != nil {
   499  			r0 = ret.Get(0).(*model.GroupSyncable)
   500  		}
   501  	}
   502  
   503  	var r1 error
   504  	if rf, ok := ret.Get(1).(func(string, string, model.GroupSyncableType) error); ok {
   505  		r1 = rf(groupID, syncableID, syncableType)
   506  	} else {
   507  		r1 = ret.Error(1)
   508  	}
   509  
   510  	return r0, r1
   511  }
   512  
   513  // GetGroups provides a mock function with given fields: page, perPage, opts
   514  func (_m *GroupStore) GetGroups(page int, perPage int, opts model.GroupSearchOpts) ([]*model.Group, error) {
   515  	ret := _m.Called(page, perPage, opts)
   516  
   517  	var r0 []*model.Group
   518  	if rf, ok := ret.Get(0).(func(int, int, model.GroupSearchOpts) []*model.Group); ok {
   519  		r0 = rf(page, perPage, opts)
   520  	} else {
   521  		if ret.Get(0) != nil {
   522  			r0 = ret.Get(0).([]*model.Group)
   523  		}
   524  	}
   525  
   526  	var r1 error
   527  	if rf, ok := ret.Get(1).(func(int, int, model.GroupSearchOpts) error); ok {
   528  		r1 = rf(page, perPage, opts)
   529  	} else {
   530  		r1 = ret.Error(1)
   531  	}
   532  
   533  	return r0, r1
   534  }
   535  
   536  // GetGroupsAssociatedToChannelsByTeam provides a mock function with given fields: teamId, opts
   537  func (_m *GroupStore) GetGroupsAssociatedToChannelsByTeam(teamId string, opts model.GroupSearchOpts) (map[string][]*model.GroupWithSchemeAdmin, error) {
   538  	ret := _m.Called(teamId, opts)
   539  
   540  	var r0 map[string][]*model.GroupWithSchemeAdmin
   541  	if rf, ok := ret.Get(0).(func(string, model.GroupSearchOpts) map[string][]*model.GroupWithSchemeAdmin); ok {
   542  		r0 = rf(teamId, opts)
   543  	} else {
   544  		if ret.Get(0) != nil {
   545  			r0 = ret.Get(0).(map[string][]*model.GroupWithSchemeAdmin)
   546  		}
   547  	}
   548  
   549  	var r1 error
   550  	if rf, ok := ret.Get(1).(func(string, model.GroupSearchOpts) error); ok {
   551  		r1 = rf(teamId, opts)
   552  	} else {
   553  		r1 = ret.Error(1)
   554  	}
   555  
   556  	return r0, r1
   557  }
   558  
   559  // GetGroupsByChannel provides a mock function with given fields: channelId, opts
   560  func (_m *GroupStore) GetGroupsByChannel(channelId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, error) {
   561  	ret := _m.Called(channelId, opts)
   562  
   563  	var r0 []*model.GroupWithSchemeAdmin
   564  	if rf, ok := ret.Get(0).(func(string, model.GroupSearchOpts) []*model.GroupWithSchemeAdmin); ok {
   565  		r0 = rf(channelId, opts)
   566  	} else {
   567  		if ret.Get(0) != nil {
   568  			r0 = ret.Get(0).([]*model.GroupWithSchemeAdmin)
   569  		}
   570  	}
   571  
   572  	var r1 error
   573  	if rf, ok := ret.Get(1).(func(string, model.GroupSearchOpts) error); ok {
   574  		r1 = rf(channelId, opts)
   575  	} else {
   576  		r1 = ret.Error(1)
   577  	}
   578  
   579  	return r0, r1
   580  }
   581  
   582  // GetGroupsByTeam provides a mock function with given fields: teamId, opts
   583  func (_m *GroupStore) GetGroupsByTeam(teamId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, error) {
   584  	ret := _m.Called(teamId, opts)
   585  
   586  	var r0 []*model.GroupWithSchemeAdmin
   587  	if rf, ok := ret.Get(0).(func(string, model.GroupSearchOpts) []*model.GroupWithSchemeAdmin); ok {
   588  		r0 = rf(teamId, opts)
   589  	} else {
   590  		if ret.Get(0) != nil {
   591  			r0 = ret.Get(0).([]*model.GroupWithSchemeAdmin)
   592  		}
   593  	}
   594  
   595  	var r1 error
   596  	if rf, ok := ret.Get(1).(func(string, model.GroupSearchOpts) error); ok {
   597  		r1 = rf(teamId, opts)
   598  	} else {
   599  		r1 = ret.Error(1)
   600  	}
   601  
   602  	return r0, r1
   603  }
   604  
   605  // GetMemberCount provides a mock function with given fields: groupID
   606  func (_m *GroupStore) GetMemberCount(groupID string) (int64, error) {
   607  	ret := _m.Called(groupID)
   608  
   609  	var r0 int64
   610  	if rf, ok := ret.Get(0).(func(string) int64); ok {
   611  		r0 = rf(groupID)
   612  	} else {
   613  		r0 = ret.Get(0).(int64)
   614  	}
   615  
   616  	var r1 error
   617  	if rf, ok := ret.Get(1).(func(string) error); ok {
   618  		r1 = rf(groupID)
   619  	} else {
   620  		r1 = ret.Error(1)
   621  	}
   622  
   623  	return r0, r1
   624  }
   625  
   626  // GetMemberUsers provides a mock function with given fields: groupID
   627  func (_m *GroupStore) GetMemberUsers(groupID string) ([]*model.User, error) {
   628  	ret := _m.Called(groupID)
   629  
   630  	var r0 []*model.User
   631  	if rf, ok := ret.Get(0).(func(string) []*model.User); ok {
   632  		r0 = rf(groupID)
   633  	} else {
   634  		if ret.Get(0) != nil {
   635  			r0 = ret.Get(0).([]*model.User)
   636  		}
   637  	}
   638  
   639  	var r1 error
   640  	if rf, ok := ret.Get(1).(func(string) error); ok {
   641  		r1 = rf(groupID)
   642  	} else {
   643  		r1 = ret.Error(1)
   644  	}
   645  
   646  	return r0, r1
   647  }
   648  
   649  // GetMemberUsersInTeam provides a mock function with given fields: groupID, teamID
   650  func (_m *GroupStore) GetMemberUsersInTeam(groupID string, teamID string) ([]*model.User, error) {
   651  	ret := _m.Called(groupID, teamID)
   652  
   653  	var r0 []*model.User
   654  	if rf, ok := ret.Get(0).(func(string, string) []*model.User); ok {
   655  		r0 = rf(groupID, teamID)
   656  	} else {
   657  		if ret.Get(0) != nil {
   658  			r0 = ret.Get(0).([]*model.User)
   659  		}
   660  	}
   661  
   662  	var r1 error
   663  	if rf, ok := ret.Get(1).(func(string, string) error); ok {
   664  		r1 = rf(groupID, teamID)
   665  	} else {
   666  		r1 = ret.Error(1)
   667  	}
   668  
   669  	return r0, r1
   670  }
   671  
   672  // GetMemberUsersNotInChannel provides a mock function with given fields: groupID, channelID
   673  func (_m *GroupStore) GetMemberUsersNotInChannel(groupID string, channelID string) ([]*model.User, error) {
   674  	ret := _m.Called(groupID, channelID)
   675  
   676  	var r0 []*model.User
   677  	if rf, ok := ret.Get(0).(func(string, string) []*model.User); ok {
   678  		r0 = rf(groupID, channelID)
   679  	} else {
   680  		if ret.Get(0) != nil {
   681  			r0 = ret.Get(0).([]*model.User)
   682  		}
   683  	}
   684  
   685  	var r1 error
   686  	if rf, ok := ret.Get(1).(func(string, string) error); ok {
   687  		r1 = rf(groupID, channelID)
   688  	} else {
   689  		r1 = ret.Error(1)
   690  	}
   691  
   692  	return r0, r1
   693  }
   694  
   695  // GetMemberUsersPage provides a mock function with given fields: groupID, page, perPage
   696  func (_m *GroupStore) GetMemberUsersPage(groupID string, page int, perPage int) ([]*model.User, error) {
   697  	ret := _m.Called(groupID, page, perPage)
   698  
   699  	var r0 []*model.User
   700  	if rf, ok := ret.Get(0).(func(string, int, int) []*model.User); ok {
   701  		r0 = rf(groupID, page, perPage)
   702  	} else {
   703  		if ret.Get(0) != nil {
   704  			r0 = ret.Get(0).([]*model.User)
   705  		}
   706  	}
   707  
   708  	var r1 error
   709  	if rf, ok := ret.Get(1).(func(string, int, int) error); ok {
   710  		r1 = rf(groupID, page, perPage)
   711  	} else {
   712  		r1 = ret.Error(1)
   713  	}
   714  
   715  	return r0, r1
   716  }
   717  
   718  // GroupChannelCount provides a mock function with given fields:
   719  func (_m *GroupStore) GroupChannelCount() (int64, error) {
   720  	ret := _m.Called()
   721  
   722  	var r0 int64
   723  	if rf, ok := ret.Get(0).(func() int64); ok {
   724  		r0 = rf()
   725  	} else {
   726  		r0 = ret.Get(0).(int64)
   727  	}
   728  
   729  	var r1 error
   730  	if rf, ok := ret.Get(1).(func() error); ok {
   731  		r1 = rf()
   732  	} else {
   733  		r1 = ret.Error(1)
   734  	}
   735  
   736  	return r0, r1
   737  }
   738  
   739  // GroupCount provides a mock function with given fields:
   740  func (_m *GroupStore) GroupCount() (int64, error) {
   741  	ret := _m.Called()
   742  
   743  	var r0 int64
   744  	if rf, ok := ret.Get(0).(func() int64); ok {
   745  		r0 = rf()
   746  	} else {
   747  		r0 = ret.Get(0).(int64)
   748  	}
   749  
   750  	var r1 error
   751  	if rf, ok := ret.Get(1).(func() error); ok {
   752  		r1 = rf()
   753  	} else {
   754  		r1 = ret.Error(1)
   755  	}
   756  
   757  	return r0, r1
   758  }
   759  
   760  // GroupCountWithAllowReference provides a mock function with given fields:
   761  func (_m *GroupStore) GroupCountWithAllowReference() (int64, error) {
   762  	ret := _m.Called()
   763  
   764  	var r0 int64
   765  	if rf, ok := ret.Get(0).(func() int64); ok {
   766  		r0 = rf()
   767  	} else {
   768  		r0 = ret.Get(0).(int64)
   769  	}
   770  
   771  	var r1 error
   772  	if rf, ok := ret.Get(1).(func() error); ok {
   773  		r1 = rf()
   774  	} else {
   775  		r1 = ret.Error(1)
   776  	}
   777  
   778  	return r0, r1
   779  }
   780  
   781  // GroupMemberCount provides a mock function with given fields:
   782  func (_m *GroupStore) GroupMemberCount() (int64, error) {
   783  	ret := _m.Called()
   784  
   785  	var r0 int64
   786  	if rf, ok := ret.Get(0).(func() int64); ok {
   787  		r0 = rf()
   788  	} else {
   789  		r0 = ret.Get(0).(int64)
   790  	}
   791  
   792  	var r1 error
   793  	if rf, ok := ret.Get(1).(func() error); ok {
   794  		r1 = rf()
   795  	} else {
   796  		r1 = ret.Error(1)
   797  	}
   798  
   799  	return r0, r1
   800  }
   801  
   802  // GroupTeamCount provides a mock function with given fields:
   803  func (_m *GroupStore) GroupTeamCount() (int64, error) {
   804  	ret := _m.Called()
   805  
   806  	var r0 int64
   807  	if rf, ok := ret.Get(0).(func() int64); ok {
   808  		r0 = rf()
   809  	} else {
   810  		r0 = ret.Get(0).(int64)
   811  	}
   812  
   813  	var r1 error
   814  	if rf, ok := ret.Get(1).(func() error); ok {
   815  		r1 = rf()
   816  	} else {
   817  		r1 = ret.Error(1)
   818  	}
   819  
   820  	return r0, r1
   821  }
   822  
   823  // PermanentDeleteMembersByUser provides a mock function with given fields: userId
   824  func (_m *GroupStore) PermanentDeleteMembersByUser(userId string) error {
   825  	ret := _m.Called(userId)
   826  
   827  	var r0 error
   828  	if rf, ok := ret.Get(0).(func(string) error); ok {
   829  		r0 = rf(userId)
   830  	} else {
   831  		r0 = ret.Error(0)
   832  	}
   833  
   834  	return r0
   835  }
   836  
   837  // PermittedSyncableAdmins provides a mock function with given fields: syncableID, syncableType
   838  func (_m *GroupStore) PermittedSyncableAdmins(syncableID string, syncableType model.GroupSyncableType) ([]string, error) {
   839  	ret := _m.Called(syncableID, syncableType)
   840  
   841  	var r0 []string
   842  	if rf, ok := ret.Get(0).(func(string, model.GroupSyncableType) []string); ok {
   843  		r0 = rf(syncableID, syncableType)
   844  	} else {
   845  		if ret.Get(0) != nil {
   846  			r0 = ret.Get(0).([]string)
   847  		}
   848  	}
   849  
   850  	var r1 error
   851  	if rf, ok := ret.Get(1).(func(string, model.GroupSyncableType) error); ok {
   852  		r1 = rf(syncableID, syncableType)
   853  	} else {
   854  		r1 = ret.Error(1)
   855  	}
   856  
   857  	return r0, r1
   858  }
   859  
   860  // TeamMembersMinusGroupMembers provides a mock function with given fields: teamID, groupIDs, page, perPage
   861  func (_m *GroupStore) TeamMembersMinusGroupMembers(teamID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, error) {
   862  	ret := _m.Called(teamID, groupIDs, page, perPage)
   863  
   864  	var r0 []*model.UserWithGroups
   865  	if rf, ok := ret.Get(0).(func(string, []string, int, int) []*model.UserWithGroups); ok {
   866  		r0 = rf(teamID, groupIDs, page, perPage)
   867  	} else {
   868  		if ret.Get(0) != nil {
   869  			r0 = ret.Get(0).([]*model.UserWithGroups)
   870  		}
   871  	}
   872  
   873  	var r1 error
   874  	if rf, ok := ret.Get(1).(func(string, []string, int, int) error); ok {
   875  		r1 = rf(teamID, groupIDs, page, perPage)
   876  	} else {
   877  		r1 = ret.Error(1)
   878  	}
   879  
   880  	return r0, r1
   881  }
   882  
   883  // TeamMembersToAdd provides a mock function with given fields: since, teamID
   884  func (_m *GroupStore) TeamMembersToAdd(since int64, teamID *string) ([]*model.UserTeamIDPair, error) {
   885  	ret := _m.Called(since, teamID)
   886  
   887  	var r0 []*model.UserTeamIDPair
   888  	if rf, ok := ret.Get(0).(func(int64, *string) []*model.UserTeamIDPair); ok {
   889  		r0 = rf(since, teamID)
   890  	} else {
   891  		if ret.Get(0) != nil {
   892  			r0 = ret.Get(0).([]*model.UserTeamIDPair)
   893  		}
   894  	}
   895  
   896  	var r1 error
   897  	if rf, ok := ret.Get(1).(func(int64, *string) error); ok {
   898  		r1 = rf(since, teamID)
   899  	} else {
   900  		r1 = ret.Error(1)
   901  	}
   902  
   903  	return r0, r1
   904  }
   905  
   906  // TeamMembersToRemove provides a mock function with given fields: teamID
   907  func (_m *GroupStore) TeamMembersToRemove(teamID *string) ([]*model.TeamMember, error) {
   908  	ret := _m.Called(teamID)
   909  
   910  	var r0 []*model.TeamMember
   911  	if rf, ok := ret.Get(0).(func(*string) []*model.TeamMember); ok {
   912  		r0 = rf(teamID)
   913  	} else {
   914  		if ret.Get(0) != nil {
   915  			r0 = ret.Get(0).([]*model.TeamMember)
   916  		}
   917  	}
   918  
   919  	var r1 error
   920  	if rf, ok := ret.Get(1).(func(*string) error); ok {
   921  		r1 = rf(teamID)
   922  	} else {
   923  		r1 = ret.Error(1)
   924  	}
   925  
   926  	return r0, r1
   927  }
   928  
   929  // Update provides a mock function with given fields: group
   930  func (_m *GroupStore) Update(group *model.Group) (*model.Group, error) {
   931  	ret := _m.Called(group)
   932  
   933  	var r0 *model.Group
   934  	if rf, ok := ret.Get(0).(func(*model.Group) *model.Group); ok {
   935  		r0 = rf(group)
   936  	} else {
   937  		if ret.Get(0) != nil {
   938  			r0 = ret.Get(0).(*model.Group)
   939  		}
   940  	}
   941  
   942  	var r1 error
   943  	if rf, ok := ret.Get(1).(func(*model.Group) error); ok {
   944  		r1 = rf(group)
   945  	} else {
   946  		r1 = ret.Error(1)
   947  	}
   948  
   949  	return r0, r1
   950  }
   951  
   952  // UpdateGroupSyncable provides a mock function with given fields: groupSyncable
   953  func (_m *GroupStore) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, error) {
   954  	ret := _m.Called(groupSyncable)
   955  
   956  	var r0 *model.GroupSyncable
   957  	if rf, ok := ret.Get(0).(func(*model.GroupSyncable) *model.GroupSyncable); ok {
   958  		r0 = rf(groupSyncable)
   959  	} else {
   960  		if ret.Get(0) != nil {
   961  			r0 = ret.Get(0).(*model.GroupSyncable)
   962  		}
   963  	}
   964  
   965  	var r1 error
   966  	if rf, ok := ret.Get(1).(func(*model.GroupSyncable) error); ok {
   967  		r1 = rf(groupSyncable)
   968  	} else {
   969  		r1 = ret.Error(1)
   970  	}
   971  
   972  	return r0, r1
   973  }
   974  
   975  // UpsertMember provides a mock function with given fields: groupID, userID
   976  func (_m *GroupStore) UpsertMember(groupID string, userID string) (*model.GroupMember, error) {
   977  	ret := _m.Called(groupID, userID)
   978  
   979  	var r0 *model.GroupMember
   980  	if rf, ok := ret.Get(0).(func(string, string) *model.GroupMember); ok {
   981  		r0 = rf(groupID, userID)
   982  	} else {
   983  		if ret.Get(0) != nil {
   984  			r0 = ret.Get(0).(*model.GroupMember)
   985  		}
   986  	}
   987  
   988  	var r1 error
   989  	if rf, ok := ret.Get(1).(func(string, string) error); ok {
   990  		r1 = rf(groupID, userID)
   991  	} else {
   992  		r1 = ret.Error(1)
   993  	}
   994  
   995  	return r0, r1
   996  }