github.com/nilium/gitlab-runner@v12.5.0+incompatible/cache/mock_Adapter.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 // This comment works around https://github.com/vektra/mockery/issues/155 4 5 package cache 6 7 import mock "github.com/stretchr/testify/mock" 8 import url "net/url" 9 10 // MockAdapter is an autogenerated mock type for the Adapter type 11 type MockAdapter struct { 12 mock.Mock 13 } 14 15 // GetDownloadURL provides a mock function with given fields: 16 func (_m *MockAdapter) GetDownloadURL() *url.URL { 17 ret := _m.Called() 18 19 var r0 *url.URL 20 if rf, ok := ret.Get(0).(func() *url.URL); ok { 21 r0 = rf() 22 } else { 23 if ret.Get(0) != nil { 24 r0 = ret.Get(0).(*url.URL) 25 } 26 } 27 28 return r0 29 } 30 31 // GetUploadURL provides a mock function with given fields: 32 func (_m *MockAdapter) GetUploadURL() *url.URL { 33 ret := _m.Called() 34 35 var r0 *url.URL 36 if rf, ok := ret.Get(0).(func() *url.URL); ok { 37 r0 = rf() 38 } else { 39 if ret.Get(0) != nil { 40 r0 = ret.Get(0).(*url.URL) 41 } 42 } 43 44 return r0 45 }