github.com/haalcala/mattermost-server-change-repo/v5@v5.33.2/store/storetest/mocks/ProductNoticesStore.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  // ProductNoticesStore is an autogenerated mock type for the ProductNoticesStore type
    13  type ProductNoticesStore struct {
    14  	mock.Mock
    15  }
    16  
    17  // Clear provides a mock function with given fields: notices
    18  func (_m *ProductNoticesStore) Clear(notices []string) error {
    19  	ret := _m.Called(notices)
    20  
    21  	var r0 error
    22  	if rf, ok := ret.Get(0).(func([]string) error); ok {
    23  		r0 = rf(notices)
    24  	} else {
    25  		r0 = ret.Error(0)
    26  	}
    27  
    28  	return r0
    29  }
    30  
    31  // ClearOldNotices provides a mock function with given fields: currentNotices
    32  func (_m *ProductNoticesStore) ClearOldNotices(currentNotices *model.ProductNotices) error {
    33  	ret := _m.Called(currentNotices)
    34  
    35  	var r0 error
    36  	if rf, ok := ret.Get(0).(func(*model.ProductNotices) error); ok {
    37  		r0 = rf(currentNotices)
    38  	} else {
    39  		r0 = ret.Error(0)
    40  	}
    41  
    42  	return r0
    43  }
    44  
    45  // GetViews provides a mock function with given fields: userId
    46  func (_m *ProductNoticesStore) GetViews(userId string) ([]model.ProductNoticeViewState, error) {
    47  	ret := _m.Called(userId)
    48  
    49  	var r0 []model.ProductNoticeViewState
    50  	if rf, ok := ret.Get(0).(func(string) []model.ProductNoticeViewState); ok {
    51  		r0 = rf(userId)
    52  	} else {
    53  		if ret.Get(0) != nil {
    54  			r0 = ret.Get(0).([]model.ProductNoticeViewState)
    55  		}
    56  	}
    57  
    58  	var r1 error
    59  	if rf, ok := ret.Get(1).(func(string) error); ok {
    60  		r1 = rf(userId)
    61  	} else {
    62  		r1 = ret.Error(1)
    63  	}
    64  
    65  	return r0, r1
    66  }
    67  
    68  // View provides a mock function with given fields: userId, notices
    69  func (_m *ProductNoticesStore) View(userId string, notices []string) error {
    70  	ret := _m.Called(userId, notices)
    71  
    72  	var r0 error
    73  	if rf, ok := ret.Get(0).(func(string, []string) error); ok {
    74  		r0 = rf(userId, notices)
    75  	} else {
    76  		r0 = ret.Error(0)
    77  	}
    78  
    79  	return r0
    80  }