github.com/lyft/flytestdlib@v0.3.12-0.20210213045714-8cdd111ecda1/utils/mocks/cache_item.go (about) 1 // Code generated by mockery v1.0.1. DO NOT EDIT. 2 3 package mocks 4 5 import mock "github.com/stretchr/testify/mock" 6 7 // CacheItem is an autogenerated mock type for the CacheItem type 8 type CacheItem struct { 9 mock.Mock 10 } 11 12 type CacheItem_ID struct { 13 *mock.Call 14 } 15 16 func (_m CacheItem_ID) Return(_a0 string) *CacheItem_ID { 17 return &CacheItem_ID{Call: _m.Call.Return(_a0)} 18 } 19 20 func (_m *CacheItem) OnID() *CacheItem_ID { 21 c := _m.On("ID") 22 return &CacheItem_ID{Call: c} 23 } 24 25 func (_m *CacheItem) OnIDMatch(matchers ...interface{}) *CacheItem_ID { 26 c := _m.On("ID", matchers...) 27 return &CacheItem_ID{Call: c} 28 } 29 30 // ID provides a mock function with given fields: 31 func (_m *CacheItem) ID() string { 32 ret := _m.Called() 33 34 var r0 string 35 if rf, ok := ret.Get(0).(func() string); ok { 36 r0 = rf() 37 } else { 38 r0 = ret.Get(0).(string) 39 } 40 41 return r0 42 }