github.com/mad-app/mattermost-server@v5.11.1+incompatible/store/storetest/mocks/ChannelMemberHistoryStore.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 store "github.com/mattermost/mattermost-server/store"
     9  
    10  // ChannelMemberHistoryStore is an autogenerated mock type for the ChannelMemberHistoryStore type
    11  type ChannelMemberHistoryStore struct {
    12  	mock.Mock
    13  }
    14  
    15  // GetUsersInChannelDuring provides a mock function with given fields: startTime, endTime, channelId
    16  func (_m *ChannelMemberHistoryStore) GetUsersInChannelDuring(startTime int64, endTime int64, channelId string) store.StoreChannel {
    17  	ret := _m.Called(startTime, endTime, channelId)
    18  
    19  	var r0 store.StoreChannel
    20  	if rf, ok := ret.Get(0).(func(int64, int64, string) store.StoreChannel); ok {
    21  		r0 = rf(startTime, endTime, channelId)
    22  	} else {
    23  		if ret.Get(0) != nil {
    24  			r0 = ret.Get(0).(store.StoreChannel)
    25  		}
    26  	}
    27  
    28  	return r0
    29  }
    30  
    31  // LogJoinEvent provides a mock function with given fields: userId, channelId, joinTime
    32  func (_m *ChannelMemberHistoryStore) LogJoinEvent(userId string, channelId string, joinTime int64) store.StoreChannel {
    33  	ret := _m.Called(userId, channelId, joinTime)
    34  
    35  	var r0 store.StoreChannel
    36  	if rf, ok := ret.Get(0).(func(string, string, int64) store.StoreChannel); ok {
    37  		r0 = rf(userId, channelId, joinTime)
    38  	} else {
    39  		if ret.Get(0) != nil {
    40  			r0 = ret.Get(0).(store.StoreChannel)
    41  		}
    42  	}
    43  
    44  	return r0
    45  }
    46  
    47  // LogLeaveEvent provides a mock function with given fields: userId, channelId, leaveTime
    48  func (_m *ChannelMemberHistoryStore) LogLeaveEvent(userId string, channelId string, leaveTime int64) store.StoreChannel {
    49  	ret := _m.Called(userId, channelId, leaveTime)
    50  
    51  	var r0 store.StoreChannel
    52  	if rf, ok := ret.Get(0).(func(string, string, int64) store.StoreChannel); ok {
    53  		r0 = rf(userId, channelId, leaveTime)
    54  	} else {
    55  		if ret.Get(0) != nil {
    56  			r0 = ret.Get(0).(store.StoreChannel)
    57  		}
    58  	}
    59  
    60  	return r0
    61  }
    62  
    63  // PermanentDeleteBatch provides a mock function with given fields: endTime, limit
    64  func (_m *ChannelMemberHistoryStore) PermanentDeleteBatch(endTime int64, limit int64) store.StoreChannel {
    65  	ret := _m.Called(endTime, limit)
    66  
    67  	var r0 store.StoreChannel
    68  	if rf, ok := ret.Get(0).(func(int64, int64) store.StoreChannel); ok {
    69  		r0 = rf(endTime, limit)
    70  	} else {
    71  		if ret.Get(0) != nil {
    72  			r0 = ret.Get(0).(store.StoreChannel)
    73  		}
    74  	}
    75  
    76  	return r0
    77  }