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