github.com/xzl8028/xenia-server@v0.0.0-20190809101854-18450a97da63/store/storetest/mocks/AuditStore.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/xzl8028/xenia-server/model"
     9  
    10  // AuditStore is an autogenerated mock type for the AuditStore type
    11  type AuditStore struct {
    12  	mock.Mock
    13  }
    14  
    15  // Get provides a mock function with given fields: user_id, offset, limit
    16  func (_m *AuditStore) Get(user_id string, offset int, limit int) (model.Audits, *model.AppError) {
    17  	ret := _m.Called(user_id, offset, limit)
    18  
    19  	var r0 model.Audits
    20  	if rf, ok := ret.Get(0).(func(string, int, int) model.Audits); ok {
    21  		r0 = rf(user_id, offset, limit)
    22  	} else {
    23  		if ret.Get(0) != nil {
    24  			r0 = ret.Get(0).(model.Audits)
    25  		}
    26  	}
    27  
    28  	var r1 *model.AppError
    29  	if rf, ok := ret.Get(1).(func(string, int, int) *model.AppError); ok {
    30  		r1 = rf(user_id, offset, limit)
    31  	} else {
    32  		if ret.Get(1) != nil {
    33  			r1 = ret.Get(1).(*model.AppError)
    34  		}
    35  	}
    36  
    37  	return r0, r1
    38  }
    39  
    40  // PermanentDeleteBatch provides a mock function with given fields: endTime, limit
    41  func (_m *AuditStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError) {
    42  	ret := _m.Called(endTime, limit)
    43  
    44  	var r0 int64
    45  	if rf, ok := ret.Get(0).(func(int64, int64) int64); ok {
    46  		r0 = rf(endTime, limit)
    47  	} else {
    48  		r0 = ret.Get(0).(int64)
    49  	}
    50  
    51  	var r1 *model.AppError
    52  	if rf, ok := ret.Get(1).(func(int64, int64) *model.AppError); ok {
    53  		r1 = rf(endTime, limit)
    54  	} else {
    55  		if ret.Get(1) != nil {
    56  			r1 = ret.Get(1).(*model.AppError)
    57  		}
    58  	}
    59  
    60  	return r0, r1
    61  }
    62  
    63  // PermanentDeleteByUser provides a mock function with given fields: userId
    64  func (_m *AuditStore) PermanentDeleteByUser(userId string) *model.AppError {
    65  	ret := _m.Called(userId)
    66  
    67  	var r0 *model.AppError
    68  	if rf, ok := ret.Get(0).(func(string) *model.AppError); ok {
    69  		r0 = rf(userId)
    70  	} else {
    71  		if ret.Get(0) != nil {
    72  			r0 = ret.Get(0).(*model.AppError)
    73  		}
    74  	}
    75  
    76  	return r0
    77  }
    78  
    79  // Save provides a mock function with given fields: audit
    80  func (_m *AuditStore) Save(audit *model.Audit) *model.AppError {
    81  	ret := _m.Called(audit)
    82  
    83  	var r0 *model.AppError
    84  	if rf, ok := ret.Get(0).(func(*model.Audit) *model.AppError); ok {
    85  		r0 = rf(audit)
    86  	} else {
    87  		if ret.Get(0) != nil {
    88  			r0 = ret.Get(0).(*model.AppError)
    89  		}
    90  	}
    91  
    92  	return r0
    93  }