github.com/nhannv/mattermost-server@v5.11.1+incompatible/store/storetest/mocks/EmojiStore.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/mattermost/mattermost-server/model"
     9  import store "github.com/mattermost/mattermost-server/store"
    10  
    11  // EmojiStore is an autogenerated mock type for the EmojiStore type
    12  type EmojiStore struct {
    13  	mock.Mock
    14  }
    15  
    16  // Delete provides a mock function with given fields: id, time
    17  func (_m *EmojiStore) Delete(id string, time int64) store.StoreChannel {
    18  	ret := _m.Called(id, time)
    19  
    20  	var r0 store.StoreChannel
    21  	if rf, ok := ret.Get(0).(func(string, int64) store.StoreChannel); ok {
    22  		r0 = rf(id, time)
    23  	} else {
    24  		if ret.Get(0) != nil {
    25  			r0 = ret.Get(0).(store.StoreChannel)
    26  		}
    27  	}
    28  
    29  	return r0
    30  }
    31  
    32  // Get provides a mock function with given fields: id, allowFromCache
    33  func (_m *EmojiStore) Get(id string, allowFromCache bool) store.StoreChannel {
    34  	ret := _m.Called(id, allowFromCache)
    35  
    36  	var r0 store.StoreChannel
    37  	if rf, ok := ret.Get(0).(func(string, bool) store.StoreChannel); ok {
    38  		r0 = rf(id, allowFromCache)
    39  	} else {
    40  		if ret.Get(0) != nil {
    41  			r0 = ret.Get(0).(store.StoreChannel)
    42  		}
    43  	}
    44  
    45  	return r0
    46  }
    47  
    48  // GetByName provides a mock function with given fields: name
    49  func (_m *EmojiStore) GetByName(name string) store.StoreChannel {
    50  	ret := _m.Called(name)
    51  
    52  	var r0 store.StoreChannel
    53  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
    54  		r0 = rf(name)
    55  	} else {
    56  		if ret.Get(0) != nil {
    57  			r0 = ret.Get(0).(store.StoreChannel)
    58  		}
    59  	}
    60  
    61  	return r0
    62  }
    63  
    64  // GetList provides a mock function with given fields: offset, limit, sort
    65  func (_m *EmojiStore) GetList(offset int, limit int, sort string) store.StoreChannel {
    66  	ret := _m.Called(offset, limit, sort)
    67  
    68  	var r0 store.StoreChannel
    69  	if rf, ok := ret.Get(0).(func(int, int, string) store.StoreChannel); ok {
    70  		r0 = rf(offset, limit, sort)
    71  	} else {
    72  		if ret.Get(0) != nil {
    73  			r0 = ret.Get(0).(store.StoreChannel)
    74  		}
    75  	}
    76  
    77  	return r0
    78  }
    79  
    80  // GetMultipleByName provides a mock function with given fields: names
    81  func (_m *EmojiStore) GetMultipleByName(names []string) store.StoreChannel {
    82  	ret := _m.Called(names)
    83  
    84  	var r0 store.StoreChannel
    85  	if rf, ok := ret.Get(0).(func([]string) store.StoreChannel); ok {
    86  		r0 = rf(names)
    87  	} else {
    88  		if ret.Get(0) != nil {
    89  			r0 = ret.Get(0).(store.StoreChannel)
    90  		}
    91  	}
    92  
    93  	return r0
    94  }
    95  
    96  // Save provides a mock function with given fields: emoji
    97  func (_m *EmojiStore) Save(emoji *model.Emoji) store.StoreChannel {
    98  	ret := _m.Called(emoji)
    99  
   100  	var r0 store.StoreChannel
   101  	if rf, ok := ret.Get(0).(func(*model.Emoji) store.StoreChannel); ok {
   102  		r0 = rf(emoji)
   103  	} else {
   104  		if ret.Get(0) != nil {
   105  			r0 = ret.Get(0).(store.StoreChannel)
   106  		}
   107  	}
   108  
   109  	return r0
   110  }
   111  
   112  // Search provides a mock function with given fields: name, prefixOnly, limit
   113  func (_m *EmojiStore) Search(name string, prefixOnly bool, limit int) store.StoreChannel {
   114  	ret := _m.Called(name, prefixOnly, limit)
   115  
   116  	var r0 store.StoreChannel
   117  	if rf, ok := ret.Get(0).(func(string, bool, int) store.StoreChannel); ok {
   118  		r0 = rf(name, prefixOnly, limit)
   119  	} else {
   120  		if ret.Get(0) != nil {
   121  			r0 = ret.Get(0).(store.StoreChannel)
   122  		}
   123  	}
   124  
   125  	return r0
   126  }