github.com/mad-app/mattermost-server@v5.11.1+incompatible/store/storetest/mocks/LinkMetadataStore.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 // LinkMetadataStore is an autogenerated mock type for the LinkMetadataStore type 12 type LinkMetadataStore struct { 13 mock.Mock 14 } 15 16 // Get provides a mock function with given fields: url, timestamp 17 func (_m *LinkMetadataStore) Get(url string, timestamp int64) store.StoreChannel { 18 ret := _m.Called(url, timestamp) 19 20 var r0 store.StoreChannel 21 if rf, ok := ret.Get(0).(func(string, int64) store.StoreChannel); ok { 22 r0 = rf(url, timestamp) 23 } else { 24 if ret.Get(0) != nil { 25 r0 = ret.Get(0).(store.StoreChannel) 26 } 27 } 28 29 return r0 30 } 31 32 // Save provides a mock function with given fields: linkMetadata 33 func (_m *LinkMetadataStore) Save(linkMetadata *model.LinkMetadata) store.StoreChannel { 34 ret := _m.Called(linkMetadata) 35 36 var r0 store.StoreChannel 37 if rf, ok := ret.Get(0).(func(*model.LinkMetadata) store.StoreChannel); ok { 38 r0 = rf(linkMetadata) 39 } else { 40 if ret.Get(0) != nil { 41 r0 = ret.Get(0).(store.StoreChannel) 42 } 43 } 44 45 return r0 46 }