github.com/mad-app/mattermost-server@v5.11.1+incompatible/store/storetest/mocks/BotStore.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  // BotStore is an autogenerated mock type for the BotStore type
    12  type BotStore struct {
    13  	mock.Mock
    14  }
    15  
    16  // Get provides a mock function with given fields: userId, includeDeleted
    17  func (_m *BotStore) Get(userId string, includeDeleted bool) store.StoreChannel {
    18  	ret := _m.Called(userId, includeDeleted)
    19  
    20  	var r0 store.StoreChannel
    21  	if rf, ok := ret.Get(0).(func(string, bool) store.StoreChannel); ok {
    22  		r0 = rf(userId, includeDeleted)
    23  	} else {
    24  		if ret.Get(0) != nil {
    25  			r0 = ret.Get(0).(store.StoreChannel)
    26  		}
    27  	}
    28  
    29  	return r0
    30  }
    31  
    32  // GetAll provides a mock function with given fields: options
    33  func (_m *BotStore) GetAll(options *model.BotGetOptions) store.StoreChannel {
    34  	ret := _m.Called(options)
    35  
    36  	var r0 store.StoreChannel
    37  	if rf, ok := ret.Get(0).(func(*model.BotGetOptions) store.StoreChannel); ok {
    38  		r0 = rf(options)
    39  	} else {
    40  		if ret.Get(0) != nil {
    41  			r0 = ret.Get(0).(store.StoreChannel)
    42  		}
    43  	}
    44  
    45  	return r0
    46  }
    47  
    48  // PermanentDelete provides a mock function with given fields: userId
    49  func (_m *BotStore) PermanentDelete(userId string) store.StoreChannel {
    50  	ret := _m.Called(userId)
    51  
    52  	var r0 store.StoreChannel
    53  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
    54  		r0 = rf(userId)
    55  	} else {
    56  		if ret.Get(0) != nil {
    57  			r0 = ret.Get(0).(store.StoreChannel)
    58  		}
    59  	}
    60  
    61  	return r0
    62  }
    63  
    64  // Save provides a mock function with given fields: bot
    65  func (_m *BotStore) Save(bot *model.Bot) store.StoreChannel {
    66  	ret := _m.Called(bot)
    67  
    68  	var r0 store.StoreChannel
    69  	if rf, ok := ret.Get(0).(func(*model.Bot) store.StoreChannel); ok {
    70  		r0 = rf(bot)
    71  	} else {
    72  		if ret.Get(0) != nil {
    73  			r0 = ret.Get(0).(store.StoreChannel)
    74  		}
    75  	}
    76  
    77  	return r0
    78  }
    79  
    80  // Update provides a mock function with given fields: bot
    81  func (_m *BotStore) Update(bot *model.Bot) store.StoreChannel {
    82  	ret := _m.Called(bot)
    83  
    84  	var r0 store.StoreChannel
    85  	if rf, ok := ret.Get(0).(func(*model.Bot) store.StoreChannel); ok {
    86  		r0 = rf(bot)
    87  	} else {
    88  		if ret.Get(0) != nil {
    89  			r0 = ret.Get(0).(store.StoreChannel)
    90  		}
    91  	}
    92  
    93  	return r0
    94  }