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